Skip to content

Reimplement lost platformVersion window prop#458

Open
johnnycrich wants to merge 2 commits into
stagingfrom
440-app-version-appears-as-null-in-sidebar
Open

Reimplement lost platformVersion window prop#458
johnnycrich wants to merge 2 commits into
stagingfrom
440-app-version-appears-as-null-in-sidebar

Conversation

@johnnycrich
Copy link
Copy Markdown
Contributor

@johnnycrich johnnycrich commented May 27, 2026

What is in this PR?

Resolve version number appearing as null in the app sidebar.

Changes in the codebase

./client/web/index.html:

Testing this PR

Open sidebar and see that app version is visible (Github SHA on preview build, __VERSION__ on local).

Copilot AI review requested due to automatic review settings May 27, 2026 21:36
@johnnycrich johnnycrich added the bug Something isn't working as intended label May 27, 2026
@johnnycrich johnnycrich linked an issue May 27, 2026 that may be closed by this pull request
@johnnycrich johnnycrich requested a review from katherineqian May 27, 2026 21:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reintroduces the window.platformVersion global in the Flutter web entrypoint to fix the app sidebar displaying the version as null, after it was removed during the Flutter web bootstrap refactor in #388.

Changes:

  • Re-adds window.platformVersion = "__VERSION__"; in client/web/index.html so the web client can read and render the version string.
  • Runs an HTML auto-format pass (doctype casing, indentation, attribute wrapping) while keeping existing loading behavior intact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/web/index.html
body {
margin: 0;
padding: 0;
/* Prevent body scroll, allow Fltter to handle it internally.*/
Comment thread client/web/index.html
</script>

<script>
if (window.location.hostname == "localhost") {
Comment thread client/web/index.html
@github-actions
Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 5594c56):

https://gen-hls-bkc-7627--pr458-440-app-version-appe-zrvv6w93.web.app

(expires Wed, 10 Jun 2026 21:42:36 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: eed668cca81618d491d024574a8f8a6003deaa8d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App version appears as null in sidebar

2 participants