202 Commits

Author SHA1 Message Date
Tobias Dillmann eb9f8f8bc4 Reapply changes from #22641 2026-04-08 15:40:00 +02:00
Henriette Darge d5a7da66ce Fix workday saving for users when disabling all workdays 2026-03-30 12:20:37 +02:00
Henriette Darge ee9140df34 Extend the exisisting Notifications::ShowPageComponent to be used for other users in the administration settings as well 2026-03-27 13:49:49 +01:00
Henriette Darge 6732b9fd00 Primerize the myAccount NotificationsForm 2026-03-27 11:31:51 +01:00
Henriette Darge 35d481edb7 Pimerize the reminders form 2026-03-26 14:41:54 +01:00
Henriette Darge d49f1610ae Merge notifications and reminders page into one with two tabs 2026-03-26 08:58:55 +01:00
Klaus Zanders 727cb945e8 Refactor UserNonWorkingDay into a model that covers date ranges 2026-03-06 13:28:35 +01:00
Klaus Zanders 83a92ba250 Fix display of history to include current, unique constraint 2026-03-06 13:28:22 +01:00
Klaus Zanders e32a3f65ff Implement frontend for managing working hours 2026-03-06 13:28:20 +01:00
Klaus Zanders 4a2451e964 Implement the overview page for working hours 2026-03-06 13:28:16 +01:00
Klaus Zanders 5959386860 Add feature flag for working times 2026-03-06 13:28:06 +01:00
Klaus Zanders 2221678e61 Initial step for /my actions for working times 2026-03-06 13:28:01 +01:00
Jan Sandbrink fb828673a4 Primerize password confirmation dialog
The dialog is now rendered using primer components and uses
Turbo Stream and JavaScript events to render the dialog and handle
its result, instead of using Angular to do that.

Naming of the existing stimulus controller has been updated, to correctly reflect
that it's not about the confirmation dialog itself, but rather about components that
depend on the dialog.
2026-01-08 08:56:09 +01:00
Alexander Brandon Coles 3757b22880 [#65403] Rename Settings to Language and Region
Renames menu items, headings, routes and controller actions.

N.B. Uses **locale** in code (to encapsulate both language and region),
and **Language and Region** in user-facing text.
2025-08-27 18:28:02 +01:00
Klaus Zanders 18ecb2ef8f Extract Access Tokens into their own controller 2025-08-18 13:42:45 +02:00
Klaus Zanders 7d561fd9e6 Add the ical meeting token generation 2025-08-18 13:42:44 +02:00
Alexander Brandon Coles f15be6e07f Freeze string literals in app/controllers
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/controllers
2025-07-18 17:51:00 +01:00
Henriette Darge c52571c10f Primerize the MySettings form and split it into a separate menu entry 2025-06-20 08:02:50 +02:00
Henriette Darge ee8452282a [63485] Remove show_local_breadcrumb and default_breadcrumb (#18663)
* add a new helper for breadcrumb in wiki page

* set page header in destroy page

* set page header in edit page

* set page header in history and rename and edit parent pages

* change toolbar items into page header items

* add new wiki action to sub header

* remove version edit page which is not in use any more

* add export as a menu item of the header

* fix rubocup errors

* fix failing tests

* replace page header in annotate page

* replace page header in diff page

* add page header in select menu page

* fix rubocup errors

* fix errors on rename test

* fix errors on selecting items from toolbar

* fix errors on tests for child pages

* set correct permission for configure menu item

* replace page header in summary page

* replace page header in summary details page

* edit docs of sub header

* add page header in wiki new page

* remove controller and a route for edit method

* undo changes for docs of sub header

* extract header in show page into a new component

* use helper method in header component

* add wiki module to the breadcrumb

* rename page header component for wiki page

* simplify how lock and lock implemented

* extract sub header

* remove wiki title from header of history page

* fix page header in new page

* use page.find_test_selector in test

* fix failing test for summary page

* fix failing test for wiki child pages

* change the summary test

* use test selector for page header title

* undo changes for activate user in admin

* use test selector in adding editing history test

* use test selector in attachment upload test

* use test selector in child pages tests

* use test selector in wiki menu items tests

* change test selector for breadcrumbs

* extract conditions to show edit button into a method

* extract conditions to show rollback action menu item into a method

* extract conditions to show create button into a method

* fix duplicated code in test

* Remove outdated `show_local_breadcrumb` method which is replaced by the Primer::PageHeader breadcrumb

* Remove `default_breadcrumb` method as it serves no prupose any more

* Remove the old breadcrumb and its hook completely

* remove breadcrumbs path from rename

* fix translations errors in storages

* undo changes on translations

* remove default breadcrumbs in time tracking controller

---------

Co-authored-by: Behrokh Satarnejad <b.satarnejad@openproject.com>
Co-authored-by: Behrokh Satarnejad <62008897+bsatarnejad@users.noreply.github.com>
2025-04-23 10:40:43 +02:00
Oliver Günther 23f12be1b3 Remove op_primer_flash as it is no longer needed 2024-09-30 20:37:00 +02:00
Oliver Günther 0923b625a8 Rename to OpPrimer::FlashComponent / primerized_flash 2024-09-23 13:41:21 +02:00
Oliver Günther cf98215083 Reusable banner 2024-09-23 13:41:21 +02:00
Behrokh Satarnejad 6c6ba1e08a [53807] Update PageHeaders & SubHeaders in the My account pages (#16141)
* replace page header in profile, settings,sessions, password pages

* replace page header in user email reminder page

* replace page header in user access token page

* fix layout error on access token

* add page header component to two factor authentication page

* remove toolbar for email reminder

* use page header component in change avatar page

* unify menu entry and page header title for avatar page

* add page header for delete account pages

* add users and permissions to the breadcrumb of delete account from admin side

* create a separate component for page header in delete account page

* use page header component in n notifications settings and remove toolbar component in notification settings component and reminder settings component

* add page header component to 2fa new page

* add page header component to 2fa new pages and chnage the name of delete account page header component

* change user path in breadcrumb of delete account page

* remove show_toolbar of the component from reminders pages

* move page header to the top of the page in 2fa devices page

* remove the container element from access token page

* remove new type html and use action menu instead

* add description to menu item and change descriptions and titles

* Remove inline create button at the bottom of table

* fix failing specs

* fix failing spec

* fix rubocop error

* undo removing the page that is used for creating a new 2fa device in a state that is enforced by admin

* fix specs for selecting a device from action menu

* set the correct breadcrumb for add a new device

* undo changes for tests of forced registration

* undo changes for tests of new method when reverting deleted file

* add page header to the 2fa add new device page

* change html title in the 2fa add new device page

* change breadcrumbs in 2fa new device page

* use test selector helper in specs

* add page header to backup codes page

* shorten title an breadcrumb in backup code page

* remove closed tag
2024-08-14 10:30:16 +02:00
Oliver Günther 9dd1b79abe Merge remote-tracking branch 'origin/release/14.4' into dev 2024-08-13 10:05:30 +02:00
Judith Roth 22f88d0989 [#56780] Avoid crashing the page on access token create
https://community.openproject.org/work_packages/56780

The previous behaviour was like this:
If the API Token Creation was not successful, the form in the dialog was
reloaded via turbo with error messages / form validations.
If the API Token Creation was successful, a full page reload was triggered
(so that the flash was shown and the table was updated).
Unfortunately, Turbo  does not recognize the full page reload and therefore
does not load and initialize javascript linked in the page - so our Angular
App did not get initialized.

Since people were unhappy about the flash in general (because it's easy
to be missed by the user who has to copy the new token), it was decided
to switch to using a modal to avoid the full page reload.
2024-08-08 16:12:37 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Andreas Pfohl 169f4b4666 [56168] Fixed MyController specs 2024-07-10 09:15:15 +02:00
Andreas Pfohl cd77b89a5f [56168] Fixed flash messages for api tokens 2024-07-10 09:15:15 +02:00
Andreas Pfohl fe0b946da0 [48619] Fixed "my" feature spec for api tokens 2024-07-03 09:38:20 +02:00
Andreas Pfohl f1d6f18ab5 [48619] Incorporated create and delete service for Token::API into MyController 2024-07-03 09:38:19 +02:00
Andreas Pfohl 6eeca161c6 [48619] Fixed access token name validation in dialog 2024-07-03 09:38:17 +02:00
Andreas Pfohl a1dffe650a [48619] Added validation to API token 2024-07-03 09:38:17 +02:00
Andreas Pfohl aa4213f166 [48619] Added naming of new API tokens 2024-07-03 09:38:16 +02:00
Andreas Pfohl d52a0264a9 [#48619] Users are able to create multiple API access tokens
https://community.openproject.org/work_packages/48619
2024-07-03 09:38:16 +02:00
Oliver Günther 814a98bfe6 Remove ui-router in my account 2024-06-13 08:43:24 +02:00
Kabiru Mwenja 31ceb4e422 Merge branch 'release/14.2' into dev 2024-06-12 19:32:36 +03:00
ulferts fdbd6b6d5a forcing to specify allowed actions when forfeiting authorization check 2024-06-11 10:29:22 +02:00
Oliver Günther 99e915b2c9 Changing mail address should invalidate tokens on top of session 2024-06-10 15:20:27 +02:00
ulferts ed5a162230 allow actions to be called on those not using default authorization before_actions 2024-06-07 16:55:40 +02:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Eric Schubert c9d535a78a [#50543] fixed error text on storage error 2023-10-18 15:57:23 +02:00
Marcello Rocha 48cac37508 Update app/controllers/my_controller.rb
Co-authored-by: Kabiru Mwenja <hey@akabiru.me>
2023-08-03 11:18:46 +02:00
Marcello Rocha fd0d2643ba updates tests 2023-08-02 11:08:43 +02:00
Marcello Rocha 22d128a8f7 Initial mess 2023-08-02 10:48:04 +02:00
Jonas Jabari 1c776c152e rubocop fixes 2023-07-10 12:08:29 +02:00
Jonas Jabari f1a6a308a2 adjusted token page towards new structure, specs adjustments missing 2023-06-14 14:42:34 +02:00
Jonas Jabari 15a9fe3901 fixed rubocop issues 2023-05-22 16:27:03 +02:00
Jonas Jabari e1fa9eaf72 finalized prototypical implementation of named ical tokens for testing purposes 2023-05-04 13:05:22 +02:00
Jonas Jabari e146ed5b20 added query scope to ical tokens based on feedback from Marc and Niels, adjusted specs accordingly 2023-04-25 15:53:19 +02:00
Jonas Jabari 19c5b2d755 implemented feedback from @ulferts around ical token management and token usage 2023-03-30 16:46:57 +08:00