Commit f3ab183
Andy/radio button toggle (#2378)
* Add ability to update a jobs project name
* fix: formatting
* Add ability to nuke all loaded jobs
* Make Help more easily seen on Filter's panel.
* DS-6336 Text modified to be translatable.
* Lint space
* feat: Update to use jobs patch endpoint
* Update src/app/components/filters-dropdown/dataset-filters/dataset-filters.component.scss
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Round 1 of revamping the UI
* Fix console error related to translation.
* Bulk rename uses new dialog
* npm run lint -- --fix
* On Demand search reloads after bulk rename
* npm run lint -- --fix
* Resolving issues from merging with test
* Snackbar message for renaming jobs
* Adding multi-lingual support to rename dialog
And a few other UI tweaks.
* Edit Validation
Added checks for empty project name entry or only spaces. Also validate that the jobs were successfully renamed and provided error handling. Will provide error notification with toast.
* Update src/app/services/hyp3/hyp3-api.service.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/app/store/scenes/scenes.action.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix for flight direction graphics not appearing in Displacement
I think this is an unreported bug resulting from the recent Angular upgrade.
* Show projects that are going to be renamed with the bulk operation.
* Update uniqueProjectNames filtering
* Fix: update job count in dialog
* Fix single job rename
* Many Changes
* Added list of projects and associated job counts in a sortable table
* Limited project name input to 100 characters
* Prevent user from changing names of projects for other users
* Progress Bar
I've implemented a two-phase dialog that handles the rename operation internally with a determinate progress bar.
* Deterministic Progress Bar
The Project Rename dialog box now is augmented with a couple more screens indicating renaming progress and completion.
* UI Improvements
* Auto-focus the input field
* Show the new name in the confirmation message
* Show specific project names if failed
I've implemented the feature to show which specific project names failed to rename in the completion phase.
* Show Time Estimate for Bulk Rename Completion
I've implemented the estimated time remaining feature for large batch rename operations. Here's what was added:
How it works:
The estimated time is calculated based on the elapsed time and number of completed batches
It only displays for operations with 1000+ jobs (to avoid showing for small, quick operations)
The time is displayed in a user-friendly format (e.g., "< 1 min", "~1 min", "~5 min")
* Project Rename Title Updated
Updated the table to William's suggestions.
* npm run lint -- --fix
* Update src/app/store/scenes/scenes.action.ts
Co-authored-by: William Horn <wbhorn@alaska.edu>
* Update src/app/services/hyp3/hyp3-api.service.ts
Co-authored-by: William Horn <wbhorn@alaska.edu>
* Created three named interfaces at the top of hyp3-api.service.ts
* RenameProgressInfo - Progress info with percent and estimated time remaining
* RenameResult - Final result with success/failed counts and failed project names
*RenameWithProgressResult - The composite return type containing both observables
I also changed a 'sneaky' 3 into a constant
* Update src/app/components/shared/project-name-dialog/project-name-dialog.component.ts
Co-authored-by: William Horn <wbhorn@alaska.edu>
* Tyler Suggestions
Fixed - Red toast regression
Fixed - Missing unnamed projects
* Tyler Suggestions #2
Fixed - Empty string validation feedback
Fixed - Checkbox disclaimer with empty string
* Tyler Suggestions #3
Fixed - Remove dialog service abstraction
Fixed - Convert getter to signal/computed
* Tyler Suggestions #4
Fixed - Use SubSink pattern consistently
Fixed - Moved constructor logic to ngOnInit
* Tyler Suggestions #5
Fixed - Material Table with Sorting in-place
Reviewing the idea of using the Material Stepper consideration, I don't think it is a good fit. The phases are not user-navigated steps, they're system-driven and there is no option for backward navigation.
* npm run lint -- --fix
* Conformity & Best Practices
#2 - Removed stale SCSS styles: Cleaned up .sortable, .sort-indicator, .projects-table-body-container, and custom table styling that was no longer needed after switching to Material table
* Made dialog injects private: Changed dialogRef and data from public to private to match codebase pattern
* Added readonly to displayedColumns: Added readonly modifier since the array never changes
* Fixed track function: Changed track name to track $index to handle potential duplicate project names in the failed list
* Made "(unnamed)" multilingual
* Tweaks
Made the Project Rename table sorted by Project Name by default and eliminated the use of ::ng-deep in the Project Rename scss files.
* Conformity & Best Practices
* Removed stale SCSS styles: Cleaned up .sortable, .sort-indicator, .projects-table-body-container, and custom table styling that was no longer needed after switching to Material table
* Made dialog injects private: Changed dialogRef and data from public to private to match codebase pattern
* Added readonly to displayedColumns: Added readonly modifier since the array never changes
* Fixed track function: Changed track name to track $index to handle potential duplicate project names in the failed list
* Made "(unnamed)" multilingual
* Tweaks
Made the Project Rename table sorted by Project Name by default and eliminated the use of ::ng-deep in the Project Rename scss files.
* npm run lint -- --fix
* Made the table header 'sticky'
* Fixed Table Header for Dark-Theme
* Show estimated time for 5+ jobs
It was 1000+ before but Tools wants to see it always.
* Warn about Abort
I added a @HostListener for the window:beforeunload event that triggers only when the dialog is in the processing phase.
This will:
- Show the browser's native "Leave site?" confirmation dialog when the user tries to close the tab/window or navigate away
- Only trigger during the processing phase - users can freely close during input, complete, or error phases
- Let the browser handle the UI (modern browsers don't allow custom messages for security reasons)
* Add toggle for removing project names in update dialog
* feat(project-name-dialog): replace button toggle with radio buttons
- Replace mat-button-toggle-group with mat-radio-group for cleaner UX
- Input field now visually nested under "Rename" radio option
- Add singular/plural translation keys for radio labels (en, es, de)
- Add accessible aria-label to radio group
- Update styles for radio group layout and disabled state
- Add docs/ to .gitignore
* Update src/assets/i18n/es.json
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/app/components/shared/project-name-dialog/project-name-dialog.component.scss
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Bug Fix
A single job rename didn't reflect the count of '1' in the dialog for renaming a job. It now does.
---------
Co-authored-by: William Horn <wbhorn@alaska.edu>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 478b6f4 commit f3ab183
7 files changed
Lines changed: 124 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
Lines changed: 72 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
38 | 65 | | |
39 | 66 | | |
40 | 67 | | |
| |||
86 | 113 | | |
87 | 114 | | |
88 | 115 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
101 | 142 | | |
102 | 143 | | |
103 | 144 | | |
| |||
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
29 | 37 | | |
30 | | - | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
35 | 57 | | |
36 | 58 | | |
37 | 59 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
| |||
157 | 164 | | |
158 | 165 | | |
159 | 166 | | |
160 | | - | |
| 167 | + | |
161 | 168 | | |
162 | 169 | | |
163 | 170 | | |
| |||
204 | 211 | | |
205 | 212 | | |
206 | 213 | | |
207 | | - | |
| 214 | + | |
208 | 215 | | |
209 | 216 | | |
210 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| 600 | + | |
| 601 | + | |
600 | 602 | | |
601 | 603 | | |
602 | 604 | | |
| |||
609 | 611 | | |
610 | 612 | | |
611 | 613 | | |
| 614 | + | |
| 615 | + | |
612 | 616 | | |
613 | 617 | | |
614 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
713 | 715 | | |
714 | 716 | | |
715 | 717 | | |
| 718 | + | |
| 719 | + | |
716 | 720 | | |
717 | 721 | | |
718 | 722 | | |
| |||
728 | 732 | | |
729 | 733 | | |
730 | 734 | | |
| 735 | + | |
| 736 | + | |
731 | 737 | | |
732 | 738 | | |
733 | 739 | | |
| |||
1050 | 1056 | | |
1051 | 1057 | | |
1052 | 1058 | | |
1053 | | - | |
| 1059 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
714 | 716 | | |
715 | 717 | | |
716 | 718 | | |
| 719 | + | |
| 720 | + | |
717 | 721 | | |
718 | 722 | | |
719 | 723 | | |
| |||
729 | 733 | | |
730 | 734 | | |
731 | 735 | | |
| 736 | + | |
| 737 | + | |
732 | 738 | | |
733 | 739 | | |
734 | 740 | | |
| |||
1051 | 1057 | | |
1052 | 1058 | | |
1053 | 1059 | | |
1054 | | - | |
| 1060 | + | |
0 commit comments