Skip to content

bugs: add My Bugs toggle and attachment badges in bugs list - #890

Merged
rgushchin merged 3 commits into
mainfrom
feat/bugs-ui-improvements
Nov 13, 2026
Merged

rgushchin merged 3 commits into
mainfrom
feat/bugs-ui-improvements

Conversation

@rgushchin

Copy link
Copy Markdown
Member

Summary

Add two UX improvements to the Bugs list view (/#/, Bugs mode):

  • My Bugs toggle & case-insensitive assignee matching:
    • Adds a My Bugs toggle button next to the Assignee filter input in #bugFilters that filters bugs by the signed-in user's login email while preserving active status, severity, security, and subsystem filters, and clears automatically when signing out.
    • Compares and sorts bugs.assignee with COLLATE NOCASE in Database::list_bugs so email capitalization differences between sign-in and stored assignments never hide assigned bugs, and accepts assignee=me on GET /api/bugs for API callers.
  • Attachment badges (reproducer, proposed fix):
    • Exposes has_reproducer and has_proposed_fix flags on GET /api/bugs and GET /api/bug via a single batch duplicate-family query (Database::bug_family_attachment_candidates + resolve_bug_attachment_flags), gating reproducer visibility behind authenticated sessions, respecting subsystem read authority across duplicate families (readable_bug_ids), and keeping merged upstream fix_candidate records distinct from proposed fix attachments.
    • Renders clickable reproducer and proposed fix badges in the Bugs list Problem column linking directly to #/bug/<bugid>?tab=reproducers and #/bug/<bugid>?tab=fixes.

Verification

  • make check-pr
  • sashiko review --project sashiko --agent origin/main..HEAD ("status": "clean", 0 findings)

Document the design for the My Bugs assignee toggle, case-insensitive
assignee filtering, and attachment badges for reproducers and proposed
fixes in the bugs list view.

Signed-off-by: Roman Gushchin <roman@kernel.org>
Add a My Bugs toggle button next to the assignee input in the bugs list
filter bar that filters bugs by the signed-in user's login email while
preserving existing status, severity, security, and subsystem filters.

On the backend, compare bugs.assignee with COLLATE NOCASE when listing
or sorting bugs so capitalization differences between login emails and
stored assignments never hide assigned bugs, and accept assignee=me on
GET /api/bugs for API callers.

Signed-off-by: Roman Gushchin <roman@kernel.org>
Expose has_reproducer and has_proposed_fix attachment flags on bug API
responses and render clickable reproducer and proposed fix badges in
the bugs list view that open the corresponding bug activity tab.

Attachment flags aggregate across readable duplicate family members via
a single batch query, gate reproducer visibility behind authenticated
sessions, and keep merged upstream fix_check commits distinct from
proposed fix attachments.

Signed-off-by: Roman Gushchin <roman@kernel.org>
@sashiko-bot

sashiko-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown

Sashiko review

✓ No issues found across 3 commits.

Full review log on sashiko.sashiko.dev

@rgushchin
rgushchin merged commit 47c01bf into main Nov 13, 2026
1 check passed
@rgushchin
rgushchin deleted the feat/bugs-ui-improvements branch November 16, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant