Skip to content

chore: improve index.html metadata and page title#3095

Open
abhijitbehera710 wants to merge 2 commits intofossasia:flutterfrom
abhijitbehera710:improve-index-metadata
Open

chore: improve index.html metadata and page title#3095
abhijitbehera710 wants to merge 2 commits intofossasia:flutterfrom
abhijitbehera710:improve-index-metadata

Conversation

@abhijitbehera710
Copy link

@abhijitbehera710 abhijitbehera710 commented Feb 25, 2026

Changes

  • Improved meta description
  • Updated page title formatting
  • Standardized apple mobile app title

Screenshots / Recordings

N/A

Checklist:

  • No hard coding: I have used values from constants.dart or localization files instead of hard-coded values.
  • No end of file edits: No modifications done at end of resource files.
  • Code reformatting: I have formatted the code using dart format or the IDE formatter.
  • Code analysis: My code passes checks run in flutter analyze and tests run in flutter test.

Summary by Sourcery

Improve web app metadata and titles for the PSLab web interface.

Enhancements:

  • Refine web manifest metadata including app name, description, start URL, scope, and language.
  • Update HTML meta description, page title, and Apple mobile web app title to use descriptive, properly formatted PSLab branding.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Feb 25, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates web app metadata to use proper PSLab branding, more descriptive text, and correct PWA configuration for manifest and HTML head tags.

File-Level Changes

Change Details Files
Improve PWA manifest branding and configuration.
  • Capitalize app name and short_name to PSLab to match branding.
  • Change start_url to root path and add matching scope for proper PWA routing.
  • Replace generic description with a specific PSLab-focused description.
  • Add lang attribute set to en for better localization and metadata support.
  • Normalize JSON formatting while preserving structure and icons.
web/manifest.json
Update HTML metadata and page title to reflect PSLab branding.
  • Update meta description content to a PSLab-specific description of the web interface.
  • Standardize apple-mobile-web-app-title to PSLab with correct casing.
  • Change document <title> to PSLab - Pocket Science Lab for clearer branding and SEO.
  • Keep existing favicon and manifest links unchanged while adjusting only relevant head tags.
web/index.html

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've found 1 issue, and left some high level feedback:

  • Consider updating the <html> tag to include a matching lang="en" attribute so the document language is consistent with the manifest and better recognized by browsers and assistive technologies.
  • Changing start_url and scope from . to / assumes the app is always hosted at the domain root; if you plan to host it under a subpath, you may want to keep or adjust these values accordingly.
  • Ensure the meta description in index.html and the description in manifest.json are intentionally aligned in tone and content so search engines and PWA install surfaces present a consistent message.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider updating the `<html>` tag to include a matching `lang="en"` attribute so the document language is consistent with the manifest and better recognized by browsers and assistive technologies.
- Changing `start_url` and `scope` from `.` to `/` assumes the app is always hosted at the domain root; if you plan to host it under a subpath, you may want to keep or adjust these values accordingly.
- Ensure the meta description in `index.html` and the `description` in `manifest.json` are intentionally aligned in tone and content so search engines and PWA install surfaces present a consistent message.

## Individual Comments

### Comment 1
<location path="web/manifest.json" line_range="4-5" />
<code_context>
-    "start_url": ".",
+    "name": "PSLab",
+    "short_name": "PSLab",
+    "start_url": "/",
+    "scope": "/",
     "display": "standalone",
     "background_color": "#0175C2",
</code_context>
<issue_to_address>
**issue (bug_risk):** Using root-relative start_url/scope may break installs when the app is served from a subpath.

Because both `start_url` and `scope` are set to `/`, the PWA will be tied to the domain root. If the app is deployed under a subpath (e.g. `/pslab/` or via a reverse-proxy prefix), install and navigation can break. Prefer a relative `start_url` like `"./"` and set `scope` to match the deployment path, or make these configurable per environment.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 25, 2026

Build Status

Build successful. APKs to test: https://github.com/fossasia/pslab-app/actions/runs/22568590135/artifacts/5718021465.

Screenshots

Android Screenshots
iPhone Screenshots
iPad Screenshots

@marcnause marcnause force-pushed the improve-index-metadata branch from b825c82 to 2dac6fb Compare March 2, 2026 08:57
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.

1 participant