-
Notifications
You must be signed in to change notification settings - Fork 6
[FEATURE] Added timezone selection to dashboard #43
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: main
Are you sure you want to change the base?
Conversation
Signed-off-by: christophrichtersap <christoph.richter@sap.com>
Signed-off-by: christophrichtersap <christoph.richter@sap.com>
5183103 to
dff0d57
Compare
|
@christophrichtersap the video seems very low res, so I'm not sure if I missed the detail. But do we show the current selected timezone? |
Hi, showing up on hoover above icon. In case some other visualisation is preferred drop a line. |
|
I think it will be better inline, aligned to the right of the header title. Tooltips are easily ignored. |
|
It seems it takes too much horizontal, space. If you don't mind, can we add it in the footer of this menu? That way still visible, it does not consume more horizontal space and can be changed easily. |
Signed-off-by: christophrichtersap <christoph.richter@sap.com>
Signed-off-by: christophrichtersap <christoph.richter@sap.com>
| const [showStartCalendar, setShowStartCalendar] = useState<boolean>(true); | ||
|
|
||
| // Reformat inputs when timezone changes so UI reflects current selection | ||
| useEffect(() => { |
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.
Misusage of useEffect. I think the best would to have a useMemo formatting timeRange and keep timeRange unformatted in useState?
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.
plugin-system/src/components/TimeRangeControls/TimeRangeControls.tsx
Outdated
Show resolved
Hide resolved
added default js timezone with search capabilites replaced display _ to ' ' in DateZoneFormat Signed-off-by: christophrichtersap <christoph.richter@sap.com>
Signed-off-by: christophrichtersap <christoph.richter@sap.com>
Signed-off-by: christophrichtersap <christoph.richter@sap.com>
Signed-off-by: christophrichtersap <christoph.richter@sap.com>
76af14d to
7eb6324
Compare
plugin-system/src/components/TimeRangeControls/TimeRangeControls.tsx
Outdated
Show resolved
Hide resolved
… query refresh on tz change just apply visualisation Signed-off-by: christophrichtersap <christoph.richter@sap.com>
Gladorme
left a comment
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.
LGTM, thanks!



Description
Added timezone selector to customize data view
Fixes: #2843
Screenshots
timezone_selector.mov
Checklist
[<catalog_entry>] <commit message>naming convention using one of thefollowing
catalog_entryvalues:FEATURE,ENHANCEMENT,BUGFIX,BREAKINGCHANGE,DOC,IGNORE.UI Changes
See e2e docs for more details. Common issues include: