feat(vscode): Show local time and UTC in overview #4855
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request primarily involves changes to the localization and UI components in the codebase. The most significant changes include the addition of new localization strings, refactoring of UI components to use different libraries and components, and the addition of a feature to toggle between local and UTC time in the run history.
Added new localization strings for "Column header text for local time" and "Local time". These strings will be used to display local time in the UI.
Refactored the
OverviewCommandBar
component to useButton
,Toolbar
from@fluentui/react-components
instead ofCommandBar
from@fluentui/react
. Also, replaced theiconProps
andname
properties withicon
andtitle
respectively.Added a feature to toggle between local and UTC time in the run history. This involved adding a new state variable
useUTC
, modifying theRunHistoryColumnKeys.START_TIME
column to display the time in either local or UTC format based onuseUTC
, and changing theonRenderItemColumn
function to format the start time accordingly.Screen.Recording.2024-05-16.at.9.13.29.AM.mov