-
Notifications
You must be signed in to change notification settings - Fork 2k
[PM-43083][PM-43122] Show header breadcrumbs and identity tiles for every vault scope #23021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gbubemismith
wants to merge
1
commit into
main
Choose a base branch
from
PM-43083/vault-header-scopes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+544
β88
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
apps/desktop/src/app/layout/header/desktop-header.component.html
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
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
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
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
17 changes: 12 additions & 5 deletions
17
apps/web/src/app/vault/individual-vault/vault-next.component.html
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
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
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
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
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
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
21 changes: 21 additions & 0 deletions
21
libs/vault/src/components/vault-breadcrumbs/vault-breadcrumbs.component.html
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <bit-breadcrumbs> | ||
| <bit-breadcrumb [route]="orgRootCrumbRoute()"> | ||
| <bit-icon-tile | ||
| slot="start" | ||
| [icon]="orgTile()?.icon" | ||
| [variant]="orgTile()?.variant ?? 'primary'" | ||
| [emphasis]="orgTile()?.emphasis ?? 'subtle'" | ||
| aria-hidden="true" | ||
| /> | ||
| {{ orgNavItem()?.label }} | ||
| </bit-breadcrumb> | ||
| @for (crumb of trailCrumbs(); track crumb.key) { | ||
| <bit-breadcrumb | ||
| [icon]="crumb.icon" | ||
| [route]="crumb.route" | ||
| [queryParamsHandling]="crumb.queryParamsHandling" | ||
| > | ||
| {{ crumb.label }} | ||
| </bit-breadcrumb> | ||
| } | ||
| </bit-breadcrumbs> | ||
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Details and fix
orgRootCrumbRoute()isundefinedwhencollectionId()is null, which is exactly the All vault items page β a page that previously showed no breadcrumbs at all, so this is new behavior.bit-breadcrumbsrenders a crumb three ways (breadcrumbs.component.html:11-48): active β<span>/<h1>, has a route β<a>, otherwise β<button type="button" (click)="breadcrumb.onClick($event)">. With no route and no(click)bound here, the organization name becomes a tab stop announced as "button", carrying thehover:!tw-text-fg-brandlink affordance, that does nothing when activated. The same applies to its collapsed form in the overflow menu (breadcrumbs.component.html:118-122).Rendering it as static text would fix both β for example a text/static mode on
bit-breadcrumbthat reuses the active-crumb<span>branch withoutaria-current, used whenorgRootCrumbRoute()is unset.(Restoring the route is not the fix β on a URL with no query params the org crumb would then also match
router.isActive, and both it and the All vault items crumb would render as<h1 aria-current="page">.)