Skip to content

🏷️ refactor: Export the Dialog Parts Under Canonical Dialog Names - #17459

Merged
berry-13 merged 1 commit into
devfrom
berry-13/dialog-canonical-names
Oct 26, 2026
Merged

berry-13 merged 1 commit into
devfrom
berry-13/dialog-canonical-names

Conversation

@berry-13

@berry-13 berry-13 commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Pull Request

Summary

With the legacy Dialog removed in #17430, OGDialog is the only dialog @librechat/client ships, but every one of its parts still carries the OG prefix that only existed to tell it apart from the old one. That prefix would also become the public name of the dialog in the component docs.

This PR exports the parts under their plain names (Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, DialogPortal, and DialogTemplate for OGDialogTemplate) as the same components the OG names already export. Nothing is renamed at the 141 existing call sites; they keep working, and can move to the plain names when they are next touched. DialogOverlay was already exported under its plain name.

Type of change

  • Refactor

Testing

Tested environments/configuration:

  • Not applicable: the change adds export names only.

Automated tests:

  • Added dialogNames.spec.ts: each canonical name is exported and is the same component as its OG name.
  • packages/client suite (75 suites, 1148 tests) passes; tsc --noEmit for both projects is clean.

Screenshots / recordings

No user-facing change.

Risk / compatibility

Additive. The plain names were free again after #17430; a consumer still importing the removed legacy Dialog parts now gets the OGDialog ones, whose props are a superset for the primitives (both wrap Radix Dialog) and whose template takes every prop the old one did. The legacy DialogButton is not restored.

Checklist

  • I reviewed my own changes
  • Relevant tests have been added or updated
  • Existing relevant tests pass
  • The change does not introduce new warnings or errors

Copilot AI balanced review requested due to automatic review settings October 26, 2026 16:00

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@berry-13
berry-13 marked this pull request as ready for review October 26, 2026 16:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T16:38:34.255846Z d63f4d2 New commits
🔒 Security Review ✅ Completed 2026-10-26T16:12:24.741704Z 309043b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codegraph-librechat codegraph-librechat Bot added the 🗺️ UI Foundation codegraph: the taxonomy area this belongs to (classifier, confidence ≥ 0.9) label Oct 26, 2026
Dialog, DialogContent, DialogTitle and the other parts, and
DialogTemplate, are now exported beside their OG names as the same
components, so new code and the docs can use the plain names while the
existing call sites keep working unchanged.
@berry-13
berry-13 force-pushed the berry-13/dialog-canonical-names branch from 309043b to d63f4d2 Compare October 26, 2026 16:37
@berry-13
berry-13 merged commit 192cf39 into dev Oct 26, 2026
46 checks passed
@berry-13
berry-13 deleted the berry-13/dialog-canonical-names branch October 26, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗺️ UI Foundation codegraph: the taxonomy area this belongs to (classifier, confidence ≥ 0.9)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants