Skip to content

Conversation

@christophrichtersap
Copy link

Description

Added timezone selector to customize data view

Fixes: #2843

Screenshots

timezone_selector.mov

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.
  • E2E tests are stable and unlikely to be flaky.
    See e2e docs for more details. Common issues include:
    • Is the data inconsistent? You need to mock API requests.
    • Does the time change? You need to use consistent time values or mock time utilities.
    • Does it have loading states? You need to wait for loading to complete.

@christophrichtersap christophrichtersap requested a review from a team as a code owner January 21, 2026 09:53
Signed-off-by: christophrichtersap <christoph.richter@sap.com>
Signed-off-by: christophrichtersap <christoph.richter@sap.com>
@jgbernalp
Copy link
Contributor

@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?

@christophrichtersap
Copy link
Author

@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.

@jgbernalp
Copy link
Contributor

I think it will be better inline, aligned to the right of the header title. Tooltips are easily ignored.

@christophrichtersap
Copy link
Author

I think it will be better inline, aligned to the right of the header title. Tooltips are easily ignored.

image

You prefer this version?

@jgbernalp
Copy link
Contributor

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.

@christophrichtersap
Copy link
Author

image

@jgbernalp
Copy link
Contributor

image

yes that LGTM

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(() => {
Copy link
Member

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?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
… query refresh on tz change just apply visualisation

Signed-off-by: christophrichtersap <christoph.richter@sap.com>
Copy link
Member

@Gladorme Gladorme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timezone selection for dashboards

4 participants