Skip to content

fix(spa-title): single-project ignored config title. Also added additional tests#2957

Merged
kieronlanning merged 2 commits into
kieron/added-aspirec4from
fix/project-title-from-config
May 16, 2026
Merged

fix(spa-title): single-project ignored config title. Also added additional tests#2957
kieronlanning merged 2 commits into
kieron/added-aspirec4from
fix/project-title-from-config

Conversation

@kieronlanning

Copy link
Copy Markdown
Collaborator

Checklist

  • I've thoroughly read the latest contribution guidelines.
  • I've rebased my branch onto main before creating this PR.
  • I've added tests to cover my changes (if applicable).
  • I've verified pnpm typecheck and pnpm test.
  • I've added changesets (you can use /changeset-generator SKILL).
  • My change requires documentation updates.
  • I've updated the documentation accordingly (or will do in follow-up PR).

Copilot AI review requested due to automatic review settings May 16, 2026 16:01
@changeset-bot

changeset-bot Bot commented May 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 748a5b6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 22 packages
Name Type
likec4 Patch
@likec4/docs-astro Patch
likec4-vscode Patch
@likec4/playground Patch
@likec4/style-preset Patch
@likec4/styles Patch
@likec4/config Patch
@likec4/core Patch
@likec4/diagram Patch
@likec4/generators Patch
@likec4/language-server Patch
@likec4/language-services Patch
@likec4/layouts Patch
@likec4/leanix-bridge Patch
@likec4/spa Patch
@likec4/log Patch
@likec4/lsp Patch
@likec4/mcp Patch
@likec4/react Patch
@likec4/tsconfig Patch
@likec4/vite-plugin Patch
@likec4/vscode-preview Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kieronlanning kieronlanning changed the base branch from kieron/added-aspirec4 to main May 16, 2026 16:02
@kieronlanning kieronlanning changed the base branch from main to kieron/added-aspirec4 May 16, 2026 16:02
@kieronlanning kieronlanning merged commit 91020dd into kieron/added-aspirec4 May 16, 2026
11 checks passed
@kieronlanning kieronlanning deleted the fix/project-title-from-config branch May 16, 2026 16:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes SPA document title resolution in single-project mode so the overview page uses the project’s configured title (from likec4.config.json) instead of always using the CLI/app pageTitle, aligning behavior with per-view pages and improving user-facing branding consistency.

Changes:

  • Update single-project overview route to prefer project.title over pageTitle when setting document.title.
  • Add unit tests covering likec4:app-config virtual module pageTitle embedding/encoding and documenting title resolution rules across SPA routes.
  • Add a changeset to publish the fix as a patch.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/vite-plugin/src/virtuals/app-config.spec.ts Adds tests validating default/custom/escaped pageTitle output in the virtual module.
packages/likec4-spa/src/routes/_single/single-index.tsx Fixes single-project overview page title to use project.title ?? pageTitle.
packages/likec4-spa/src/page-title.spec.ts Adds tests documenting/locking in title resolution rules for single-project, per-view, and dashboard pages.
.changeset/fix-single-project-page-title.md Declares a patch release for the likec4 package describing the title fix.

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.

2 participants