Skip to content

Move the page title into the top header - #34

Merged
fyui001 merged 3 commits into
NewWorldOrg:masterfrom
fyui001:design/page-title-in-header
Jul 10, 2026
Merged

fyui001 merged 3 commits into
NewWorldOrg:masterfrom
fyui001:design/page-title-in-header

Conversation

@fyui001

@fyui001 fyui001 commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

  • The top header now shows the current page title (derived from the active nav item: ダッシュボード / 薬一覧 / 服薬履歴 / 設定), replacing the duplicated "Grace" link — the brand stays in the sidebar.
  • Removed the duplicated section headings from the dashboard, drug list, medication history, and settings content areas; action rows (登録/記録 buttons, period select) remain right-aligned.
  • Detail and edit pages keep their own content headings (drug name, 編集 titles), since those are not nav duplicates.
  • AppShell stories updated to match the new structure.

Verification

  • yarn typecheck / yarn lint / yarn build green.
  • Storybook: header title verified per route (dashboard → ダッシュボード, drugs → 薬一覧, settings → 設定, drug detail → 薬一覧) with screenshots in both themes.

Derive the title from the active nav item and render it in the header
bar, replacing the duplicated app name. Content areas no longer repeat
the section heading; action rows stay right-aligned. Detail and edit
pages keep their own content headings.
@fyui001 fyui001 self-assigned this Jul 9, 2026
fyui001 added 2 commits July 10, 2026 11:50
Replace the nav-derived title with an explicit title prop passed by each
route, so detail and edit pages show a specific heading (the entity name
with the operation) instead of the list-level title. Remove the remaining
per-page content headings so every page has exactly one h1, in the header.
Prefix the medication name to the history detail and edit header titles,
matching the drug pages instead of a generic static label.
@fyui001
fyui001 merged commit ad90b0e into NewWorldOrg:master Jul 10, 2026
2 checks passed
@fyui001
fyui001 deleted the design/page-title-in-header branch July 10, 2026 02:56
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