[MGNLUI-4973] Provide context menu functionality in Grids Created: 22/Jan/19  Updated: 18/Mar/19  Resolved: 11/Mar/19

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.0
Fix Version/s: 6.1

Type: Task Priority: Neutral
Reporter: Aleksandr Pchelintcev Assignee: Adam Siska
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1d 5.7h
Original Estimate: Not Specified

Attachments: PNG File actionsAreEnabledWhenNoItemIsSelected.png     PNG File contextMenuDoesNotRefreshUponGridChange.png     PNG File duplicatedMenuItem.png    
Issue Links:
Relates
relates to CNTCTSAPP-107 CLONE - Provide default action suppor... Closed
relates to MGNLUI-4976 Provide default action support in Gri... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: UI framework: grids and browsing
Sprint: Foundation 4, Foundation 5, Foundation 6
Story Points: 8

 Description   
  • investigate the situation - Grid should support ctx menus out of the box, though an add-on option can still be considered
  • (check the com.vaadin.contextmenu.ContextMenu)
  • connect that support to the action configuration
  • .. think of the shared context structure (consider creating another ViewContext implementation for the minimum required config to be shared).


 Comments   
Comment by Hieu Nguyen Duc [ 26/Feb/19 ]

QAed on bundle "magnolia-enterprise-pro-demo-bundle-6.0.1-20190226.073625-414-tomcat-bundle" and a couple of defects are found.

 

1) Context menu of Tasks app shows duplicate menu items

 

2) Context menu still shows up when no item is in grid

 Steps to repduce:

+ Send a message

+ Open Notifications app

+ Delete the message

+ Right click on the grid

=> Expected: Context menu doesn't shows up because there's no item

=> Actual: It appears

+ Reopening the app makes the context menu disappear

 

3) Context menu has some target items enabled though no item is selected

For example: edit, export, duplicate.

Comment by Adam Siska [ 26/Feb/19 ]

Hi Hieu,

Ad 2) It was actually intended to open menu in 'root' of grid. In some case it could be useful (like add node, new folder, ...) EDIT: don't open menu, when no actions available

Ad 1) this is really weird, nevertheless I take items and theirs availability from actionbar configuration EDIT: must check section availability

Ad 3) combination of previous

Anyway thanks for the observations and comments, I'll try to look at it more closely.

Generated at Mon Feb 12 09:21:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.