Conversation
The repo labels displayed on BranchCard and RemoteBranchCard were missing the subpath suffix (e.g. 'org/repo/sub-dir'). This was a regression where the repoLabelsByProject map in ProjectHome.svelte only used repo.githubRepo without appending repo.subpath, and the fallback in ProjectSection.svelte's repoLabelForBranch() similarly used project.githubRepo without project.subpath. Fixed all 4 occurrences in ProjectHome.svelte where the repo label map is built (hydration, project creation, repo addition, branch deletion) and the fallback in ProjectSection.svelte to conditionally append the subpath, matching the format already used in the action settings UI side panel.
The repo labels displayed on project cards in ProjectsList.svelte were missing the subpath suffix (e.g. 'org/repo/sub-dir'). This is the same issue fixed in commit f2ee8a0 for BranchCard and RemoteBranchCard. Fixed both the repos.map() path and the project.githubRepo fallback to conditionally append the subpath when present.
Create a shared RepoLabel.svelte component that displays repo paths with
the last segment (repo name or subpath) in full contrast (--text-primary)
and preceding segments muted (--text-muted). This makes the most
distinguishing part of the path pop out visually.
The component accepts githubRepo and optional subpath props, splitting
the path to emphasize the final segment:
block/staged → 'block/' muted + 'staged' primary
block/staged + ui → 'block/staged/' muted + 'ui' primary
Refactored the data flow to pass structured {githubRepo, subpath} objects
instead of pre-formatted strings through repoLabelsByProject, enabling
the component to apply contrast styling at render time.
Updated all 5 locations where repo labels are displayed:
- BranchCardHeaderInfo (branch cards via ProjectSection)
- ProjectsList (project cards)
- ActionsPreferencesModal (action settings sidebar)
- RepoSearchInput (recent repos and search results)
Also fixes excludeRepos to correctly extract githubRepo for comparison
against nameWithOwner, and removes the now-unused contextLabel function
and context-repo/context-subpath CSS classes from ActionsPreferencesModal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a repo has a subpath configured, the repo labels displayed on branch and remote branch cards now include the subpath (e.g.
owner/repo/subpathinstead of justowner/repo). This fix updates all four places inProjectHome.sveltewhererepoLabelsByProjectis built, as well as therepoLabelForBranchfallback inProjectSection.svelte.