-
Notifications
You must be signed in to change notification settings - Fork 9
feat(ui): add version display in about menu items #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add application version number display next to 'About' menu items in both
mobile and desktop user interfaces. Version is extracted from package.json
and exposed via NEXT_PUBLIC_APP_VERSION environment variable.
Changes:
- Extract version from package.json in next.config.ts
- Display version number in mobile user bottom sheet about menu
- Display version number in desktop user avatar dropdown about menu
- Maintain consistent styling with existing theme colors
- Version appears as 'v{version}' with subtle opacity styling
- Create dedicated VersionTag component with tag-style design - Use font-mono for better version number readability - Support multiple variants and theme-aware styling - Replace inline version display with reusable component - Clean up unnecessary comments across affected files - Position version tags with proper spacing using ml-auto Components updated: - mobile/ui/user-bottom-sheet.tsx: Use VersionTag component - nav-bar/desktop-user-avatar.tsx: Use VersionTag component - ui/version-tag.tsx: New reusable component - ui/index.ts: Export VersionTag component
There was a problem hiding this 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 adds version display functionality to both mobile and desktop user interface about menu items. The version number is extracted from package.json and displayed alongside the 'About' menu option with consistent styling across platforms.
- Extracts app version from package.json via NEXT_PUBLIC_APP_VERSION environment variable
- Creates reusable VersionTag component with multiple styling variants
- Integrates version display in both mobile bottom sheet and desktop avatar dropdown menus
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| next.config.ts | Adds version extraction from package.json and environment variable configuration |
| components/ui/version-tag.tsx | Creates new reusable component for displaying version with multiple styling variants |
| components/ui/index.ts | Exports the new VersionTag component |
| components/nav-bar/desktop-user-avatar.tsx | Integrates version display in desktop user dropdown menu |
| components/mobile/ui/user-bottom-sheet.tsx | Integrates version display in mobile user bottom sheet |
Add application version number display next to 'About' menu items in both
mobile and desktop user interfaces. Version is extracted from package.json
and exposed via NEXT_PUBLIC_APP_VERSION environment variable.
Changes:
Extract version from package.json in next.config.ts
Display version number in mobile user bottom sheet about menu
Display version number in desktop user avatar dropdown about menu
Maintain consistent styling with existing theme colors
Version appears as 'v{version}' with subtle opacity styling
Important
Fixes #<issue number>What & Why
What: Brief description
Why: Problem solved
Fixes #(issue number)
Pre-PR Checklist
Run these:
pnpm type-checkpnpm format:checkpnpm lintpnpm buildpnpm i18n:check(if applicable)Type
Screenshots (if UI changes)