Suguru Hirahara
8a4a584ba0
Make test ID compatible with findByTestId() of Cypress Testing Library ( #10617 )
...
'data-test-id' is not discoverable with findByTestId() of Cypress Testing Library.
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com >
2023-04-17 06:10:11 +00:00
Kerry
de6a1a661c
apply strictnullchecks to src/components/views/beacon/* ( #10272 )
2023-03-02 09:58:05 +00:00
Michael Telatyński
629e5cb01f
Properly type Modal props to ensure useful typescript checking ( #10238
...
* Properly type Modal props to ensure useful typescript checking
* delint
* Iterate
* Iterate
* Fix modal.close loop
* Iterate
* Fix tests
* Add comment
* Fix test
2023-02-28 10:31:48 +00:00
Kerry
d141fedff6
port BeaconViewDialog unit test to rtl ( #10180 )
2023-02-21 21:32:37 +00:00
Suguru Hirahara
ea4000cf1e
Fix 'Failed check: Ellipsis' on Weblate ( #10144 )
...
* Fix 'Failed check: Ellipsis' on Weblate
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com >
* Fix tests
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com >
* Remove white space characters before the horizontal ellipsis from RoomPreviewBar
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com >
* yarn run i18n
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com >
* Additional change
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com >
---------
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com >
2023-02-14 09:05:01 +00:00
Johannes Marbach
e5a7e83b48
Add option to find own location in map views
2023-02-04 19:58:19 +01:00
Michael Telatynski
030b7e90bf
Enable @typescript-eslint/explicit-function-return-type in /src ( #9788 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
* Enable `@typescript-eslint/explicit-function-return-type` in /src
* Fix types
* tsc strict fixes
* Delint
* Fix test
* Fix bad merge
2023-01-12 13:25:14 +00:00
alunturner
3bcea5fb0b
Convert enzyme to rtl: BeaconMarker ( #9840 )
2023-01-04 10:00:13 +00:00
Germain
1e8b59ea40
Migrate Enzyme to RTL ( #9842 )
2022-12-29 15:35:19 +00:00
renovate[bot]
af3715821b
Update dependency maplibre-gl to v2 ( #9699 )
...
* Update dependency maplibre-gl to v2
* update types and mocks for maplibre 2.0
* prettier + strict fix
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kerry Archibald <kerrya@element.io >
2022-12-18 23:17:15 +00:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Robin
2c612d5aa1
Use native js-sdk group call support ( #9625 )
...
* Use native js-sdk group call support
Now that the js-sdk supports group calls natively, our group call implementation can be simplified a bit. Switching to the js-sdk implementation also brings the react-sdk up to date with recent MSC3401 changes, and adds support for joining calls from multiple devices. (So, the previous logic which sent to-device messages to prevent multi-device sessions is no longer necessary.)
* Fix strings
* Fix strict type errors
2022-11-28 16:37:32 -05:00
Michael Telatynski
913af09e61
Convert some tests from Enzyme to RTL ( #9483 )
2022-10-24 09:06:20 +01:00
kegsay
e946674df3
Store refactor: use non-global stores in components ( #9293 )
...
* Add Stores and StoresContext and use it in MatrixChat and RoomView
Added a new kind of class:
- Add God object `Stores` which will hold refs to all known stores and the `MatrixClient`. This object is NOT a singleton.
- Add `StoresContext` to hold onto a ref of `Stores` for use inside components.
`StoresContext` is created via:
- Create `Stores` in `MatrixChat`, assigning the `MatrixClient` when we have one set. Currently sets the RVS to `RoomViewStore.instance`.
- Wrap `MatrixChat`s `render()` function in a `StoresContext.Provider` so it can be used anywhere.
`StoresContext` is currently only used in `RoomView` via the following changes:
- Remove the HOC, which redundantly set `mxClient` as a prop. We don't need this as `RoomView` was using the client from `this.context`.
- Change the type of context accepted from `MatrixClientContext` to `StoresContext`.
- Modify alllll the places where `this.context` is used to interact with the client and suffix `.client`.
- Modify places where we use `RoomViewStore.instance` and replace them with `this.context.roomViewStore`.
This makes `RoomView` use a non-global instance of RVS.
* Linting
* SDKContext and make client an optional constructor arg
* Move SDKContext to /src/contexts
* Inject all RVS deps
* Linting
* Remove reset calls; deep copy the INITIAL_STATE to avoid test pollution
* DI singletons used in RoomView; DI them in RoomView-test too
* Initial RoomViewStore.instance after all files are imported to avoid cyclical deps
* Lazily init stores to allow for circular dependencies
Rather than stores accepting a list of other stores in their constructors,
which doesn't work when A needs B and B needs A, make new-style stores simply
accept Stores. When a store needs another store, they access it via `Stores`
which then lazily constructs that store if it needs it. This breaks the
circular dependency at constructor time, without needing to introduce
wiring diagrams or any complex DI framework.
* Delete RoomViewStore.instance
Replaced with Stores.instance.roomViewStore
* Linting
* Move OverridableStores to test/TestStores
* Rejig how eager stores get made; don't automatically do it else tests break
* Linting
* Linting and review comments
* Fix new code to use Stores.instance
* s/Stores/SdkContextClass/g
* Update docs
* Remove unused imports
* Update src/stores/RoomViewStore.tsx
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
* Remove empty c'tor to make sonar happy
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2022-10-19 13:07:03 +01:00
Timo
372720ec8b
Room call banner ( #9378 )
...
Signed-off-by: Timo K <timok@element.io >
Co-authored-by: Timo K <timok@element.io >
Co-authored-by: Robin <robin@robin.town >
2022-10-17 21:36:17 +02:00
Kerry
0357b4f0dc
leave maximised map when beacons expire ( #9098 )
2022-07-27 17:42:59 +02:00
Kerry
dc6ceb1d1c
Live location share - focus on user location on list item click (PSG-609) ( #9051 )
...
* extract preventDefaultWrapper into utils
* add click handling to beacon list item
* add click handling to dialog sidebar
* focus in on beacons when clicked in list
* stylelint
* fussy import ordering
* test beacon focusing in beaocnviewdialog
2022-07-18 08:34:39 +00:00
Kerry
c44c8ba654
Live location share - labels update: "stop sharing" -> "stop" (PSG-618) ( #9048 )
2022-07-13 06:50:38 +00:00
Kerry
60faf6d025
Live location share - tiles without tile server (PSG-591) ( #8962 )
...
* live location without map POC
* styles
* force map tiles to show no map for test build
* check latestlocationstate exists
* just use loading style map fallback when cant display map
* style map error for tile view
* set pointer cursor when map error is clickable
* test mbeaconbody with map display error, lint
* lint more good
* remove changes for first attempt tile
* make maperror test id more accurate
* fussy import ordering
* PR tweaks
2022-07-06 14:34:33 +00:00
Kerry
2bdb4d396a
Live location share - show loading UI for beacons with start timestamp in the future (PSF-1081) ( #8775 )
...
* check for beacons that are yet to start and show loading ui
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update snapshots for js-sdk rename
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io >
* Update test/components/views/messages/MBeaconBody-test.tsx
Co-authored-by: Travis Ralston <travisr@matrix.org >
* Update src/components/views/beacon/displayStatus.ts
Co-authored-by: Travis Ralston <travisr@matrix.org >
Co-authored-by: Travis Ralston <travisr@matrix.org >
2022-06-09 13:25:30 +01:00
Kerry
56b0b79fb7
Live location share - link to timeline tile from share warning (PSF-1078) ( #8752 )
...
* navigate to live location tile from left panel live warning
Signed-off-by: Kerry Archibald <kerrya@element.io >
* navigate to beacon tile from room live share warning
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add cursor
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-06-07 10:15:09 +00:00
Suguru Hirahara
323e911fe7
Add ellipsis effect to hidden beacon status ( #8755 )
2022-06-05 05:40:17 +00:00
Kerry
79a2dfe171
Live location share - enable reply and react to tiles ( #8721 )
...
* test most basic paths in messageactionbar
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy
Signed-off-by: Kerry Archibald <kerrya@element.io >
* use rtl for MessageActionBar test
Signed-off-by: Kerry Archibald <kerrya@element.io >
* make beacon_info events semi actionable
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove log
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test thread exception for beacon
Signed-off-by: Kerry Archibald <kerrya@element.io >
* eat click events in beacon status to stop jumping from reply tile
Signed-off-by: Kerry Archibald <kerrya@element.io >
* set max width on beaconbody for render in thread panel
2022-06-02 15:43:19 +00:00
Kerry
15c2fb6b71
Live location sharing - open location in OpenStreetMap (PSF-1040) ( #8695 )
...
* share plain lat,lon string from beacon tooltip and list item
Signed-off-by: Kerry Archibald <kerrya@element.io >
* export makeMapSiteLink helper fn
Signed-off-by: Kerry Archibald <kerrya@element.io >
* use currentColor in external-link.svg
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add open in openstreetmap link
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fussy import ordering
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix icon color var
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-05-27 11:58:39 +02:00
Kerry
804ddbb332
Live location sharing - update live location tiles (PSF-1027) ( #8649 )
...
* update map svg
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add map fallback component, update styls
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update purple location icon style
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fussy import ordering
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-05-20 09:49:01 +00:00
Kerry
fbbb9c27ba
Live location share - beacon tooltip in maximised view ( #8572 ) PSF-926
...
* pass optional tooltip prop down through markers
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add beaconstatustooltip, handle overflow on beacon status label
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove debug, fix mouseout
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-05-13 08:30:53 +00:00
Travis Ralston
548290b006
Run a minor code quality checker over the repo ( #8524 )
...
* Run a minor code quality checker over the repo
Largely targeted at spelling of common words and misc code issues.
* Update snapshots
2022-05-09 22:52:05 +00:00
Kerry
7e15bef062
Live location sharing: fix code smells - return useEffect unsub, dont map ( #8535 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-05-09 08:42:05 +00:00
Kerry
e97536ef96
Live location sharing - refresh beacon timers on tab becoming active ( #8515 )
...
* add visibilitychange listener
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test
Signed-off-by: Kerry Archibald <kerrya@element.io >
* restore event listener mock
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-05-06 11:33:09 +02:00
Kerry
472222c195
LLS: error handling on stopping beacon ( #8406 )
...
* shared stopping error state for timeline, maxi and room warnign
Signed-off-by: Kerry Archibald <kerrya@element.io >
* check for stopping errors in roomlist share warning
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test stopping errors in OwnBeaconStore
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update LeftPanelLiveShareWarning tests for stopping errors
Signed-off-by: Kerry Archibald <kerrya@element.io >
* reinstate try/catch for stopping beacons in create
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove unnecessary and buggy beacon stopping on creation
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-28 12:03:51 +00:00
Kerry
8c6786bad6
LLS: rename wireError ( #8401 )
...
* rename wireError in ownbeaconstore to locationPublishError
Signed-off-by: Kerry Archibald <kerrya@element.io >
* rename getLiveBeaconIdsWithWireError -> getLiveBeaconIdsWithLocationPublishError
Signed-off-by: Kerry Archibald <kerrya@element.io >
* rename wire error variables in components
Signed-off-by: Kerry Archibald <kerrya@element.io >
* new snapshots for new test names
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix bad capitalisation on onResetLocationPublishError
Signed-off-by: Kerry Archibald <kerrya@element.io >
* missed variable
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-25 12:44:18 +00:00
Kerry
399ac618c7
LLS: fix jumpy maximised map ( #8387 )
...
* add maxzoom to map fit bounds
Signed-off-by: Kerry Archibald <kerrya@element.io >
* take snapshot of bounds at center on dialog open
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-21 18:56:11 +02:00
Kerry
f2ec465f87
Live location sharing: own live beacon status on maximised view ( #8374 )
...
* add floating own live sharing eacon status to maximised view
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add tests for own beacon status
Signed-off-by: Kerry Archibald <kerrya@element.io >
* stylelint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove huge snapshot
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove unused emits from test
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-21 09:06:57 +02:00
Kerry
4a38cbd550
Live location sharing: beacon list view tiles ( #8363 )
...
* add basic sidebar container
Signed-off-by: Kerry Archibald <kerrya@element.io >
* optionally show icon in beaconstatus
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add avatar and style list item
Signed-off-by: Kerry Archibald <kerrya@element.io >
* formatted last update time
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test beacon list item
Signed-off-by: Kerry Archibald <kerrya@element.io >
* move makeRoomWithState events to test utils
Signed-off-by: Kerry Archibald <kerrya@element.io >
* move beacon test helpers into utils
Signed-off-by: Kerry Archibald <kerrya@element.io >
* newline
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add copyable text to beacon list item
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add copyable geo uri to list item
Signed-off-by: Kerry Archibald <kerrya@element.io >
* improve spacing
Signed-off-by: Kerry Archibald <kerrya@element.io >
* overflow scroll on list
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-20 11:57:50 +00:00
Kerry
e45cd39906
Live location sharing: maximised view sidebar container ( #8360 )
...
* add h4
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add mixin to clear list style
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add basic sidebar container
Signed-off-by: Kerry Archibald <kerrya@element.io >
* open list view button on beaconviewdialog
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update tests for new utils
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-20 08:14:24 +00:00
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
661e2c2aa5
Live location sharing - beacon map in timeline ( #8286 )
...
* add displaystatus util
Signed-off-by: Kerry Archibald <kerrya@element.io >
* map fallback svg
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add Map to mbeaconbody
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add bubble layout handling
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test beaconbody
Signed-off-by: Kerry Archibald <kerrya@element.io >
* typo
Signed-off-by: Kerry Archibald <kerrya@element.io >
* use randomString from js-sdk
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-12 09:13:55 +01: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
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
0b80755fb8
extract reusable styled live beacon icon ( #8103 )
...
* extract reusable styles live beacon icon
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add secondary live lcation color
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-21 16:43:43 +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