Skip to content

tweak(persons): show the person name under the page title - #5408

Open
ux-git wants to merge 2 commits into
sws2apps:mainfrom
ux-git:tweak/person-page-title
Open

tweak(persons): show the person name under the page title#5408
ux-git wants to merge 2 commits into
sws2apps:mainfrom
ux-git:tweak/person-page-title

Conversation

@ux-git

@ux-git ux-git commented Sep 4, 2026

Copy link
Copy Markdown
Member

The person page had only "Edit person" in the header, with no hint of who is being edited.

It now uses the existing two-line page title: "Edit person" with the person name under it, the same variant the field service reports page already uses. Adding a new person keeps the plain title.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Devin Review

Use the page title variant with a second line for the person page, so
the header reads Edit person with the name of the person under it. A new
person keeps the plain title.
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
staging-organized-app Ready Ready Preview Sep 4, 2026 9:48pm UTC
test-organized-app Ready Ready Preview Sep 4, 2026 9:48pm UTC

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Important

Approval pending

CodeRabbit has no unresolved comments, but it could not review the latest commit because the review limit was reached. Follow the review guidance in this comment to continue.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

devin-ai-integration[bot]

This comment was marked as resolved.

The shared person record still holds the previously opened person until the effect replaces it, so the title briefly showed the wrong name on direct loads and person-to-person navigation.
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

Devin Review

Comment on lines +29 to +31
const record = isNewPerson
? person
: persons.find((item) => item.person_uid === id);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Edited names leave title stale

When an existing person's name changes, personName reads the saved record instead of current edits. The title retains the old name until saving.

Suggested change
const record = isNewPerson
? person
: persons.find((item) => item.person_uid === id);
const record =
isNewPerson || person.person_uid === id
? person
: persons.find((item) => item.person_uid === id);
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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