Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add row context (right click) additionally to actions in tables #8013

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matmair
Copy link
Member

@matmair matmair commented Aug 27, 2024

This draft PR adds right-click context menus to tables. The content can be determined by a custom callback or computed from the row actions.
I am interested in feedback - you should be able to play with it using the preview deployment.
grafik
Closes invenhost#128

@matmair matmair added the Platform UI Related to the React based User Interface label Aug 27, 2024
@matmair matmair added this to the 0.17.0 milestone Aug 27, 2024
@matmair matmair self-assigned this Aug 27, 2024
Copy link

netlify bot commented Aug 27, 2024

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 5875aeb
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/66ce4dcdacfe220009f68a6d
😎 Deploy Preview https://deploy-preview-8013--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (🟢 up 1 from production)
Accessibility: 86 (no change from production)
Best Practices: 92 (no change from production)
SEO: 70 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 22.22222% with 7 lines in your changes missing coverage. Please review.

Project coverage is 83.59%. Comparing base (313cb47) to head (5875aeb).
Report is 1 commits behind head on master.

Files Patch % Lines
src/frontend/src/tables/InvenTreeTable.tsx 22.22% 7 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8013   +/-   ##
=======================================
  Coverage   83.59%   83.59%           
=======================================
  Files        1140     1140           
  Lines       50880    50889    +9     
  Branches     1776     1779    +3     
=======================================
+ Hits        42533    42543   +10     
- Misses       7885     7900   +15     
+ Partials      462      446   -16     
Flag Coverage Δ
pui 65.01% <22.22%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SchrodingersGat
Copy link
Member

I think we need to have a larger conversation about how we interact with tables - and make the "user expectation" consistent.

There are:

  • Row actions (via buttons)
  • Row actions (via context menu)
  • Some rows take you somewhere else when you click them
  • Some rows open up a context drawer when clicked on

Is there a way we can visually indicate what happens when you left-click or right-click on a row, do you think?

@matmair
Copy link
Member Author

matmair commented Aug 29, 2024

I am not aware that other apps provide this, have not seen this pattern somewhere else consciously. Maybe linking somewhere else should just be a highlighted link somewhere at the beginning of the table to make it clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform UI Related to the React based User Interface
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

System: Make actions right-click too
2 participants