215 Commits

Author SHA1 Message Date
Henriette Darge 549bf69156 Introduce specific variables for list item selection, hover and pressed state 2026-06-03 09:40:42 +02:00
Henriette Darge 3d35922f46 Add ckEditor font color override to support dark mode again 2026-05-26 11:10:30 +02:00
Behrokh Satarnejad d924c255cf [69524] Primerize Types form configuration page (#22854)
* Create the section component

* Create the form configuration component

* Create a controller

* change form template

* Use primer dialog for reset to defaults button

* show WP configuration modal while creating a related WPs table

* Fix the drag and drop functionality without save button

* Fix renaming functionality

* Use generic drag and drop in form configuration and move all client side action handling to server side

* Fix embedded query form configuration regressions

* Add data test selectors to all elements that we used for test

* update the current tests with the new implementations and design

* Add new tests for new controller of sections and rows

* WP quesry row should only have edit quesry action

* Update transformer spec regarding the new changes

* Fix the failing test in reset form configuration and some tests for actions

* Fix rubocop errors

* Fix eslint errors

* Add spec for removing a section

* Use condensed border boxes

* fix failing specs

* fix failing specs

* Switch the buttons in form configuration component

* Create the section at the top of the list

* Instead of using UUID, use the name of the group as the key

* Add missing check for EE for section actions

* Remove angular components

* Use action list instead of a border box for left side panel

* Reduce the margin between the right side panel and sub header, add some space to the query table left side, span to the whole available space

* Show validation errors while updating and creating a section

* Use a danger dialog for reset to default

* Add a confirmation for removing the section

* Align items in the row

* Use test_selector instead of data-test-selector

* Create move_action in rb file

* Create move_action in rb file

* Simplify section component

* Simplify form configuration component

* Remove dialog for rename and delete section on missing EE

* Create a component for inactive attribute list

* Create a separate component for reset dialog

* Remove EE feedback dialog

* Remove form partial which is not needed anymore

* Remove unused js strings

* Update using update_via_turbo

* Remove form configuration rows controller

* Create a blanksalte component

* Fix failing specs

* Fix failing specs

* Fix failing specs

* Remove unused translation strings

* Align form configuration section routes with actual create flow

* Change section to group

* Change section to group in services and controllers

* Change section to group in en.yml

* Fix rubocop errors

* Move the query group persistence assertion from the JS feature spec
to the synchronous form configuration groups controller spec.

* Reuse query service result in embedded query build

* Keep inactive attribute filter after turbo list refresh

* Extract form configuration group edit state into form model

* Fix the failing test

* Potential fix for pull request finding 'CodeQL / Potentially uninitialized local variable'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Rename inactive attribute component inputs

* Refine reset dialog wording for form configuration

* Use direct Turbo action for adding attribute groups

* Reuse generic filter-list controller for inactive attributes

* Remove focus impelementation in ts

* Group form configuration Stimulus controllers under one namespace

* Use turbo request service in form configuration controller

* Clarify legacy group key normalization in form config contract

* Replace inactive attribute list wrapper via turbo stream

* Extract duplicate untitled group key generation into Type::FormGroup.next_untitled_key

* Auto-generate untitled group name on create instead of returning an error

* Avoid mixed return types in form config group create service

* Extract shared form configuration group service behavior into concern

* Fix spacing for the last group and italic font for the placeholder rows

* Replace Angular no-results component with Primer Banner on form configuration page

* Hide dropped element immediately to prevent flickering before Turbo Stream response

* Reload type before rendering create error to prevent duplicate groups

* Await service initialization before use to prevent potential race condition

* Replace sleep calls with deterministic waits in form configuration spec

* Handle malformed JSON and invalid query errors gracefully in form configuration update

* Make query group label a clickable button and empty group hint italic

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-05-13 12:56:18 +02:00
Behrokh Satarnejad 7014e13d3e Merge pull request #22475 from opf/71063-create-a-pagination-component-based-on-the-primer-specification
[71063] Update PVC with new Pagination component and Banner styles
2026-03-25 14:02:04 +01:00
Alexander Brandon Coles 259467f646 [#69905] Fix missing "Custom logo mobile" caption
Adds instructions to match Desktop logo field.

https://community.openproject.org/work_packages/69905
2025-12-15 10:59:32 +01:00
Behrokh Satarnejad cc67571054 [68734] Low color contrast on Buy now button on enterprise banners (#21239)
* Use a better color for background of upsale button

* Use same color for enterprise elements

* Use a color for the text which has good contrast in dark mode

* set correct border color
2025-12-03 12:28:10 +01:00
Behrokh Satarnejad 701103240a [68323] Custom logo for mobile (#21059)
* add a migration to upload custom mobile logo

* add a new route for uploading nd removing mobile logo

* show custom logo in header

* Add a feature spec

* Update custom_style.rb

* Show mobile icon for desktop when there is no desktop logo

* show icon logo in waffle menu modal

* Show logo icon when a custom mobile logo exists or when no custom desktop logo is uploaded
2025-11-21 11:25:57 +01:00
Behrokh Satarnejad 7acd767f9a map cklink color to accent color in dark mode 2025-11-14 15:00:57 +01:00
as-op 610bd02c14 switch button data method to turbo_method 2025-10-23 16:25:10 +02:00
OpenProject Actions CI 60703c9de5 Merge branch 'release/16.5' into dev 2025-10-01 14:30:01 +00:00
Henriette Darge 297ce54853 Increase contrast of upsell coloured text 2025-10-01 08:12:08 +02:00
Oliver Günther 14192a74c3 Replace confirm with turbo-confirm, method with turbo-method 2025-09-26 09:15:04 +02:00
Behrokh Satarnejad e9e780fb59 make the bg color of sidebar menu same as body bg color and change the header in dark and ligh high contrast 2025-08-28 11:58:16 +02:00
Andrej Sandorf 6d32400044 Merge pull request #19874 from opf/feature/66384-custom-font-for-pdf-exports
[#66384] Custom font for PDF Exports
2025-08-26 12:49:16 +02:00
as-op 67c8725486 fix standard .html.erb naming 2025-08-26 09:20:14 +02:00
Oliver Günther 1b726e61fa Merge pull request #19878 from opf/66121-ui-improvements-for-exisiting-project-overview-page
[66121] UI improvements for exisiting project "Overview" page
2025-08-25 13:04:07 +02:00
as-op b3d108e71c refactor duplicate code in custom styles view; add PDF demo generator 2025-08-19 12:28:33 +02:00
as-op 3fe0d04c04 Merge branch 'dev' into feature/66384-custom-font-for-pdf-exports
# Conflicts:
#	app/controllers/custom_styles_controller.rb
#	app/helpers/custom_styles_helper.rb
#	app/models/custom_style.rb
#	config/locales/en.yml
#	config/routes.rb
2025-08-14 16:23:06 +02:00
Andrej Sandorf 0f43548ae7 Merge branch 'dev' into feature/65124-fitko-styling-pdf-export-of-meeting-minutes 2025-08-14 12:38:07 +02:00
Andrej Sandorf 96b548b849 Merge branch 'dev' into feature/66384-custom-font-for-pdf-exports 2025-08-14 10:58:44 +02:00
Kabiru Mwenja d21f1cfc71 Enable dark high contrast theme
https://community.openproject.org/wp/66395
2025-08-13 16:35:49 +03:00
as-op f77041b006 remove unnecessary function, better naming 2025-08-12 10:57:25 +02:00
Behrokh Satarnejad 75ebbc1744 change bg color of body and make the widget box like a primer border box 2025-08-11 22:19:23 +02:00
as-op 109a886c35 [#66384] Custom font for PDF Exports
admin tab for uploading font cuts

https://community.openproject.org/work_packages/66384
2025-08-11 17:12:17 +02:00
as-op ac3685ed80 upload a footer image for PDF exports 2025-08-06 15:39:49 +02:00
Behrokh Satarnejad 89135ae36c [64230] Accessibility, Contrast issues (#19608)
* change grid line colors

* set a color for the avatar that has a good contrast with bg color

* set menu item color for the header, set high contrast colors for all colors not only high contrast ones

* increase font size and color of bar graphs

* remove color mode from color service tohsl method

* remove transfor uppercase text for headlines

* remove --main-menu-fieldset-header-color variable which is not needed anymore

* change border color

* fix eslint errors

* remove uppercase test for sub menu title
2025-08-06 11:43:42 +02:00
Behrokh Satarnejad 5738da779a [66026] Add the OpenProject logo in the mobile header (#19711)
* show logo icon in top bar menu

* change class name

* set the same style in one place

* show logo icon in waffle menu

* when there is a custom logo, hide the logo icon both in waffle menu header and top bar

* check if current custom styles present

* remove unnecessary styles and make the icon logo a link to home page

* remove unnecessary styles set for identifiers

* change class names
2025-07-30 15:11:12 +02:00
Henriette Darge a30efd3e98 Merge branch 'dev' into feature/56583-redesign-the-top-bar-app-header-using-primer 2025-07-23 12:52:13 +02:00
OpenProject Actions CI bf2aaca06a Merge branch 'release/16.2' into dev 2025-07-23 10:16:24 +00:00
Behrokh Satarnejad 783d37eb89 [65926] Impossible to change the left-side menu colour (#19647)
* create a stimulus controller

* use stimulus controller in interface partial

* disable turbo for interface partial and undo controller implementation

* fix some spacing
2025-07-23 10:56:34 +02:00
Henriette Darge e97c6a94b5 Merge remote-tracking branch 'origin/dev' into feature/56583-redesign-the-top-bar-app-header-using-primer 2025-07-23 09:33:11 +02:00
Behrokh Satarnejad a20d953b3d [65090] Migrate waffle icon from a normal menu to a overlapping lateral menu (#19595)
* use dialog instead of action menu

* show logo at the top of the action list

* add aria-controls for button

* use custom logo nno matter which theme is selected

* make the header items center aligned

* style the logo

* rename functions and clas names

* fix rubocup errors

* align method parameters

* add home, my page and my time tracking to the waffle menu

* Refactor render_dialog_item_group to merge and separate :my and :modules menu items

* remove unnecessary context set

* fix failing test

* update specs for home and my page items

* update specs for my time tracking menu item

* when the user is logged in then show my page in the waffle menu

* remove override styles for close button in header

* find a better name for classes

* update specs for my page not visible for not-logged in user

* move my time tracking menu item from menus.rb to engine.rb
2025-07-23 09:10:05 +02:00
Henriette Darge 82fd47abf6 Remove obsolete design variable 2025-07-22 12:08:12 +02:00
Henriette Darge 6d498ccf20 Primerize the top bar user dropdown 2025-07-21 15:35:50 +02:00
Henriette Darge ae2f247717 Move the default for the sidebar menu border with around now that the default color is white and the border is needed 2025-07-03 07:54:31 +02:00
Henriette Darge e64c104543 Set new default color for main menu 2025-07-01 07:49:40 +02:00
Henriette Darge d983851576 Remove main-menu-bg-hover-color from set of configurable design variables. Instead we use the Primer behaviour for ActionLists 2025-06-25 15:47:26 +02:00
Oliver Günther c304da7aa2 Add helper method to wrap banner and content into one check 2025-06-12 13:59:00 +02:00
Oliver Günther 2f451d70f0 Allow wrapping content in the banner 2025-06-12 13:38:56 +02:00
Oliver Günther 5ad8a063ae Replace UpsellPageCompomponent with banners rendered as part of the normal flow 2025-06-12 13:38:55 +02:00
Henriette Darge da8ec0d4c1 Get rid of with_tab_nav from the tab helper as all pages now use the Primer PageHeader and its tabNav. Thus we can also get rid of an old Angular component 2025-04-30 12:24:32 +02:00
Oliver Günther e27ac494d3 Consistent naming of upsell, not upsale 2025-04-24 15:52:34 +02:00
Oliver Günther 9357553e3f Replace common/upsale with component 2025-04-07 10:55:22 +02:00
Oliver Günther f8600251a8 Use darkened, transparent border color in color square 2025-02-25 20:12:00 +01:00
Ivan Kuchin 4eb956e5c6 erb_lint auto fix rails stuff 2025-02-11 18:49:22 +01:00
Ivan Kuchin fba9d4b506 erb_lint auto fix quoted symbol 2025-02-11 18:49:21 +01:00
Ivan Kuchin 0f6a12da3a erb_lint auto fix layout 2025-02-11 18:49:20 +01:00
Ivan Kuchin fb715f21b9 erb_lint auto fix quotes 2025-02-11 18:49:19 +01:00
Ivan Kuchin 0b1f73ec79 erb_lint auto except rubocop linter 2025-02-11 18:49:19 +01:00
Behrokh Satarnejad bd073a1398 fix missing semi colon 2024-10-23 10:58:35 +02:00