Skip to content

fix(ui): add per-page document titles (#175) - #182

Merged
antosubash merged 2 commits into
mainfrom
fix/175-per-page-document-titles
May 25, 2026
Merged

fix(ui): add per-page document titles (#175)#182
antosubash merged 2 commits into
mainfrom
fix/175-per-page-document-titles

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

  • Add a title callback to createInertiaApp in app.tsx that formats page titles as "Page Name — SimpleModule" (falling back to bare "SimpleModule" when no title is set)
  • Add <Head title="..." /> from @inertiajs/react to all 22 page components so each browser tab shows a meaningful name instead of the generic "SimpleModule"
  • Pages covered: Dashboard, Doctor, Login, Register, Profile, Forgot Password, Reset Password, Verify Email, Accept Invite, Edit User, Edit Role, Settings, Edit Setting, Create Setting, Modules, File Storage, Feature Flags, Background Tasks, Task Detail, Workers, Error, Welcome (Landing)

Closes#175

Test plan

  • Open the app in a browser, navigate to each page, and confirm the document title updates (e.g. "Dashboard — SimpleModule", "Login — SimpleModule")
  • Verify npx tsc --noEmit -p host/client_app/tsconfig.json passes with no errors
  • Verify per-module tsc checks also pass
  • Confirm the landing page (unauthenticated) shows "Welcome — SimpleModule"
  • Confirm the error page shows "Error — SimpleModule"

@cloudflare-workers-and-pages

cloudflare-workers-and-pagesBot commented May 25, 2026

Copy link
Copy Markdown

Deploying simple-module-python with Cloudflare Pages Cloudflare Pages

Latest commit:0aa5215
Status:⚡️ Build in progress...

View logs

…able (#175)
Add Inertia `<Head title="..." />` to all 22 page components and
configure the `title` callback in `createInertiaApp` to produce
"Page Name — SimpleModule" (or bare "SimpleModule" when no page
title is set).
@antosubash
antosubashforce-pushed the fix/175-per-page-document-titles branch from 0aa5215 to 9b31748CompareMay 25, 2026 20:50
@antosubash
antosubash merged commit 63a0225 into mainMay 25, 2026
11 checks passed
Sign up for freeto 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.

All pages share identical title 'SimpleModule' (a11y)

1 participant

@antosubash