-
Notifications
You must be signed in to change notification settings - Fork 60
[IMP] pivot: sort in dashboard/read-only mode #5654
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
base: master
Are you sure you want to change the base?
Conversation
800b859
to
c37754d
Compare
robodoo help |
Currently available commands for @LucasLefevre:
Note: this help text is dynamic and will change with the state of the PR. |
b72e30e
to
30dfefe
Compare
30dfefe
to
3aed9fb
Compare
b148bca
to
dfdba01
Compare
e5268bd
to
32178d9
Compare
efdffb1
to
8995615
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sky is blue,
The herb is green,
And the runbot is red
Didn't read the code yet, only functional notes
@@ -36,7 +36,7 @@ export interface ActionSpec { | |||
* Can be defined to display an icon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hovering an empty pivot cell does nothing. That's a bit of a problem, because it closes the sorting menu when after sorting the hovered cell becomes empty
@@ -36,7 +36,7 @@ export interface ActionSpec { | |||
* Can be defined to display an icon | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disco party ! 🪩
https://drive.google.com/file/d/1siaXpupi-ux4V3EbPf32jenpsH6kw-86/view?usp=drive_link
Highlight should be when menu is open, not when it's hovered
@@ -36,7 +36,7 @@ export interface ActionSpec { | |||
* Can be defined to display an icon | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Menu opening feels a bit sluggish, hover delay seems a bit long (why a delay at all?)
@@ -36,7 +36,7 @@ export interface ActionSpec { | |||
* Can be defined to display an icon | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it just me, or is the top/bottom padding of the menu smaller than the one of the other menus ?
@@ -36,7 +36,7 @@ export interface ActionSpec { | |||
* Can be defined to display an icon | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I'm colorblind, but the "sorting is active" color in the menu is not obvious to me 😔 Was the check mark we use for "active" menu elements in other menus ugly ?
@@ -36,7 +36,7 @@ export interface ActionSpec { | |||
* Can be defined to display an icon | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong item is hovered when menu appear
https://drive.google.com/file/d/1IHqnpZXeowx_1a8vbAb56waPSJ-DHSAk/view?usp=drive_link
The props is never used and `getPopoverContainerRect` is not always present in the env Task: 4543812
Steps to reproduce: - create a dashboard with a small amount of columns (less the the width of your screen, just like standard dashboard) - on the right-most column, insert a formula with an error (=0/0) - in dashboard mode, hover the error cell => the error message popover is display on the left of the cell, even though there's room on the right. It's not critical for those error messages, but a following commit adds a popover widget to sort pivot columns. Task: 4543812
Extract the menu items to its own component. The goal is to decouple it from the popover and positioning logic. Task: 4543812
The current menu hovering mechanism only works well for menu items generated at runtime, but not for statically declated actions. Let's say I want to declare a menu items which highlights a zone when hovered. When unregistering, I don't have the reference to the highlight provider because it's not global ```ts myRegistry.add("my-menu", { ... // register the highlight onStartHover(env) { const highlightProvider = { get highlights() { return getPivotHighlights(env.model.getters); }, }; env.getStore(HighlightStore).register(highlightProvider) }, // clean the highlight onStopHover: { // you would need to do this, but you don't have any reference to // `highlightProvider` at this point env.getStore(HighlightStore).unRegister(highlightProvider) }, }); ```
Task: 4543812
This commit adds the abitlity to add a transition when the popover moves from one position to another Task: 4543812
In our dashboards, the pattern "Top 10 XXXX" is used a lot. Let's say you have the top 10 countries with the most revenue. But what are the worst ones ? Or what are the countries with the most/least number of leads ? This task add a way to sort pivot measures. A little tooltip appears when hovering a pivot cell. Task: 4543812
Since the last commit, some core commands (UPDATE_PIVOT for now) can be dispatched in read-only/dashboard mode. But those commands should remain local, should not be registered to the database and not sent to other clients. Only the client related messages (client joined, left or moved) should be sent to other clients. This commit adds a wrapper around the transport service to block all other messages. Task: 4543812
Currently, when hovering a cell with an error, a link, or pivot sorting tooltip, the user have to wait for 300ms before the popover is displayed. It feels slugish (Gsheet is much faster) but most importantly, it makes it hard to discover the pivot sorting feature because there's no hint that the cell is hoverable and it's not natural to stop on a cell for a full 300ms for no apparent reason. Task: 4543812
8995615
to
af0602d
Compare
Description:
description of this task, what is implemented and why it is implemented that way.
Task: TASK_ID
review checklist