[Dream-76] Primerise Interface tab of Admin/Design page - #24854
[Dream-76] Primerise Interface tab of Admin/Design page#24854bsatarnejad wants to merge 5 commits into
Conversation
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
|
Caution The Enterprise plan field is not set on the work package Details:
Please make sure that:
|
There was a problem hiding this comment.
Pull request overview
This PR primerizes the Interface tab under Admin → Design, replacing the legacy form-based UI with Primer components (grouped color sections and per-color edit dialogs) and introducing an auto-submitting theme selector consistent across relevant tabs.
Changes:
- Reworks the Interface tab UI into Primer headings + grouped
BorderBoxsections, with per-color edit dialogs. - Switches the theme selector to an auto-submit
Primer::Alpha::Selectand updates feature specs accordingly. - Adds translations and helper logic to support grouped colors and inherited/theme-based effective values.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| spec/features/custom_styles/tabs_navigation_spec.rb | Updates feature coverage for the new Primer UI, including dialog-based editing and auto-submit theme selection. |
| spec/controllers/custom_styles_controller_spec.rb | Adds controller-level coverage for updating themes while preserving the selected tab. |
| config/locales/en.yml | Adds labels/captions for color groups and per-color editing text. |
| app/views/custom_styles/show.html.erb | Replaces the old theme selector UI with a Primer Select wired to an auto-submit Stimulus controller. |
| app/views/custom_styles/_interface.html.erb | Primerizes the Interface tab layout and replaces the bulk form with per-color edit dialogs. |
| app/helpers/custom_styles_helper.rb | Introduces grouping and “effective color” helper logic to support the new UI rendering. |
Suppressed comments (1)
spec/features/custom_styles/tabs_navigation_spec.rb:98
- This example relies on opening and submitting a Primer dialog. In non-JS feature specs the dialog open/close behavior is not executed, which can make the test fail or become flaky. Add
:jsso the test runs with a JS driver.
it "restores the inherited color by clearing an override" do
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| expect(custom_style.reload.theme).to eq("OpenProject Gray") | ||
| end | ||
|
|
||
| it "changes accent color and redirects to interface tab" do |
Ticket
https://community.openproject.org/wp/DREAM-76
What are you trying to accomplish?
Primerise interface tab in admin->design(interface)
Screenshots