36 Commits

Author SHA1 Message Date
Alexander Brandon Coles a3252add49 [#67336] Rework Homescreen blocks as Widget Grid
Componentizes blocks (inheriting from `Grid::WidgetComponent`) as well
as implementing `BlocksGridComponent`.

Moves responsibility for data loading from controller to individual
block components.
2025-09-17 23:31:57 +01:00
Alexander Brandon Coles 2b144e8542 Fix wording: Change "Favored" to "Favorited"
Favorite is the correct term in the context of expressing a preference
for a particular project / other OpenProject domain object.

Updates `ActsAsFavorable` to `ActsAsFavoritable`, as well as filenames,
identifiers and strings to:

    favored => favorited
    favorable => favoritable
    favoring => favoriting
2025-09-10 19:08:15 +01: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 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
Behrokh Satarnejad fef18fce57 fix failing tests 2024-09-25 13:03:01 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Henriette Darge 30d986fbb9 Add an option to unselect projects via the global project selector 2024-07-02 13:04:23 +02:00
ulferts fdbd6b6d5a forcing to specify allowed actions when forfeiting authorization check 2024-06-11 10:29:22 +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
Oliver Günther 58b780eb62 Don't show archived projects as favorite on home screen 2024-05-02 08:49:35 +02:00
Oliver Günther bb6017636e Show favorite projects on homescreen 2024-04-23 14:46:31 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01: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
Aaron Contreras 413dc94f30 Add the home item to the global menu
Adds the item to the global menu and binds it to the
`HomescreenController#index` action

As a goodie, some cuprite improvements.
2023-07-12 09:19:11 -05:00
Oliver Günther 1b649bcd4a Disable all robots routes when login_required=true 2023-05-25 20:41:37 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Inga Mai 2d0d2feccf [27828] Feature: Query menu in sidenav (#6429)
* in main menu add gantt as extra work package child item

* Satisfy spec and code climate

* Add gantt chart icon behin default gantt query name.

* WIP Query menu in left sidebar

* Shift query dropdown in left sidenav

* Reload menu or load query on click from every project location

* WIP set correct label for default queries

* Query menu listens on all changes of queries (delete, create, rename, toggle starred) and updates immediatly

* WIP: Inline edit, field validation

* Inline Edit validation and comfirm

* Inline edit: validation of duplicate name

* Set default columns and sorting for static queries

* Codeclimate issues fixed

* WIP Inline edit validation not working perfectly in all error states

* Inline edit working

* Autocompleter hover disabled and hovering over categories fixed

* Category hover and toggle fixed; tested in Chrome, Firefox and Opera

* Placeholder cut off fixed and text wrap added

* English and german wording adjusted

* Styles of inline edit and menu adjusted; matching wiki page styles

* prevent menus to be displayed to often

* application menu only displayed on work package

* specify using no_menu layout more often

* adapt tests to altered production implementation

* Hamburger icon only in project; on global wp page: default queries shown correctly and summary removed

* searching for undefined leads to error

* Accessible click fixed (listen on escape)

* Gantt in top menu deleted (gantt chart is part of default queries on wp page)

* load menu on wp summary page

* reduce times queries are loaded

* lowercase on second word

* remove menu from search and home

* Styles fixed (category toggle and correct highlighting)

* reflect static query in url

* fix autocomplete handling in specs

* Open all global menus on default and hide hamburger icon on global pages; Rebuild changes that have been ovrwritten after merge"

* Correct highlighting of default queries  after reload

* Replace summary cuke with spec

* WIP

* Clear up selectors

* Avoid actively setting promises and instead use $state.go to load links

[ci skip]

* Make editable title component a little simpler

We can reuse the component I built for the wiki, that wasn't present in
the frontend beforehand.

* Fix moving through the menu and selecting items

[ci skip]

* Add save button to query title when query changed

* Improve static names lookup by comparing query_props

* Adapt and fix specs

* Allow inner scrolling of wp query results

Also, style the webkit scrollbar to make it pretty where supported

* Allow renaming the query through setting menu, but simply focus on field

[ci skip]
2018-08-09 14:51:49 +02:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Henriette Dinger 2f092e3f0e Merge remote-tracking branch 'origin/release/6.1' into merge-dev-release 2017-03-07 09:46:10 +01:00
Henriette Dinger 12667fcf73 Show only active users on homescreen 2017-02-10 09:45:21 +01:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Oliver Günther fe0e8dd919 Rename before_filter to before_action 2016-09-06 15:40:49 +02:00
Jens Ulferts fa37edd2dd reimplement caching of robots.txt 2016-09-06 15:15:45 +02:00
Oliver Günther 38dee90a47 Allow configuration to override static help link
This commit adds a new static helper for Links now used on more than
location in OpenProject (Homescreen + Help menu).

It allows to override the help link using the `configuration.yml`.
If it is overriden, no dropdown is rendered, but only a single link.
2016-05-26 14:07:43 +02:00
Markus Kahl 1c1779643c robots.txt never requires login (#4429) 2016-05-26 10:33:07 +02:00
Oliver Günther bececbce8f Integrate openproject-announcements
This commit integrates the announcement functionality of
openproject-announcements.

It extends showing the announcement on the homescreen.
2016-04-28 14:55:23 +02:00
Oliver Günther fecd3b3b3e Simple API for managing the homescreen content
This commit alleviates the homescreen management from both core and
plugins, in order to simply add and remove blocks.

Also contains refactoring from review
* Consistent block and variable usage
* Removed unused labels
* Avoid word breaks in multiline enumerations and remove margin from enumerations
2015-09-10 17:12:34 +02:00
Oliver Günther 15273724c3 Homescreen functionality
This commit adds the homescreen functionality to OpenProject,
replacing the default welcome screen.

This adds support for:

* Blocks of content for various privilege levels (latest projects, users, news, etc.)
* Links to common functionality (administration, community)

Relevant work package:
https://community.openproject.org/work_packages/19722
2015-09-10 17:12:15 +02:00