Skip to content

ui: update usages of date range to time interval#84486

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:update-time-label
Jul 15, 2022
Merged

ui: update usages of date range to time interval#84486
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:update-time-label

Conversation

@maryliag
Copy link
Copy Markdown
Contributor

This commit updates the labels previously saying "date range"
to "time interval".
This commit also removes an unnecessary tooltip on the "now"
button and fix its styling when disabled.

Fixes #84361
Screen Shot 2022-07-15 at 9 58 39 AM
Screen Shot 2022-07-15 at 9 58 48 AM
Screen Shot 2022-07-15 at 10 00 49 AM
Screen Shot 2022-07-15 at 10 00 56 AM

Release note (ui change): Update of labels from "date range" to
"time interval" on time picker (custom option, preset title, previous
and next arrows)

@maryliag maryliag requested a review from a team July 15, 2022 14:11
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@maryliag maryliag force-pushed the update-time-label branch from b113c69 to d877b43 Compare July 15, 2022 15:35
This commit updates the labels previously saying "date range"
to "time interval".
This commit also removes an unnecessary tooltip on the "now"
button and fix its styling when disabled.

Fixes cockroachdb#84361

Release note (ui change): Update of labels from "date range" to
"time interval" on time picker (custom option, preset title, previous
and next arrows)
@maryliag maryliag force-pushed the update-time-label branch from d877b43 to 0e3e735 Compare July 15, 2022 15:37
Copy link
Copy Markdown

@ericharmeling ericharmeling left a comment

Choose a reason for hiding this comment

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

LGTM just a small grammar nit you can take or leave

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @maryliag)


pkg/ui/workspaces/cluster-ui/src/timeScaleDropdown/timeFrameControls.tsx line 81 at r1 (raw file):

      <Tooltip
        placement="bottom"
        title="past 1 day"

nit: remove number in the singular case

Suggestion:

past day

Copy link
Copy Markdown
Contributor Author

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ericharmeling)


pkg/ui/workspaces/cluster-ui/src/timeScaleDropdown/timeFrameControls.tsx line 81 at r1 (raw file):

Previously, ericharmeling (Eric Harmeling) wrote…

nit: remove number in the singular case

When you click on "Now", the time picker change to the value "Past 1 day", so I decided to put the tooltip with the same value displayed there.
What do you think?

Copy link
Copy Markdown

@ericharmeling ericharmeling left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @maryliag)


pkg/ui/workspaces/cluster-ui/src/timeScaleDropdown/timeFrameControls.tsx line 81 at r1 (raw file):

Previously, maryliag (Marylia Gutierrez) wrote…

When you click on "Now", the time picker change to the value "Past 1 day", so I decided to put the tooltip with the same value displayed there.
What do you think?

You're right; it totally makes sense to keep the tooltip consistent with the value displayed.

IDK if it really matters all that much (it's a really nit-picky thing) but in the future maybe we can change the "Past 1 Hour" and "Past 1 Day" values to "Past Hour" and "Past Day", to be consistent with "Past Week" and "Past Month"?

Copy link
Copy Markdown
Contributor Author

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ericharmeling)


pkg/ui/workspaces/cluster-ui/src/timeScaleDropdown/timeFrameControls.tsx line 81 at r1 (raw file):

Previously, ericharmeling (Eric Harmeling) wrote…

You're right; it totally makes sense to keep the tooltip consistent with the value displayed.

IDK if it really matters all that much (it's a really nit-picky thing) but in the future maybe we can change the "Past 1 Hour" and "Past 1 Day" values to "Past Hour" and "Past Day", to be consistent with "Past Week" and "Past Month"?

That's a good idea! I'll keep that for another PR, because I assume we have more places using the format (for tests etc), so we can have a PR dedicated for this change.

@maryliag
Copy link
Copy Markdown
Contributor Author

TFTR!
bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 15, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 15, 2022

Build succeeded:

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.

Relabel Custom date range to Custom time interval in time picker and update tooltips

3 participants