feat(core, react): release 3.2.0 - #482
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe core and React package versions were updated from ChangesPackage version updates
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to The current changes are limited to package metadata updates, with no actionable merge-blocking risk remaining beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #482 +/- ##
========================================
Coverage 90.91% 90.91%
========================================
Files 239 239
Lines 17726 17726
Branches 2004 2603 +599
========================================
Hits 16116 16116
Misses 1610 1610 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Added
+Morelink. Clicking it opens that member's detail view with the Roles tab already selected, instead of showing the full list in a tooltip.initialTabon member detail.OrganizationMemberDetailanduseOrganizationMemberDetailacceptinitialTab?: 'details' | 'roles', which makes the roles tab deep-linkable (e.g. from a?tab=rolesquery param).ROLES_PREFETCH_THRESHOLD, matching the API's default page size), the modal fetches the member's full role list rather than relying on the truncated payload from the table row. A spinner (isLoadingRoles) is shown while that request is in flight, in both the management and detail flows.OrganizationMemberManagementViewis now exported from the package root (fix: export added for organization member mgmt for docs #468). It was omitted at BETA because the Mintlify docs site wasn't in scope.ViewMemberDetailsParams—{ userId: string; tab?: OrganizationMemberDetailTab }.memberRolesQueryonMemberManagementServiceResult;memberRolesandisLoadingMemberRolesonUseOrganizationMemberManagementResult.OrganizationMemberRemoveRoleModalProps.isLoadingRoles.isValidUserId(userId)utility, replacing the inline regex that was duplicated inuseMemberDetailService.Changed
viewMemberDetailsActionpayload is now an object.ComponentAction<string>→ComponentAction<ViewMemberDetailsParams>, so the callback can carry the target tab. Same change applies toOrganizationMemberTableProps.onView,OrganizationMemberTableActionsColumnProps.onViewDetails, andhandleViewMemberDetails.MemberDetailTabrenamed toOrganizationMemberDetailTab, aligning with the component-prefixed naming used elsewhere.memberManagementQueryKeys.memberRoles(userId)instead ofmemberDetailQueryKeys.memberRoles(userId), so the management and detail views share one cache entry. Both key factories are still exported from core, but seeding or invalidating thememberDetailQueryKeysvariant no longer affects the components.member.detail.roles.remove_modal.descriptionnow uses<roleBold>and<memberBold>instead of a single<bold>tag (en-US, fr, ja), so the role name and member name can be styled independently.SsoProviderEditmoved to the action-props pattern (refactor(react): use action props pattern in sso-provider-edit #459). It was the last block component using the{ logic, handlers }split.SsoProviderEditViewPropsis now a flat interface extendingUseSsoProviderEditReturn, and the container spreads the hook result into the view. The publicSsoProviderEditprops are unchanged — only the view-level contract moved.Removed
SsoProviderEditLogicProps,SsoProviderEditHandlerProps, andUseSsoProviderEditLogicResult— superseded by the flatSsoProviderEditViewProps.createMockSsoProviderEditLogicandcreateMockSsoProviderEditHandler.New translation keys
member.table.more_roles("More") andmember.table.view_all_roles("View all ${count} roles") inen-US,fr, andja.Upgrading
Update any
viewMemberDetailsActionhandler to destructure the params object:<OrganizationMemberManagement viewMemberDetailsAction={{ - onAfter: (userId) => router.push(`/member-management/${userId}`), + onAfter: ({ userId, tab }) => + router.push(`/member-management/${userId}${tab ? `?tab=${tab}` : ''}`), }} />And, to honour the tab the
+Morelink asks for, forward it to the detail component:Packages
packages/corepackages/reactexamplesChecklist
Contributing
Summary by CodeRabbit