Skip to content

serval-admin: serval-builds: add user name#3897

Merged
Nateowami merged 2 commits into
masterfrom
task/sb-name
May 19, 2026
Merged

serval-admin: serval-builds: add user name#3897
Nateowami merged 2 commits into
masterfrom
task/sb-name

Conversation

@marksvc
Copy link
Copy Markdown
Collaborator

@marksvc marksvc commented May 19, 2026

This patch adds the user's name to the Requesting user card. A
re-ordering of the card's items is planned for followup.

Screenshot of Requesting user card:
image


This change is Reviewable

This patch adds the user's name to the Requesting user card. A
re-ordering of the card's items is planned for followup.
@marksvc marksvc requested a review from Copilot May 19, 2026 21:42
@marksvc marksvc added the e2e Run e2e tests for this pull request label May 19, 2026
@marksvc marksvc marked this pull request as draft May 19, 2026 21:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds the user’s “name” field to the “Requesting user” details card in Serval Administration’s Serval Builds view, by extending the requester identity lookup and rendering the new value in the expanded-row details UI.

Changes:

  • Added a requesterName() helper and extended the cached requester identity to include name.
  • Rendered “Name” in the “Requesting user” card and avoided a template variable name collision.
  • Added a unit test verifying requester name is loaded from user data.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-builds.component.ts Extends requester identity lookup to include name and exposes requesterName() for the template.
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-builds.component.html Displays requester “Name” in the expanded “Requesting user” card.
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-builds.component.spec.ts Adds test coverage for loading requester name and updates test user fixtures accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 438 to 447
private requesterIdentity(
requesterSFUserId: string | undefined
): Observable<{ displayName?: string; emailAddress?: string }> {
): Observable<{ name?: string; displayName?: string; emailAddress?: string }> {
if (requesterSFUserId == null) {
return of({});
}

const requesterKey: string = requesterSFUserId;
const cached$: Observable<{ displayName?: string; emailAddress?: string }> | undefined =
const cached$: Observable<{ name?: string; displayName?: string; emailAddress?: string }> | undefined =
this.requesterIdentityCache.get(requesterKey);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@marksvc marksvc marked this pull request as ready for review May 19, 2026 21:49
@marksvc marksvc temporarily deployed to screenshot_diff May 19, 2026 21:55 — with GitHub Actions Inactive
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.96%. Comparing base (82d0603) to head (a15218b).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3897   +/-   ##
=======================================
  Coverage   80.96%   80.96%           
=======================================
  Files         632      632           
  Lines       40788    40790    +2     
  Branches     6590     6609   +19     
=======================================
+ Hits        33025    33027    +2     
+ Misses       6738     6725   -13     
- Partials     1025     1038   +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Collaborator

@Nateowami Nateowami left a comment

Choose a reason for hiding this comment

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

:lgtm:

@Nateowami reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on marksvc).

@Nateowami Nateowami merged commit 0412d54 into master May 19, 2026
24 of 26 checks passed
@Nateowami Nateowami deleted the task/sb-name branch May 19, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Run e2e tests for this pull request testing not required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants