Skip to content

πŸ› Bugfix: fix status tag icon misalignment and localize auth dialog slogan - #3673

Merged
WMC001 merged 2 commits into
developfrom
zjy/bugfix_project7
Aug 14, 2026
Merged

πŸ› Bugfix: fix status tag icon misalignment and localize auth dialog slogan#3673
WMC001 merged 2 commits into
developfrom
zjy/bugfix_project7

Conversation

@ayiya12

@ayiya12 ayiya12 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR includes two frontend UI bug fixes:

  1. Fix status tag icon misalignment in resource-manage lists β€” Fixed incorrect icon alignment in AgentList, InvitationList, McpList, and ModelList by replacing className shortcuts with explicit inline styles (display: inline-flex, alignItems: center, flexShrink: 0) and wrapping icons in <span className="inline-flex items-center mr-1"> to ensure Lucide icons and Tag content render correctly across all status variants.
image
  1. Localize auth dialog slogan for zh and en β€” Replaced the hardcoded English slogan string in AuthDialogs.tsx with a t("page.loginPrompt.slogan") i18n key, added the corresponding Chinese translation in zh/common.json, and updated generateMetadata in layout.tsx to return a locale-aware page description. Fix [Improvement] Login page globalizationΒ #2936
image

Changes

UI alignment fix

  • AgentList.tsx β€” Unpublished agent tag icon alignment
  • McpList.tsx β€” MCP server availability tags, health check loader tags
  • ModelList.tsx β€” Model status tags (available, unavailable, detecting, not_detected)
  • InvitationList.tsx β€” Invitation status tags (IN_USE, EXPIRE, RUN_OUT)

i18n fix

  • AuthDialogs.tsx β€” Use t("page.loginPrompt.slogan") instead of hardcoded string
  • layout.tsx β€” Return locale-aware description in metadata
  • en/common.json β€” Add "page.loginPrompt.slogan"
  • zh/common.json β€” Add "page.loginPrompt.slogan" with Chinese text

Testing

  • Manual browser verification on both zh and en locales
  • All four resource management pages render status tags correctly at various container widths

@WMC001
WMC001 merged commit 33ef4d5 into develop Aug 14, 2026
8 checks passed
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.

[Improvement] Login page globalization

2 participants