Skip to content

serval-admin: link to Serval Builds rather than Draft Jobs#3962

Open
marksvc wants to merge 3 commits into
masterfrom
task/sb-link-to-sb
Open

serval-admin: link to Serval Builds rather than Draft Jobs#3962
marksvc wants to merge 3 commits into
masterfrom
task/sb-link-to-sb

Conversation

@marksvc

@marksvc marksvc commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

On the Serval Administration - Projects tab, a button can be clicked
to see the list of draft jobs. Similarly, on the Serval admin page for
an indivdual project, a button can be clicked to view the list of
draft jobs.

This patch changes these places to go to the Serval Builds tab instead
of the Draft Jobs tab, and adjusts the notices to say that the Draft
Jobs tab is going away.

Opening a list of Serval Builds for a given project makes use of the Search feature. Screenshot showing Search control populated with a SF project ID:
image

The "Coming soon" notice on the Serval Builds tab is removed. A "Going away" notice is added to the Draft Jobs tab. Screenshot showing "Going away" notice:
image


Open in Devin Review


This change is Reviewable

On the Serval Administration - Projects tab, a button can be clicked
to see the list of draft jobs. Similarly, on the Serval admin page for
an indivdual project, a button can be clicked to view the list of
draft jobs.

This patch changes these places to go to the Serval Builds tab instead
of the Draft Jobs tab, and adjusts the notices to say that the Draft
Jobs tab is going away.
@marksvc marksvc requested a review from Copilot June 22, 2026 18:00
@marksvc marksvc added the e2e Run e2e tests for this pull request label Jun 22, 2026
@marksvc marksvc marked this pull request as draft June 22, 2026 18:00

Copilot AI 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.

Pull request overview

Updates Serval Administration navigation so “Draft Jobs” entry points route users to the newer Serval Builds tab, and shifts deprecation messaging toward the Draft Jobs tab being removed.

Changes:

  • Updated navigation from project list and project detail to open the serval-builds tab with a pre-filled search query (q=<projectId>).
  • Removed the “preview” notice from the Serval Builds tab.
  • Added a warning notice to the Draft Jobs tab indicating it will be removed soon, plus spacing for notices.

Reviewed changes

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

Show a summary per file
File Description
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-projects.component.ts Routes “Draft Jobs” action to Serval Builds tab using q search param.
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-project.component.ts Routes project-level “View Draft Jobs” action to Serval Builds tab using q search param.
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-builds.component.html Removes the Serval Builds preview notice from the UI.
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/draft-jobs.component.scss Adds margins around notices in the Draft Jobs view.
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/draft-jobs.component.html Adds a warning notice about the Draft Jobs tab being deprecated.

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

Comment on lines 1 to 3
@if (isOnline) {
<div class="filter-controls">
<app-date-range-picker [showReset]="true" (dateRangeChange)="onDateRangeChange($event)"></app-date-range-picker>

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.

Removed.

Comment on lines 173 to 179
viewDraftJobs(projectId: string): void {
void this.router.navigate(['/serval-administration'], {
queryParams: {
projectId,
tab: 'draft-jobs'
tab: 'serval-builds',
q: projectId
}
});

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.

Right; that could be confusing. For now I chose to update just the UI labels of the buttons that link to the Serval Builds tab.

Comment on lines 347 to 353
navigateToDraftJobs(): void {
void this.router.navigate(['/serval-administration'], {
queryParams: {
projectId: this.activatedProjectService.projectId!,
tab: 'draft-jobs'
tab: 'serval-builds',
q: this.activatedProjectService.projectId!
}
});

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.

(I updated just the UI label for now.)

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.92%. Comparing base (e5df661) to head (f7cf24a).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3962   +/-   ##
=======================================
  Coverage   80.92%   80.92%           
=======================================
  Files         637      637           
  Lines       41245    41245           
  Branches     6721     6702   -19     
=======================================
  Hits        33376    33376           
- Misses       6814     6827   +13     
+ Partials     1055     1042   -13     

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

@marksvc marksvc removed the e2e Run e2e tests for this pull request label Jun 22, 2026
@marksvc marksvc temporarily deployed to screenshot_diff June 22, 2026 21:49 — with GitHub Actions Inactive
@marksvc marksvc added testing not required e2e Run e2e tests for this pull request labels Jun 22, 2026
@marksvc marksvc marked this pull request as ready for review June 22, 2026 22:05
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.

2 participants