QutEcoacoustics / workbench-client

workbench-client: a client side browser application for interacting with acoustic workbenches
Other
8 stars 1 forks source link

Create Date/Time Component #2096

Closed hudson-newey closed 7 months ago

hudson-newey commented 9 months ago

Create Date/Time Component

Given we use so many Date/Times formats throughout the client, it can be ambiguous to a user if the date/time is localised to their timezone, and what timezone a date/time is captured in.

Changes

Problems

Implementation on live pages was not completed as part of this PR

Issues

Fixes: #2092 Closes: #1736

Visual Changes

Pages

image New Date & Time examples admin page


Components

image configuration for all visuals under the "Components" section


image baw-datetime


image baw-zoned-datetime (Implicit)


image baw-zoned-datetime (Explicit)


image baw-duration


image baw-time-since

Final Checklist

hudson-newey commented 8 months ago

The tooltips for the baw-duration components should probably not use the ISO8601 format. Maybe inlcude sexagesimal as well as ISO8601? Or a humanized form? I'm not sure what's best, but although unambiguous, i think most users would find that tooltip does not add much context.

Mock-up of sexagesimal + ISO8601

image


Mock-up of humanized + ISO8601

image

I think I prefer sexagesimal + ISO8601

github-actions[bot] commented 7 months ago

Size Change: +9.67 kB (0%)

Total Size: 2.91 MB

Filename Size Change
dist/workbench-client/browser/main.********.js 1.07 MB +4.64 kB (0%)
dist/workbench-client/browser/styles.********.css 32.3 kB +16 B (0%)
dist/workbench-client/server/main.js 1.79 MB +5.01 kB (0%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `dist/workbench-client/browser/assets/environment.json` | 555 B | | `dist/workbench-client/browser/chunk-7SGCG2G3.js` | 1.08 kB | | `dist/workbench-client/browser/index.html` | 4.1 kB | | `dist/workbench-client/browser/manifest.json` | 150 B | | `dist/workbench-client/browser/polyfills.********.js` | 12.2 kB | | `dist/workbench-client/server/776.js` | 4.2 kB |

compressed-size-action

github-actions[bot] commented 7 months ago

Unit Test Results

         6 files           6 suites   6m 51s :stopwatch: 23 154 tests 22 530 :heavy_check_mark: 624 :zzz: 0 :x: 23 376 runs  22 752 :heavy_check_mark: 624 :zzz: 0 :x:

Results for commit 3eae1198.