serval-admin: link to Serval Builds rather than Draft Jobs#3962
serval-admin: link to Serval Builds rather than Draft Jobs#3962marksvc wants to merge 3 commits into
Conversation
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.
There was a problem hiding this comment.
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-buildstab 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.
| @if (isOnline) { | ||
| <div class="filter-controls"> | ||
| <app-date-range-picker [showReset]="true" (dateRangeChange)="onDateRangeChange($event)"></app-date-range-picker> |
| viewDraftJobs(projectId: string): void { | ||
| void this.router.navigate(['/serval-administration'], { | ||
| queryParams: { | ||
| projectId, | ||
| tab: 'draft-jobs' | ||
| tab: 'serval-builds', | ||
| q: projectId | ||
| } | ||
| }); |
There was a problem hiding this comment.
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.
| navigateToDraftJobs(): void { | ||
| void this.router.navigate(['/serval-administration'], { | ||
| queryParams: { | ||
| projectId: this.activatedProjectService.projectId!, | ||
| tab: 'draft-jobs' | ||
| tab: 'serval-builds', | ||
| q: this.activatedProjectService.projectId! | ||
| } | ||
| }); |
There was a problem hiding this comment.
(I updated just the UI label for now.)
Codecov Report✅ All modified and coverable lines are covered by tests. 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. |
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:

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:

Open in Devin Review
This change is