Skip to content

Add NameLinkRenderer for clickable popover and update column types#1671

Merged
paustint merged 1 commit intomainfrom
feat/show-name-as-record-popover
Apr 15, 2026
Merged

Add NameLinkRenderer for clickable popover and update column types#1671
paustint merged 1 commit intomainfrom
feat/show-name-as-record-popover

Conversation

@paustint
Copy link
Copy Markdown
Contributor

This pull request enhances the data table by introducing a new renderer for Salesforce Name fields, making them clickable and providing a record-lookup popover similar to the existing Id link behavior. It also updates the column type logic to automatically detect and apply this renderer to appropriate fields, and improves the flexibility of the RecordLookupPopover component to support custom display values.

image

Copilot AI review requested due to automatic review settings April 14, 2026 16:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the UI data table’s Salesforce record navigation by adding a dedicated renderer for Name fields that opens the existing record-lookup popover (similar to the current Id link behavior), and updates column type resolution to automatically apply that renderer where appropriate.

Changes:

  • Add displayValue?: ReactNode support to RecordLookupPopover so the trigger can show custom content (e.g., Name text instead of Id).
  • Introduce NameLinkRenderer and a new salesforceName column type.
  • Update query-result column typing logic to auto-detect Name/relationship Name columns and render them as record popovers.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
libs/ui/src/lib/widgets/RecordLookupPopover.tsx Adds displayValue to customize the popover trigger content.
libs/ui/src/lib/data-table/data-table-utils.tsx Adds salesforceName type mapping + logic to promote Name columns to the new renderer.
libs/ui/src/lib/data-table/data-table-types.ts Extends ColumnType union with salesforceName.
libs/ui/src/lib/data-table/DataTableRenderers.tsx Implements NameLinkRenderer to show Name text while linking to record popover.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread libs/ui/src/lib/data-table/data-table-utils.tsx Outdated
Comment thread libs/ui/src/lib/data-table/DataTableRenderers.tsx Outdated
@paustint paustint force-pushed the feat/show-name-as-record-popover branch from a83a93e to 43c8c83 Compare April 15, 2026 15:22
@paustint paustint requested a review from Copilot April 15, 2026 15:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@paustint paustint merged commit 7a7bd61 into main Apr 15, 2026
13 checks passed
@paustint paustint deleted the feat/show-name-as-record-popover branch April 15, 2026 15:41
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.

2 participants