Skip to content

Update the domain admins table to the new style#93749

Open
luacmartins wants to merge 5 commits into
mainfrom
cmartins-adminTable
Open

Update the domain admins table to the new style#93749
luacmartins wants to merge 5 commits into
mainfrom
cmartins-adminTable

Conversation

@luacmartins

@luacmartins luacmartins commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

Migrate the domain admins page to the shared Table component.

Fixed Issues

$ #86217

Tests

  1. Open a domain's Domain admins page
  2. Confirm admins render with avatar, name, email, and primary contact badge
  3. Tap a row and confirm it opens admin details
  4. Confirm Add admin and Settings still work
  5. With 12+ admins, confirm search and sorting work
  • Verify that no errors appear in the JS console
Screenshot 2026-06-16 at 4 17 50 PM Screenshot 2026-06-16 at 4 18 54 PM

Offline tests

N/A

QA Steps

Same as tests

  • Verify that no errors appear in the JS console

Introduce a dedicated table for domain admins with sorting, search, and row rendering that matches the updated table patterns used elsewhere in the app.
Replace the legacy SelectionList-based layout with the new table component while preserving admin actions, primary contact badges, and navigation to admin details.
@luacmartins luacmartins self-assigned this Jun 16, 2026
@luacmartins luacmartins changed the title Cmartins admin table Update the domain admins table to the new style Jun 16, 2026
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
.../Tables/DomainAdminsTable/DomainAdminsTableRow.tsx 0.00% <0.00%> (ø)
src/components/Tables/DomainAdminsTable/index.tsx 0.00% <0.00%> (ø)
src/pages/domain/Admins/DomainAdminsPage.tsx 0.00% <0.00%> (ø)
... and 11 files with indirect coverage changes

@luacmartins luacmartins requested a review from a team June 16, 2026 22:19
@luacmartins luacmartins marked this pull request as ready for review June 16, 2026 22:23
@luacmartins luacmartins requested review from a team as code owners June 16, 2026 22:23
@melvin-bot melvin-bot Bot requested review from Krishna2323, joekaufmanexpensify and situchan and removed request for a team June 16, 2026 22:23
@melvin-bot

melvin-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

@Krishna2323 @situchan One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot Bot removed the request for review from a team June 16, 2026 22:23
@Krishna2323

Copy link
Copy Markdown
Contributor

I can take this one. Will review it later today.

@luacmartins luacmartins requested review from Krishna2323 and removed request for Krishna2323 and situchan June 16, 2026 22:25
@shawnborton

Copy link
Copy Markdown
Contributor

Looks good, let's make sure we follow up with the search input/filter changes for this one too cc @JS00001

style={[styles.textLabelSupporting, styles.lh16, styles.pre]}
numberOfLines={1}
>
{item.login}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main used formatPhoneNumber(login) as alternateText. We should use use item.email here, the page already sets that on item.email.

offlineWithFeedback={{
errors: item.errors,
pendingAction: item.pendingAction,
dismissError: item.dismissError,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error rows don't have the dismiss (X) button because TableRow is passing onDismiss={offlineWithFeedback.onClose} instead of dismissError.

Could we update it to use onClose: item.dismissError (same pattern as WorkspaceTableRow and WorkspaceCompanyCardsTableRow)? I noticed the same issue in WorkspaceCategoriesTableRow and WorkspaceDistanceRatesTableRow as well.

Could you fix those here? 😅

Image

];

return (
<Table.Row

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing sentryLabel

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.

4 participants