Project

General

Profile

Actions

Feature #31355

closed

Bookmarks and recently used projects for the project jump box

Added by Jens Krämer over 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Projects
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

This patch aims to make the project jump box (project selector in top right corner) more useful especially for installations / users with many projects.

  • adds a bookmarking feature to the project overview page
    • users can bookmark any project they have access to
    • bookmarked projects will be rendered in a separate section in the jump box, on the top.
  • the 3 most recently used projects will be rendered in a second section of the jump box. That number may be changed in the user's account preferences
    • bookmarked projects are excluded from that list
  • the last section of the jump box holds any other projects that would have been rendered in the jump box originally but are not already shown in one of the previous sections.
  • all 3 sections will be filtered according to a given query string in the search box
  • favorites and other projects lists are rendered as trees, recently used projects as a flat list ordered by time of last use
  • recently used and bookmarked projects are stored as serialized arrays of project IDs in the user preferences.


Files

0001-adds-favorites-and-recently-used-projects-lists-to-p.patch (22.6 KB) 0001-adds-favorites-and-recently-used-projects-lists-to-p.patch Jens Krämer, 2019-05-13 09:32
jumpbox.png (10.3 KB) jumpbox.png Jens Krämer, 2019-05-13 09:35
addbookmark.png (5.17 KB) addbookmark.png Jens Krämer, 2019-05-13 09:35
tag_blue_add.png (671 Bytes) tag_blue_add.png Go MAEDA, 2019-05-20 07:39
tag_blue_delete.png (701 Bytes) tag_blue_delete.png Go MAEDA, 2019-05-20 07:39

Related issues

Related to Redmine - Patch #31356: replace icon-fav with icon-user for 'my projects'ClosedGo MAEDA

Actions
Related to Redmine - Defect #31411: Internal Error (r18182)Closed

Actions
Related to Redmine - Defect #31508: Add missing frozen strings and copyrightsClosedGo MAEDA

Actions
Related to Redmine - Feature #32302: Filter projects after bookmarksClosedGo MAEDA

Actions
Related to Redmine - Feature #572: My projects (or favourite projects)Closed

Actions
Related to Redmine - Defect #32503: Project jump box options are not extracted correctly after searchingClosed

Actions
Related to Redmine - Feature #7751: Filter projects dropdown menuClosed2011-03-02

Actions
Related to Redmine - Feature #32944: Always preserve the tree structure in the project jump boxClosedGo MAEDA

Actions
Has duplicate Redmine - Feature #7339: Add a favorites Project list.Closed2011-01-15

Actions
Actions #1

Updated by Go MAEDA over 5 years ago

  • Target version set to Candidate for next major release
Actions #2

Updated by Go MAEDA over 5 years ago

  • Related to Patch #31356: replace icon-fav with icon-user for 'my projects' added
Actions #3

Updated by Go MAEDA over 5 years ago

I like this change. Users generally be a member of many projects, but the projects they usually use is not so many. With this change, they can quickly go to the project they are currently working on.

Actions #4

Updated by Bernhard Rohloff over 5 years ago

I've tried the patch and it makes project switching very fast and easy. A really great improvement for Redmine!
+1

Actions #5

Updated by Bernhard Rohloff over 5 years ago

Oh, one thing I forgot is, the patch doesn't contain the two new icons referenced by the stylesheet changes.

.icon-bookmark { background-image: url(../images/tag_blue_delete.png); }

.icon-bookmark-off { background-image: url(../images/tag_blue_add.png); }

Actions #6

Updated by Go MAEDA over 5 years ago

Bernhard Rohloff wrote:

Oh, one thing I forgot is, the patch doesn't contain the two new icons referenced by the stylesheet changes.

[...]

The icons are included in the patch. You can get them by using git apply instead of patch command.

Actions #7

Updated by Marius BĂLTEANU over 5 years ago

The patch looks very good to me. I'm in favour of delivering this feature in 4.1.0.

Actions #8

Updated by Go MAEDA over 5 years ago

  • Target version changed from Candidate for next major release to 4.1.0

I am sure that no one will dislike or oppose this feature. Let's deliver this feature in 4.1.0.

Actions #9

Updated by Go MAEDA over 5 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patches. Thank you for contributing the great improvement.

Actions #10

Updated by Go MAEDA over 5 years ago

  • Status changed from Closed to Reopened

It does not work in production mode.

Started GET "/" for 127.0.0.1 at 2019-05-21 09:26:20 +0900
Processing by WelcomeController#index as HTML
  Current user: anonymous
  Rendering welcome/index.html.erb within layouts/base
  Rendered collection of news/_news.html.erb [2 times] (66.0ms)
  Rendered welcome/index.html.erb within layouts/base (134.1ms)
Completed 500 Internal Server Error in 423ms (ActiveRecord: 14.2ms)

ActionView::Template::Error (uninitialized constant Redmine::ProjectJumpBox):
    79:         <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
    80:         <label for='q'>
    81:           <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project, :scope => default_search_project_scope}, :accesskey => accesskey(:search) %>:
    82:         </label>
    83:         <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
    84:         <% end %>
    85:         <%= render_project_jump_box %>

app/helpers/application_helper.rb:428:in `render_projects_for_jump_box'
app/helpers/application_helper.rb:478:in `render_project_jump_box'
app/views/layouts/base.html.erb:82:in `_app_views_layouts_base_html_erb__3861390146296937614_70221623652380'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'
Actions #11

Updated by Go MAEDA over 5 years ago

The following change fixes #31355#note-10.

diff --git a/lib/redmine.rb b/lib/redmine.rb
index 805418d3d..7c06ac344 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -43,6 +43,7 @@ require 'redmine/field_format'
 require 'redmine/menu_manager'
 require 'redmine/notifiable'
 require 'redmine/platform'
+require 'redmine/project_jump_box'
 require 'redmine/mime_type'
 require 'redmine/search'
 require 'redmine/syntax_highlighting'
Actions #12

Updated by Go MAEDA over 5 years ago

  • Status changed from Reopened to Closed

Committed the fix in #31355#note-10.

Actions #13

Updated by Go MAEDA over 5 years ago

Actions #14

Updated by Go MAEDA over 5 years ago

  • Related to Defect #31508: Add missing frozen strings and copyrights added
Actions #15

Updated by Go MAEDA about 5 years ago

  • Has duplicate Feature #7339: Add a favorites Project list. added
Actions #16

Updated by Vladimir Arkhipov about 5 years ago

Do you have any plans to improve this patch to fix problem with many projects from #31908 ?

Actions #17

Updated by Go MAEDA about 5 years ago

  • Category changed from UI to Projects
Actions #18

Updated by Marius BĂLTEANU about 5 years ago

Actions #19

Updated by Marius BĂLTEANU about 5 years ago

  • Has duplicate Feature #572: My projects (or favourite projects) added
Actions #20

Updated by Marius BĂLTEANU about 5 years ago

  • Has duplicate deleted (Feature #572: My projects (or favourite projects))
Actions #21

Updated by Marius BĂLTEANU about 5 years ago

  • Related to Feature #572: My projects (or favourite projects) added
Actions #22

Updated by Go MAEDA almost 5 years ago

  • Related to Defect #32503: Project jump box options are not extracted correctly after searching added
Actions #23

Updated by Go MAEDA almost 5 years ago

  • Status changed from Closed to Reopened

An issue caused by this feature is reported as #32503.

Actions #24

Updated by Go MAEDA almost 5 years ago

  • Status changed from Reopened to Closed

Go MAEDA wrote:

An issue caused by this feature is reported as #32503.

Fixed in r19325. The issue was that bookmarked and recently used projects are unexpectedly filtered by a search keyword after full-text search.

Actions #25

Updated by Jean-Philippe Lang almost 5 years ago

  • Tracker changed from Patch to Feature
Actions #26

Updated by Go MAEDA over 4 years ago

Actions #27

Updated by Go MAEDA over 4 years ago

  • Related to Feature #32944: Always preserve the tree structure in the project jump box added
Actions #28

Updated by Joaquim Homrighausen about 3 years ago

Any chance of getting Bookmarks on an issue level?

Actions #29

Updated by SS RR over 2 years ago

Nothing happens when deleting a bookmark.
https://redmine.domain/projects/project/bookmark
ActionController::RoutingError (No route matches [GET] "/projects/project/bookmark"):

Actions

Also available in: Atom PDF