Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR introduces a reusable CitizenPopover tooltip across the app, backed by new tRPC endpoints, and adds hover-delay support to the shared Popover behavior to reduce accidental popover opens.
Changes:
- Add
CitizenPopoverclient component and wrap many citizen links across modules with it. - Add new tRPC queries for fetching assignable roles and citizen popover data.
- Extend shared
Popover/useMouseEnterCounterto supporthoverDelayand open-state callbacks; update UI styling in a few shared components.
Reviewed changes
Copilot reviewed 24 out of 25 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| app/src/server/api/routers/roles.ts | Adds getAssignableRoles tRPC endpoint. |
| app/src/server/api/routers/citizens.ts | Adds getCitizenById tRPC endpoint used by the popover. |
| app/src/modules/citizen/queries.ts | Adds getCitizenPopoverById query helper used by the new endpoint. |
| app/src/modules/citizen/components/CitizenPopover.tsx | New tooltip component that fetches citizen summary + roles on open. |
| app/src/modules/common/components/Popover.tsx | Adds hoverDelay and onOpenChange wiring to Radix popover open state. |
| app/src/modules/common/utils/useMouseEnterCounter.ts | Implements delayed hover-open logic for popovers. |
| app/src/modules/citizen/components/roles/Roles.tsx | Simplifies “can edit roles” logic and updates AddRoles usage. |
| app/src/modules/citizen/components/roles/AddRoles.tsx | Fetches assignable roles via tRPC on-demand when modal opens. |
| app/src/modules/common/components/CitizenLink.tsx | Wraps citizen link with CitizenPopover. |
| app/src/modules/users/components/Table.tsx | Wraps “Spynet” link with CitizenPopover. |
| app/src/modules/spynet/components/ActivityTile/mapOrganizationMembershipHistoryEntries.tsx | Wraps citizen handle links with CitizenPopover. |
| app/src/modules/silc/components/SilcTransactionsTableClient.tsx | Wraps citizen link with CitizenPopover. |
| app/src/modules/penalty-points/components/PenaltyEntry.tsx | Wraps “created by” citizen link with CitizenPopover. |
| app/src/modules/penalty-points/components/AllEntriesTableClient.tsx | Wraps citizen link with CitizenPopover. |
| app/src/modules/organizations/components/MembershipsTile.tsx | Wraps member citizen link with CitizenPopover. |
| app/src/modules/organizations/components/ActivityTile.tsx | Wraps citizen links with CitizenPopover. |
| app/src/modules/events/components/ParticipantsTab.tsx | Wraps manager/participant citizen links with CitizenPopover. |
| app/src/modules/roles/components/SingleRoleBadge.tsx | Adjusts popover sizing and adds hover delay for role badge tooltip. |
| app/src/modules/common/components/CopyToClipboard.tsx | Updates tooltip styling. |
| app/src/modules/common/components/Button.tsx | Adds mono/uppercase styling to base button class. |
| app/src/modules/changelog/assets/2026-03-01-citizen-popover.png | Adds screenshot asset for changelog entry. |
| app/src/app/app/changelog/page.tsx | Adds changelog entry and adjusts some image loading + formatting. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 28 out of 30 changed files in this pull request and generated 3 comments.
Files not reviewed (1)
- app/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|



Only merge using a merge commit!