Skip to content

fix(watchlist): clear confirmation dialog uses correct tab noun#911

Open
Dexterity104 wants to merge 1 commit intoentrius:testfrom
Dexterity104:fix/watchlist-clear-dialog-noun
Open

fix(watchlist): clear confirmation dialog uses correct tab noun#911
Dexterity104 wants to merge 1 commit intoentrius:testfrom
Dexterity104:fix/watchlist-clear-dialog-noun

Conversation

@Dexterity104
Copy link
Copy Markdown
Contributor

@Dexterity104 Dexterity104 commented Apr 30, 2026

Summary

The clear confirmation dialog on the Watchlist page hard-coded the title to "miner(s)" regardless of the active tab, which contradicted the button caption right beneath it on Repositories, Bounties, Pull Requests, and Issues tabs.

The title now reuses the same noun helper (already in scope from TAB_NOUN[activeTab]) that the confirm button uses, and picks noun.single or noun.plural based on count. So a single pinned bounty reads "Clear all 1 pinned bounty?" while five repositories read "Clear all 5 pinned repositories?".

Related Issues

Fixes #910

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Screenshots

Before
before

After
after

Checklist

  • New components are modularized/separated where sensible
  • Uses predefined theme (e.g. no hardcoded colors)
  • Responsive/mobile checked
  • Tested against the test API
  • npm run format and npm run lint:fix have been run
  • npm run build passes
  • Screenshots included for any UI/visual changes

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Watchlist clear confirmation dialog says "miner(s)" on every tab

1 participant