Skip to content

feat: clickable count badges on entity cards#214

Merged
Flo0806 merged 2 commits intomainfrom
feat/clickable-chips
Jan 24, 2026
Merged

feat: clickable count badges on entity cards#214
Flo0806 merged 2 commits intomainfrom
feat/clickable-chips

Conversation

@Flo0806
Copy link
Owner

@Flo0806 Flo0806 commented Jan 24, 2026

Summary

  • Count badges on entity cards are now clickable and open the edit dialog at the corresponding tab
  • Fixed bug where group chips would disappear after saving edit dialogs
  • Fixed faction-to-faction relation counts not updating bidirectionally
  • Centralized GroupInfo type definition

Changes

Clickable Badges

  • NPCs, Items, Factions, Lore, Players, Groups cards now have clickable count badges
  • Clicking a badge opens the edit dialog directly at the relevant tab

Bug Fixes

  • Individual counts endpoints now return groups (consistent with batch-counts)
  • Faction delete now returns affectedFactionIds to update linked factions
  • Faction-to-Faction relations now update both factions' counts (add/remove/delete)

Refactoring

  • GroupInfo type moved to central types/group.ts
  • FactionEditDialog now uses store's loadFactionCounts() instead of custom function

Closes #199

@Flo0806 Flo0806 merged commit 9840c7f into main Jan 24, 2026
@Flo0806 Flo0806 deleted the feat/clickable-chips branch January 24, 2026 18:48
@github-actions github-actions bot mentioned this pull request Jan 24, 2026
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.

opt: players sheet direct link inventory

1 participant