1343 Commits

Author SHA1 Message Date
Henriette Darge 396de9362f [74625] Make project hierarchy collapsable in the global project selector (#23137)
* Use new async FilterableTreeView for global project selector

* Remove replaced angular component

* Fine tune sorting and expansion state of the new project selector

* Update primer to 0.86.1

* Add workspace information and filter results hierarchy information to project selector

* Include review feedback: Harmonize I18n keys, fix visible scope, use guarded local storage

* Add a turboFrame in the project select overlay to only load the projects when it is actually opened

* Restore BIM tab styles which were broken for a while already but the new project selector changes made it so bad that the test broke because the plus icon was overlapping the checkbox

* Clarify spec expectation
2026-06-08 08:14:47 +02:00
Henriette Darge 3852563aa9 Add a divider before the "log out" menu entry 2026-04-02 08:23:17 +02:00
Oliver Günther 577d228256 Replace manual html wrangling of diffing 2026-03-20 09:49:11 +01:00
Oliver Günther 4d731dcab6 Replace raw and explicit html_safe calls 2026-03-20 09:49:10 +01:00
Jan Sandbrink 1f7de54aee Remove option to show wiki item as submenu
This option seems to have been broken for quite some time
and lead to pretty inconsistent results. What it clearly didn't
do was to show the item in the project navigation. Some effects were
visible in the wiki navigation, some of them only in some views of
the wiki.

This must have been broken for quite some time without major complaints
about it. Since we want to generalize our wiki options going forward and
also integrate with external wikis, this is a good chance for simplification.

Therefore instead of trying to reverse engineer what this option was supposed
to do, it's going to be removed for the time being.
2026-03-12 11:15:56 +01:00
OpenProject Actions CI bc6b74f782 Merge branch 'release/17.0' into release/17.1 2026-02-05 12:48:33 +00:00
Oliver Günther 1c3e89d108 Fix rendering of multiple dialogs in module menu and allow patching 2026-02-05 13:47:50 +01:00
Oliver Günther 1857f25b58 Primerize static link helper and use that for external links consistently 2026-02-03 11:41:43 +01:00
Alexander Brandon Coles 22865c391a Provide accessible name for top menu navigation
Replaces existing `sr-only` heading.
2026-01-15 23:19:33 -03:00
Alexander Brandon Coles f63e644db8 [#70573] Fix invalid HTML in top menu: use <nav>
Uses a semantic navigation section element.

https://community.openproject.org/work_packages/70573
2026-01-15 23:12:23 -03:00
Henriette Darge e639755346 Revert "Experiment with increased waffle icon"
This reverts commit 2eaa4c37f4.
2026-01-12 08:04:32 +01:00
Henriette Darge 2eaa4c37f4 Experiment with increased waffle icon 2026-01-07 14:06:16 +01:00
Ivan Kuchin 53bec11a62 simplify private menu helper method render_unattached_children_menu
Co-authored-by: Dombi Attila <83396+dombesz@users.noreply.github.com>
2025-12-16 17:16:34 +01:00
Ivan Kuchin e60e8b0857 cleanup+rubocop in menu helper 2025-12-16 17:16:33 +01:00
Ivan Kuchin 143b099816 simplify current_menu_item_part_of_menu? 2025-12-16 17:16:32 +01:00
Ivan Kuchin a85902367e simplify visible_node? 2025-12-16 17:16:32 +01:00
Ivan Kuchin a853c73aa9 simplify badge_for
content_tag already returns safe html
2025-12-16 17:16:32 +01:00
Ivan Kuchin 52652b50c6 fix badge_for
Broken in ef9480bbd6
2025-12-16 17:16:31 +01:00
Ivan Kuchin 4fd0c362eb simplify logic of menu_items_for 2025-12-16 17:16:31 +01:00
Ivan Kuchin 7d0ed670d8 move block logic to public method first_level_menu_items_for 2025-12-16 17:16:30 +01:00
Ivan Kuchin 3bae2a1f29 simplify usage of first_level_menu_items_for in render_menu 2025-12-16 17:16:30 +01:00
Ivan Kuchin cfe417a679 add enterprise icon to items in top menu 2025-12-04 14:16:55 +01:00
Ivan Kuchin 949279fc84 extract MenuItem#enterprise_feature_missing? 2025-12-04 14:15:30 +01:00
Ivan Kuchin e38805d17f get rid of unneeeded "".html_safe in menu helper 2025-12-04 14:15:06 +01:00
Ivan Kuchin e151fe9730 don't show menu item as node with children if all children are not allowed 2025-11-26 19:54:06 +01:00
Behrokh Satarnejad a93c851288 [64225] [Accessibility] Provide alternative text for images (#21183)
* add an input for the principal component to pass an alt text of avatar image

* Add avatar alt text in user menu for the user avatar

* Add alt text for assignee in wp single card

* add some description for the canvas

* add alt for images

* Show the summary of chart on it

* change the method parameters

* Hide the gantt chart from screen reader because it doesnt add any value for the screen reader user

* Use better name for inputs and improve the methods definitions

* fix eslint errors

* fix rubocup errors

* remove alt for bcf snapshot

* better structure for avatar in user menu
2025-11-26 16:07:58 +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
Oliver Günther bf815e7f05 Allow rendering no_menu inside a @project 2025-11-17 20:16:39 +01:00
Henriette Darge 655756631f [67007] Render the WP full view from rails (#20109)
* Create a FullView::CopyComponent for WorkPackages which is routed from rails

* Remove angular splitCopy route and component as it was overwritten by the angular fullCopy route for quite some time already and nobody complained. So we decided to remove the splitCopy completely

* Create FullView::CreateComponent for WorkPackages which is now routed from rails instead of Angular

* First draft of implementing the FullView route for WorkPackages from rails

* Pass correct tab from the URL to the FullView::ShowComponent

* Do a hard reload to "create" route when we are not routed from Angular

* Adapt routing spec to new WorkPackage routes and to some fine-tuning with the WP routes

* Show correct tab in WP Full view and change URL when clicking a tab entry

* Adapt to new rails based routing

* Fix some routes and redirects

* Make sure, the split screen stil renders correctly

* Remove back button from WP full view

* Fix routing issues

* Start fixing specs

* Attempt to override the browser history to be able to use browser back

* Use helper function to build new WP url string

* Adapt spec that now partially renders backend toasts

* Remove ability to move to fullscreen

Theoretically, we can re-add it by posting to some form endpoint, but
not worth it for the first iteration

* Disable cache-control on angular routed pages, so back links work

* Fix double click to fullscreen

* Adapt navigation and title setting

* Let WP breadcrumb to a hard reload instead of Angular transition

* Redirect when the WP route is incomplete (this is the attempt to re-implement an angular functionality)

* Navigate with Turbo when double clicking a card

* Adapt onboarding tour to new hard reload when switching to WP full view

* Fix some specs

* Fix more tests

* Hide Overview tab on FullView

* Correct check for incomplete routes

* Do a hard refresh when coming from slpit screen to full view

* Fix notification navigation

* Adapt attachment spec as the tab switch cannot be done anymore while dragging

* Fix more tests

* Please rubocop and fix more tests

* Attempt to fix navigation_spec

* Add debian_base for pullpreview

---------

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2025-11-03 09:02:16 +01:00
Oliver Günther 3cd7157404 Add warning if user does not have permission in current project, but others 2025-10-21 10:01:30 +02:00
Oliver Günther 525d16d175 Fix target attribute for using turbo_stream 2025-10-21 10:01:23 +02:00
Jan Sandbrink badec143cc Apply new item group DSL to further action menus
Did not yet apply it in trivial cases, where the divider
was added unconditionally and also in cases that would require
larger structural changes to the code.
2025-09-29 09:53:01 +02:00
Oliver Günther c84dd850fa Refactor static links to ensure users have to go through url_for
This ensures links will be translated if they are part of the website
2025-09-09 13:43:26 +02:00
Oliver Günther 3a8a29cf40 Update links in help menu and homescreen 2025-09-03 09:26:46 +02:00
Kabiru Mwenja 8a4976382d Distinguish between mobile and desktop logo in auto theme switching (#19924)
https://community.openproject.org/wp/66448

On mobile, only a white/blue icon icon is displayed.

Hotfix https://github.com/opf/openproject/pull/19920
2025-08-14 15:47:24 +03:00
Kabiru Mwenja 1907fa77cb Select the correct OP Logo when color mode is automatically switched (#19920)
https://community.openproject.org/work_packages/66448
2025-08-14 13:54:54 +03:00
Kabiru Mwenja 1f8cb796b8 Merge pull request #19789 from opf/implementation/66395-support-dark-high-contrast-color-mode
Add dark high contrast theme
2025-08-13 17:15:00 +03:00
Kabiru Mwenja b4f93a462b Make logo check for light high contrast explicit 2025-08-13 16:36:55 +03:00
Oliver Günther c3aefec8a4 Render direct login button only when not logged in 2025-08-13 10:32:09 +02:00
Henriette Darge 67189ff5c7 Change position of buy now teaser 2025-08-05 14:19:15 +02:00
Henriette Darge 686d00de93 [66128] 'Invite user' menu is missing an icon (#19717)
Use provided icon instead of fixed "plus"
2025-07-31 13:55:55 +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 002c6265c4 Adjust some spacings 2025-07-24 14:31:25 +02:00
Henriette Darge 20b2b00653 Adapt tooltip texts 2025-07-24 14:31:05 +02:00
Henriette Darge 1dedc4f4bf Add tooltips to top menu buttons 2025-07-24 12:09:29 +02:00
Henriette Darge 8f60babb96 Fix some more tests && render the revit add-in entry normally via the menu initializer and only toggle the visibility via JS 2025-07-24 11:30:07 +02:00
Henriette Darge a877bf802d Provide correct aria attributes for quick add menu and fix some more tests 2025-07-23 11:46:35 +02:00
Henriette Darge 22e74d43f2 Show "Login" text when the user is not logged in instead of a user icon 2025-07-23 10:58:56 +02:00
Henriette Darge 9cd66f5e79 Extract modules menu code into a separate file 2025-07-23 10:58:16 +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