Skip to content

feat: show the app version on the Settings page - #1934

Open
paramveeRana wants to merge 1 commit into
NIAEFEUP:developfrom
paramveeRana:feat/settings-app-version
Open

paramveeRana wants to merge 1 commit into
NIAEFEUP:developfrom
paramveeRana:feat/settings-app-version

Conversation

@paramveeRana

@paramveeRana paramveeRana commented Oct 15, 2026 •

Copy link
Copy Markdown

Closes #1928

Shows the app version and build number at the bottom of the settings page, e.g. "Estás a usar a uni 2.6.1 (534)". Uses package_info_plus and adds the string in PT and EN.

  • Tested in light and dark mode
  • Text in PT and EN
    1-light-en 2-light-pt 4-dark-en 3-dark-pt

Summary by CodeRabbit

  • New Features
    • The Settings screen now displays the app’s version and build number, making it easier to identify which release is installed.
    • Version information is shown in English and Portuguese (Portugal), with localized wording.
  • Tests
    • Added coverage to verify that the version and build number appear correctly in the Settings experience.

Adds a subtle "You are using uni <version> (<build>)" line at the bottom
of the Settings section, read at runtime with package_info_plus.
Text is translated to EN and PT.

Closes NIAEFEUP#1928
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1fd1f6a1-5fa1-498a-9c56-b862cf7169f8
📥 Commits

Reviewing files that changed from the base of the PR and between 14b1e16 and 9fad9f7.

⛔ Files ignored due to path filters: 3
  • packages/uni_app/lib/generated/intl/messages_en.dart is excluded by !**/generated/**
  • packages/uni_app/lib/generated/intl/messages_pt_PT.dart is excluded by !**/generated/**
  • packages/uni_app/lib/generated/l10n.dart is excluded by !**/generated/**
📒 Files selected for processing: 6
  • packages/uni_app/lib/l10n/intl_en.arb
  • packages/uni_app/lib/l10n/intl_pt_PT.arb
  • packages/uni_app/lib/view/profile/widgets/app_version_info.dart
  • packages/uni_app/lib/view/profile/widgets/settings.dart
  • packages/uni_app/pubspec.yaml
  • packages/uni_app/test/unit/view/profile/app_version_info_test.dart

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

Settings now displays the app version and build number using localized text. The new widget retrieves package metadata and renders the text when that data is available.

Changes: Settings Version Display

Layer / File(s) Summary
Load and format version information
packages/uni_app/lib/l10n/intl_*.arb, packages/uni_app/lib/view/profile/widgets/app_version_info.dart, packages/uni_app/pubspec.yaml, packages/uni_app/test/unit/view/profile/app_version_info_test.dart
The English and Portuguese (Portugal) localizations define version_info placeholders. The new widget uses package_info_plus to retrieve version and build data, and a widget test checks the displayed text.
Add version information to Settings
packages/uni_app/lib/view/profile/widgets/settings.dart
Settings displays AppVersionInfo after the logout card.

Sequence Diagram(s)

sequenceDiagram
  participant Settings
  participant AppVersionInfo
  participant PackageInfo
  participant Localization
  Settings->>AppVersionInfo: builds widget
  AppVersionInfo->>PackageInfo: requests platform metadata
  PackageInfo-->>AppVersionInfo: returns version and build
  AppVersionInfo->>Localization: formats version_info
  AppVersionInfo-->>Settings: renders localized text
Loading

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 9fad9

The localized version footer is ready to merge after normal checks.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Linked Issues check Passed Issue #1928 requires a subtle Settings footer with the app name, version, and build number. The PR adds AppVersionInfo, reads PackageInfo, displays localized version and build values, inserts the …
Out of Scope Changes check Passed The changes stay within issue #1928. The dependency, localization entries, widget, Settings integration, and widget test directly support the requested version footer. No unrelated product behavior is…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Title check Passed The title clearly and concisely describes the main change: showing the app version on the Settings page.
Description check Passed The description identifies the linked issue, summarizes the implementation, includes UI screenshots, and documents testing in light and dark modes with Portuguese and English text. It does not explici…
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch has not been deployed

No deployments
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.

ui: Show the app version on the Settings page

1 participant