Skip to content

Commit 3e5a7fe

Browse files
committed
fix(buds): expose Impacted Repos Edit on the activity view
The Edit affordance only lived inside the empty-state branch of ``BUDDevelopmentPanel``. Once a BUD had any dev activity (commits, PRs, todos), the panel switched to the has-activity template and the button vanished — leaving no way to correct ``impacted_repos`` from the UI on a BUD that had moved past tech_arch. Reproduced on BUD-004 after promotion to development. Adds a compact impacted-repos row at the top of the activity view with the same Edit button. Mirrors the empty-state semantics — chip list when the array has entries, "none yet" otherwise — but slimmer so it sits cleanly above the stats grid. Signed-off-by: Arun Rajkumar <mickyarunr@gmail.com>
1 parent a56c230 commit 3e5a7fe

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

frontend/src/components/buds/BUDDevelopmentPanel.vue

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,37 @@
113113
<div v-if="branchCopied" class="text-caption text-success d-flex align-center ml-1">Copied!</div>
114114
</div>
115115

116+
<!-- Impacted repos — same Edit affordance as the empty-state. Once
117+
a BUD has activity the user can still need to correct scope
118+
(tech-arch guessed wrong, repos added mid-build); without this
119+
row there is no place to do so on the development tab. -->
120+
<div class="d-flex align-center flex-wrap ga-2 mb-4 dev-panel__impacted-row">
121+
<v-icon icon="mdi-source-repository-multiple" size="16" color="medium-emphasis" />
122+
<span class="text-caption text-medium-emphasis">Impacted:</span>
123+
<template v-if="impactedRepos && impactedRepos.length">
124+
<v-chip
125+
v-for="r in impactedRepos"
126+
:key="r.repo_id || r.repo_name"
127+
size="x-small"
128+
variant="tonal"
129+
prepend-icon="mdi-source-repository"
130+
>
131+
{{ r.repo_name }}
132+
</v-chip>
133+
</template>
134+
<span v-else class="text-caption text-medium-emphasis">none yet</span>
135+
<v-spacer />
136+
<v-btn
137+
size="x-small"
138+
variant="text"
139+
density="compact"
140+
prepend-icon="mdi-pencil-outline"
141+
@click="editReposOpen = true"
142+
>
143+
Edit
144+
</v-btn>
145+
</div>
146+
116147
<!-- Stats Row: only real, useful numbers -->
117148
<div class="stats-row mb-5">
118149
<div class="stat-card">

0 commit comments

Comments
 (0)