Skip to content

chore: improve invite module - #51

Merged
babblebey merged 6 commits into
mainfrom
re/invite
Jul 11, 2026
Merged

babblebey merged 6 commits into
mainfrom
re/invite

Conversation

@babblebey

@babblebey babblebey commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

This pull request focuses on improving consistency in API usage, enhancing the member invitation flow, and refining the display and filtering of family members across several pages. The most important changes are grouped as follows:

API Consistency and Refactoring

  • Replaced all usages of api.invite.getManagementContext with api.family.getManagementContext across the codebase for a more accurate and consistent API reference. This change touches many pages, including gallery, member profile, members list, notifications, feed, post, profile, account settings, domain settings, family settings, and integrations settings. [1] src/app/(app)/member/[slug]/page.tsxL120-R120, [2] [3] [4] [5] src/app/(app)/post/[postId]/page.tsxL266-R266, [6] [7] [8] [9] [10]
  • Updated mutation and cache invalidation calls from api.invite.updateFamilyIdentity and trpcUtils.invite.getManagementContext.invalidate() to their api.family equivalents in family settings. [1] [2]

Member Invitation Flow Improvements

  • Added a "Generate invite link now" checkbox to the Add Member page, allowing users to create a claim invite link even if no email is provided. The invite is always generated if an email is entered, and the UI reflects this logic. [1] [2] [3] [4] [5] [6] [7]

Member List and Profile Display Updates

  • Refactored the members list to remove the use of addedByName and instead display a dynamic label based on the member’s status (e.g., "Joined", "Invited", "Added") with relative time, and updated the search input to only filter by member name. [1] [2] [3] [4] [5]
  • Removed the static addedByName: "Family organizer" label from member and profile displays for a more accurate and streamlined UI. (src/app/(app)/member/[slug]/page.tsxL153, src/app/(app)/profile/page.tsxL134)

UI and Component Updates

  • Improved the layout and accessibility of the members page search/filter UI, and removed an unused import. [1] [2] [3]
  • Added the Badge component import in invites settings, likely for new UI elements.

Data Structure Updates

  • Extended the invite list item schema to include isClaimInvite and claimMember fields, preparing for more detailed invite management and display.

These changes collectively improve maintainability, invite management flexibility, and the clarity of member information in the UI.

Screencast/Screenshot

screen-capture.84.webm

…nvite` to `family` API

- Refactor management context queries to use family API
- Updated all instances of `api.invite.getManagementContext` to `api.family.getManagementContext` across various components and pages.
- Introduced a new `familyRouter` to handle family-related API calls.
- Removed the old invite management context logic from the invite router.
- Added tests for the new family identity management functionality, ensuring proper handling of branding configurations and permissions.
refactor MemberStatusBadge import and add MemberRoleBadge component
@babblebey
babblebey merged commit 9c2ce4a into main Jul 11, 2026
4 checks passed
@babblebey
babblebey deleted the re/invite branch July 11, 2026 18:10
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant