mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-04-25 07:35:56 +03:00
[PR #81] [MERGED] Add diagram-based view mode for model alias mapping #94
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cli-Proxy-API-Management-Center#94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/router-for-me/Cli-Proxy-API-Management-Center/pull/81
Author: @thanhtunguet
Created: 1/31/2026
Status: ✅ Merged
Merged: 2/4/2026
Merged by: @LTbinglingfeng
Base:
pr-review← Head:main📝 Commits (7)
3e55d60feat: enhance OAuth model alias management with new UI components and localization updatesfd1174efix: update event type handling in ModelMappingDiagram for improved type safety01a69ffrefactor(AuthFilesPage): optimize provider list generation using useMemo for better performancece47d6dstyle(ModelMappingDiagram): remove unused aliasItem class from SCSS file0d40eecrefactor(ModelMappingDiagram): restructure component to utilize new modular columns and improve type definitionsd9272d6Merge branch 'router-for-me:main' into mainaebe95dMerge branch 'router-for-me:main' into main📊 Changes
14 files changed (+2000 additions, -30 deletions)
View changed files
📝
src/components/common/ConfirmationModal.tsx(+5 -1)➕
src/components/modelAlias/ModelMappingDiagram.module.scss(+323 -0)➕
src/components/modelAlias/ModelMappingDiagram.tsx(+567 -0)➕
src/components/modelAlias/ModelMappingDiagramColumns.tsx(+229 -0)➕
src/components/modelAlias/ModelMappingDiagramContextMenu.tsx(+111 -0)➕
src/components/modelAlias/ModelMappingDiagramModals.tsx(+267 -0)➕
src/components/modelAlias/ModelMappingDiagramTypes.ts(+33 -0)➕
src/components/modelAlias/index.ts(+2 -0)📝
src/components/ui/Modal.tsx(+3 -1)📝
src/i18n/locales/en.json(+31 -0)📝
src/i18n/locales/zh-CN.json(+31 -0)📝
src/pages/AuthFilesPage.module.scss(+43 -0)📝
src/pages/AuthFilesPage.tsx(+353 -27)📝
src/stores/useNotificationStore.ts(+2 -1)📄 Description
This PR introduces an additional view mode for model alias mapping, featuring a diagram-based visualization.
It enables drag-and-drop mapping creation and offers a holistic view of the mapping structure, as well as visibility into all models currently available in the system.
View mode switch (Diagram / List)
This ensures compatibility and respects current layout
Diagram view:
Alias settings
Linting: No related linting issues
Type-check: Passed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.