mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-04-25 15:45:53 +03:00
[PR #78] [CLOSED] Feat: Model Mapping Diagram for Visualization #93
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#93
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/78
Author: @thanhtunguet
Created: 1/31/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (3)
ac45d13Resize the modal with max-width = 960 to improve visibility0a5f1c9feat(modelAlias): add ModelMappingDiagram component and related styles for visualizing model alias mappingscb2288bfeat(modelAlias): enhance ModelMappingDiagram with i18n support and improve alias handling📊 Changes
9 files changed (+1344 additions, -68 deletions)
View changed files
➕
src/components/modelAlias/ModelMappingDiagram.module.scss(+249 -0)➕
src/components/modelAlias/ModelMappingDiagram.tsx(+673 -0)➕
src/components/modelAlias/index.ts(+2 -0)📝
src/components/ui/Modal.tsx(+19 -4)📝
src/i18n/locales/en.json(+20 -0)📝
src/i18n/locales/zh-CN.json(+20 -0)📝
src/pages/AuthFilesPage.module.scss(+95 -6)📝
src/pages/AuthFilesPage.tsx(+261 -57)📝
src/services/api/authFiles.ts(+5 -1)📄 Description
When using the dashboard, I found it difficult to configure mappings with the current UI due to the following reasons:
The modal is too small, making it hard to clearly see model IDs
There is no clear overview of mappings when multiple model providers are involved
Therefore, I made the following changes:
Increased the modal’s max width to 960px, which is more suitable for desktop screens
Added a diagram that visualizes the mapping between models from all providers and their corresponding aliases, allowing quick drag-and-drop alias creation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.