Kerry
f70186ea9b
Live location sharing: set map bounds to include all locations ( #8324 )
...
* open a dialog with map centered around first beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test dialog opening from beacon body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test beaconmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add bounds to Map comp
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add focusBeacon to beaconviewdialog, use bounds
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use membercolor on beacon view markers
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add lnglatbounds to maplibre mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update snapshots for expanded maplibre Map mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test map bounds
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy copy paste comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add fallback when no more live locations
Signed-off-by: Kerry Archibald <kerrya@element.io>
* accurate signature for getBoundsCenter
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-19 11:35:39 +00:00
Kerry
f95106d2c6
Live location sharing - basic maximised beacon map ( #8310 )
...
* open a dialog with map centered around first beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add room member markers
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix unmount issue in smart marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* dont throw on no more live locations
Signed-off-by: Kerry Archibald <kerrya@element.io>
* cursor on beacon maps
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fussy import ordering
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test dialog opening from beacon body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test beaconmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test BeaconViewDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use unstable prefix for wk tile_Server
Signed-off-by: Kerry Archibald <kerrya@element.io>
* unstable prefix for new m.tile_server use in test
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-14 13:14:05 +00:00
Kerry
1c215e2b71
Live location sharing - render users own beacons in timeline ( #8296 )
...
* extract location markers into generic Marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* wrap marker in smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* working map in location body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use new ZoomButtons in MLocationBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test LocationViewDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update commentt
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract livetimeremaining into own component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract more beacon state utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update tests for roomlivesharewarning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add beacon map and status chin
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add handling for bubbles
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tests for BeaconBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move displaystatus check up to mbeaconbody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename BeaconStatusChin -> BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* make BeaconStatus generic
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* adjust spinner size
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add static time remaining option to beacon status
Signed-off-by: Kerry Archibald <kerrya@element.io>
* render time differently for own beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use children to add actions to BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add OwnBeaconStatus wrapper with stop button
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add error states for own beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test OwnBeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move ownbeaconstatus to write dir
Signed-off-by: Kerry Archibald <kerrya@element.io>
* improve button styling
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-14 14:41:28 +02:00
Kerry
e59edb7101
Live location sharing - beacon in timeline happy path ( #8285 )
...
* extract location markers into generic Marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* wrap marker in smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* working map in location body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use new ZoomButtons in MLocationBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test LocationViewDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update commentt
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract livetimeremaining into own component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract more beacon state utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update tests for roomlivesharewarning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add idle status to live beacon icon
* add beacon map and status chin
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add handling for bubbles
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tests for BeaconBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move displaystatus check up to mbeaconbody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename BeaconStatusChin -> BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* make BeaconStatus generic
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* adjust spinner size
Signed-off-by: Kerry Archibald <kerrya@element.io>
* polish and copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* better comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-13 10:44:15 +02:00
Kerry
4b7840bf78
Live location sharing - extract live time UI for reuse ( #8283 )
...
* extract livetimeremaining into own component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract LiveTimeRemaining for reuse in beacon timeline
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-12 09:24:17 +02:00
Kerry
03d0969ae3
Live location sharing - update beacon_info implementation to latest MSC ( #8256 )
...
* update calls to set and createLiveBeacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix stop beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove variable event type from beacon utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use beacon identifier
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix RoomLiveShareWarning tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add case for beacon update
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* more lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-08 10:53:06 +02:00
Kerry
4922e19b5a
Live Location Sharing - left panel warning with error ( #8201 )
...
* add error style to left panel beacon warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add beacon sort util
* link to latest beacon room from left panel warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-31 13:51:44 +02:00
Kerry
1175226bcb
Live location sharing - display wire error in room ( #8198 )
...
* expose wire errors in more useful way
* add wire error state to room live share warning bar
Signed-off-by: Kerry Archibald <kerrya@element.io>
* stylelint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add types to getLabel helper
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-31 10:57:12 +02:00
Kerry
e721c6b0c2
Live location sharing: allow retry when stop sharing fails ( #8193 )
...
* allow retry when stop sharing fails
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-30 12:31:19 +00:00
Kerry
d2b97e251e
Live location sharing - handle geolocation errors ( #8179 )
...
* display live share warning only when geolocation is happening
Signed-off-by: Kerry Archibald <kerrya@element.io>
* kill beacons when geolocation is unavailable or permissions denied
Signed-off-by: Kerry Archibald <kerrya@element.io>
* polish and comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-28 18:46:39 +02:00
Kerry
e9b2aea97b
Live location sharing - send geolocation beacon events - happy path ( #8127 )
...
* geolocation utilities
Signed-off-by: Kerry Archibald <kerrya@element.io>
* messy send events
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add geolocation services
Signed-off-by: Kerry Archibald <kerrya@element.io>
* geolocation tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* debounce with backup emit every 30s
Signed-off-by: Kerry Archibald <kerrya@element.io>
* import reorder
Signed-off-by: Kerry Archibald <kerrya@element.io>
* some more working tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* complicated timeout testing
Signed-off-by: Kerry Archibald <kerrya@element.io>
* publish first location immediately
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move advanceDateAndTime to utils, tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typos
Signed-off-by: Kerry Archibald <kerrya@element.io>
* types and lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-28 10:48:38 +00:00
Kerry
752ad6a9f9
Live location sharing - refresh beacon expiry in room ( #8116 )
...
* add duration dropdown to live location picker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* setup component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* replace references to beaconInfoId with beacon.identifier
Signed-off-by: Kerry Archibald <kerrya@element.io>
* icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* component for styled live beacon icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* emit liveness change whenever livebeaconIds changes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Handle multiple live beacons in room share warning, test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* un xdescribe beaconstore tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* refresh beacon time remaining
Signed-off-by: Kerry Archibald <kerrya@element.io>
* kill timeout
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use useInterval
Signed-off-by: Kerry Archibald <kerrya@element.io>
* beacon not optional in useMsRemaining
Signed-off-by: Kerry Archibald <kerrya@element.io>
* just use single "you are sharing" message
Signed-off-by: Kerry Archibald <kerrya@element.io>
* trigger
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n again
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-23 11:12:58 +01:00
Kerry
b04d31b5be
Live location sharing: live share warning in room ( #8100 )
...
* add duration dropdown to live location picker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* setup component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* replace references to beaconInfoId with beacon.identifier
Signed-off-by: Kerry Archibald <kerrya@element.io>
* icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* component for styled live beacon icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* emit liveness change whenever livebeaconIds changes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Handle multiple live beacons in room share warning, test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* un xdescribe beaconstore tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-22 13:57:12 +00:00
Kerry
9f6c238827
Add simple live share warning ( #8066 )
...
* add simple live share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rough first cut of OwnBeaconStore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* working (?) has live beacons status
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add left panel share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* setup for tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test ownbeaconstore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove warning banner
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix tests for weird asyncstore closure issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix OwnBeaconStore more...
Signed-off-by: Kerry Archibald <kerrya@element.io>
* revert loose change to LeftPanel
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Revert "remove warning banner"
This reverts commit 4529813b12e3206731f18e0514aa6e0f6896d03a.
* test live share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-17 09:25:57 +01:00