Repository navigation
Give a tile's badge an icon, and say what it is - #204
Merged
Merged
Conversation
… the tile's name Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The unconditional 70% width cap unnecessarily truncates names on badge-free tiles, leaving 30% unused instead of preserving the full available label width.
1 open issue
What changed in this PR
Adds optional icons and descriptive titles to tile badges, making information such as database ownership easier to identify in the list view.
Changes:
- Adds
badgeIconandbadgeTitle, with 12px icons, hover titles, and screen-reader text. - Adjusts name and badge sizing to prioritize tile names over long badge text.
- Documents the new badge options in the frontend README.
| File | Description |
|---|---|
frontend/src/list/tiles.ts |
Adds badge fields, rendering, accessibility text, and layout styles. |
frontend/README.md |
Documents optional badge icons and titles. |
Review effort: Balanced
…label's width Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

A tile's badge, such as a database's owner, didn't say what it was.
badgeIcon: a rendered icon, such as Carbon's 16px user icon fromiconLoader, shown at 12px inside the badge, before its text. Carbon's small tag has no icon slot of its own.badgeTitle: what the badge is, such as "Owner". It shows when the badge is hovered, and screen readers read it before the badge's text.pg_database_owner, is cut short instead of the name.