Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Conversation

@kerryarchibald
Copy link
Contributor

@kerryarchibald kerryarchibald commented Mar 18, 2022

Figma: https://www.figma.com/file/uthEK6xuo9hSQRdWvPAre5/Location-Sharing?node-id=365%3A144459

  • add duration dropdown to live location picker. includes style changes to allow overflow and variable height chin.
  • add utility to format durations
  • add mocking utility for platformpeg

Screenshot 2022-03-18 at 16 22 02

Screenshot 2022-03-18 at 16 22 09


This PR currently has no changelog labels, so will not be included in changelogs.

A reviewer can add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is, or add Type: [enhancement/defect/task] to the description and I'll add them for you.

Preview: https://pr8082--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

Kerry Archibald added 6 commits March 18, 2022 12:42
@kerryarchibald kerryarchibald requested a review from a team as a code owner March 18, 2022 15:30
@codecov
Copy link

codecov bot commented Mar 18, 2022

Codecov Report

Merging #8082 (93c7b80) into develop (d7a3f39) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #8082      +/-   ##
===========================================
+ Coverage    26.66%   26.71%   +0.05%     
===========================================
  Files          870      871       +1     
  Lines        52166    52196      +30     
  Branches     13217    13224       +7     
===========================================
+ Hits         13910    13946      +36     
+ Misses       38256    38250       -6     
Impacted Files Coverage Δ
src/DateUtils.ts 79.16% <100.00%> (+2.69%) ⬆️
...components/views/location/LiveDurationDropdown.tsx 100.00% <100.00%> (ø)
src/components/views/location/LocationPicker.tsx 93.00% <100.00%> (+0.44%) ⬆️
src/BasePlatform.ts 6.28% <0.00%> (+3.77%) ⬆️

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

otherwise looks good - thanks!

src/DateUtils.ts Outdated
const MINUTE_MS = 60000;
const HOUR_MS = MINUTE_MS * 60;
const DAY_MS = HOUR_MS * 24;
export const formatDuration = (durationMs: number): string => {
Copy link
Member

Choose a reason for hiding this comment

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

can we make this a regular function to match the code style in the area?

@turt2live
Copy link
Member

does this also need a design review?

Kerry Archibald added 3 commits March 18, 2022 17:56
@kerryarchibald
Copy link
Contributor Author

Merging without design review to unblock as Gaelle is away. This is behind a labs flag and under active development so design review will be done in upcoming prs.

@kerryarchibald kerryarchibald merged commit 14653d1 into develop Mar 21, 2022
@kerryarchibald kerryarchibald deleted the psf-671/set-beacon-timeout branch March 21, 2022 11:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants