[73372] Wrong icon used when changing non working days - #23292
Merged
bsatarnejad merged 7 commits intoMay 29, 2026
Conversation
HDinger
requested changes
May 21, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the admin “Working days & hours” confirmation flow to use a server-rendered Primer DangerDialog (via Turbo Streams) instead of the legacy Angular confirm dialog, addressing the wrong-icon issue when changing non-working days.
Changes:
- Replaces the Angular
ConfirmDialogServiceflow with a Turbo Stream request that rendersAdmin::Settings::WorkingDays::ConfirmDialogComponent. - Adds an
Admin::Settings::WorkingDaysAndHoursSettingsController#confirm_changesendpoint + route to serve the dialog content. - Updates feature specs to interact with the new dialog and adds component specs for the new dialog component.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| spec/features/admin/working_days_spec.rb | Updates feature spec interactions to click Primer dialog buttons instead of the legacy confirmation dialog helper. |
| spec/components/admin/settings/working_days/confirm_dialog_component_spec.rb | Adds component specs for the new DangerDialog, including hidden-field submission behavior. |
| frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.ts | Replaces the legacy modal confirm flow with a Turbo Stream request that opens the server-rendered dialog. |
| config/routes.rb | Adds a POST route for working_days_and_hours/confirm_changes. |
| config/locales/js-en.yml | Removes now-unused JS-only confirmation dialog strings. |
| config/locales/en.yml | Adds server-side i18n keys for the new working-days confirmation dialog. |
| app/controllers/admin/settings/working_days_and_hours_settings_controller.rb | Adds confirm_changes action and refactors param access to support the dialog rendering. |
| app/components/admin/settings/working_days/confirm_dialog_component.rb | Introduces a new component to render the confirmation dialog and re-post captured settings via hidden fields. |
| app/components/admin/settings/working_days/confirm_dialog_component.html.erb | Implements the Primer DangerDialog markup/content (no icon) and includes hidden settings fields for submission. |
HDinger
requested changes
May 26, 2026
…t and call update on confirm changes
HDinger
approved these changes
May 27, 2026
bsatarnejad
deleted the
73372-wrong-icon-used-when-changing-non-working-days
branch
May 29, 2026 07:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Ticket
https://community.openproject.org/wp/73372
What are you trying to accomplish?
Use a Primer DangerDialog for the working-days confirmation modal.