Skip to content

Conversation

@salevine
Copy link
Contributor

@salevine salevine commented Dec 8, 2025

Adds display name to the workspace member list.

Description

Tip

Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team).

Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.
Adds Display Name to Workspace

Fixes 8475

Fixes https://github.com/appsmithorg/appsmith-ee/issues/8475

Automation

/ok-to-test tags=""

🔍 Cypress test results

Caution

If you modify the content in this section, you are likely to disrupt the CI result for your PR.

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • [ X] No

Adds display name to the workspace member list.
@github-actions github-actions bot added the Enhancement New feature or request label Dec 8, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 8, 2025

Walkthrough

A new Display Name column is added to the Members page, featuring a styled DisplayNameText component with ellipsis handling and max-width constraints. The change updates both desktop table and mobile card rendering paths to display member names consistently.

Changes

Cohort / File(s) Summary
Members page Display Name column
app/client/src/ce/pages/workspace/Members.tsx
Added DisplayNameText styled component for consistent text formatting with ellipsis. Integrated new Display Name table column with custom cell renderer for both desktop table and mobile card views.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Single file modification with localized changes
  • Custom cell renderer integration in both table and mobile views may require verification of rendering consistency

Poem

A name deserves to be displayed,
With graceful dots when it's delayed,
Both desktop wide and mobile small,
Now every member stands tall! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The PR title clearly and concisely describes the main change: adding display name functionality to the workspace member list, directly aligned with the changeset.
Description check ✅ Passed The PR description follows the template with required sections populated, including issue reference (fixes 8475), automation tag, and communication checkbox, though motivation and context could be more detailed.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/8475/show-display-name-on-workspace-members

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
app/client/src/ce/pages/workspace/Members.tsx (3)

71-78: nth-child-based header widths are fragile to column-order changes

The new :nth-child(2) / :nth-child(3) rules tightly couple widths to the current DOM column order. If a selection column is added, columns are reordered, or some column is conditionally hidden, these widths may apply to the wrong headers.

If the Table API allows, prefer setting widths via column definitions (e.g., width/minWidth) or via a header className rather than structural selectors. Otherwise, this is fine but worth keeping in mind when touching this table again.


71-78: Avoid duplicating the Display Name column width magic number

140px is now baked into both the header (th:nth-child(2)) and DisplayNameText.max-width, so a future tweak risks drifting these apart.

You can centralize this width in a constant and reuse it in both styled components:

+const DISPLAY_NAME_COL_WIDTH = "140px";
+
 export const MembersWrapper = styled.div<{
   isMobile?: boolean;
 }>`
@@
-            &:nth-child(2) {
-              width: 140px;
-            }
+            &:nth-child(2) {
+              width: ${DISPLAY_NAME_COL_WIDTH};
+            }
@@
-export const DisplayNameText = styled.div`
-  max-width: 140px;
+export const DisplayNameText = styled.div`
+  max-width: ${DISPLAY_NAME_COL_WIDTH};
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
   color: var(--ads-v2-color-fg);
 `;

This keeps layout adjustments for the Display Name column in sync.

Also applies to: 200-206


373-388: Consider search highlighting and mobile parity for Display Name

The new Display Name column works, but a couple of UX tweaks are worth considering:

  1. Highlight search matches in Display Name, similar to the username column:
-      Cell: function DisplayNameCell(props: any) {
+      Cell: function DisplayNameCell(props: any) {
         const member = props.cell.row.original;
         const displayName = member.name || "-";

         return (
           <RowWrapper>
-            <DisplayNameText title={displayName}>{displayName}</DisplayNameText>
+            <DisplayNameText title={displayName}>
+              <HighlightText highlight={searchValue} text={displayName} />
+            </DisplayNameText>
           </RowWrapper>
         );
       },
  1. Mobile card still doesn’t surface member.name: if the feature requires “Display Name” across viewports, you may also want to show member.name in the mobile card (e.g., use member.name || member.username as the primary label) to keep desktop and mobile behavior consistent.

Both are incremental changes that improve discoverability without impacting existing logic.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7046aeb and b2a5817.

📒 Files selected for processing (1)
  • app/client/src/ce/pages/workspace/Members.tsx (3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
  • GitHub Check: client-lint / client-lint
  • GitHub Check: client-unit-tests / client-unit-tests
  • GitHub Check: client-build / client-build
  • GitHub Check: client-prettier / prettier-check

@ankitakinger
Copy link
Contributor

/build-deploy-preview skip-tests=true

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/20049395235.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 41452.
recreate: .

@ankitakinger ankitakinger changed the title feature: 8475 Add display name to workspace member list feat: 8475 Add display name to workspace member list Dec 9, 2025
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Deploy-Preview-URL: https://ce-41452.dp.appsmith.com

&:nth-child(3) {
width: 110px;
}
Copy link
Contributor

@ankitakinger ankitakinger Dec 9, 2025

Choose a reason for hiding this comment

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

Remove:

 &:nth-child(2) {
  width: 140px;
}

&:nth-child(3) {
  width: 110px;
}

Add:

&:first-child {
   width: 240px;
}

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

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants