Michael Telatynski
792a39a39b
ARIA Accessibility improvements ( #10675 )
...
* Fix confusing tab indexes in EventTilePreview
* Stop using headings inside buttons
* Prefer labelledby and describedby over duplicated aria-labels
* Improve semantics of tables used in settings
* Fix types
* Update tests
* Fix timestamps
2023-04-21 09:48:48 +00:00
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
3fafa4b58d
Port location unit tests from enzyme to react-testing-library ( #10181 )
...
* SmartMarker test to rtl
* LocationPicker to rtl
* LocationViewDialog to rtl
* LocationShareMenu to rtl
* use toBeDisabled assertion
2023-02-20 18:35:39 +00:00
Johannes Marbach
886ecbcc58
Update snapshots
2023-02-10 08:48:37 +01:00
Johannes Marbach
f842e319de
Merge branch 'develop' into johannes/find-myself
2023-02-08 16:42:14 +01:00
Michael Weimann
2c30e6d909
Migrate `ZoomButtons-test` to react-testing-library ( #10104 )
2023-02-08 09:31:24 +01:00
Johannes Marbach
69268856cf
Update snapshot
2023-02-08 08:38:12 +01:00
Johannes Marbach
fdac94a841
Update snapshot
2023-02-04 20:58:53 +01: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 Telatynski
04bc8fb71c
Optimise Jest run in CI ( #9542 )
2022-11-04 10:48:08 +00:00
Šimon Brandner
26a74a193f
Add Element Call room settings ( #9347 )
...
Co-authored-by: Robin <robin@robin.town>
2022-10-07 18:10:17 +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
14cf6275d0
Fix: AccessibleButton does not set disabled attribute (PSF-1055) ( #8682 )
...
* remove old styles for pin drop buttons
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fully disable share location button until location is shared
Signed-off-by: Kerry Archibald <kerrya@element.io>
* set disabled on button
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test AccessibleButton disabled
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove disbaled check in LocationPicker
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-27 07:13:50 +00:00
Michael Weimann
1535ff0d6c
Move map attribution to top right ( #8621 )
...
Signed-off-by: Michael Weimann <michaelw@matrix.org>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-23 12:19:59 +02:00
Travis Ralston
e87bda9f37
Add an option to ignore (block) a user when reporting their events ( #8471 )
...
* Add an option to ignore (block) a user when reporting their events
This is primarily useful if the content being reported really doesn't belong on your screen, and the room moderators are slow to react.
Ideally we'd use the word "block" instead of "ignore", but we call it "ignore user" everywhere else. See https://github.com/vector-im/element-web/issues/19590 for further context on the word choice.
This change includes a minor refactor to the styles of labelled toggles (for reusability).
* Appease the linter
* Use a checkbox instead of toggle in the dialog
* Update classnames handling for toggle switch
* Appease the linter
2022-05-18 16:20:55 +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
Kerry
699a9aeaaf
LLS: expose way to enable live sharing labs flag from location dialog ( #8416 )
...
* add state for waiting for labs flag
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add enable live share component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test enabling live share labs flag
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 13:37:20 +02: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
9ba55d1d14
Live location sharing - consolidate maps ( #8236 )
...
* 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>
* test Map
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update snaps with new mocks
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use new ZoomButtons in MLocationBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* make LocationViewDialog map interactive
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test MLocationBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test LocationViewDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyrights, shrink snapshot
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update comment
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>
2022-04-11 18:40:06 +02:00
Kerry
aecd71ad15
Live location sharing - update beacon tile with latest location ( #8265 )
...
* add useBeacon hook
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update message tile types to work with function comp with ref
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use beacon hook in beacon body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update beacon body with (textual) latest locations, test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* language in comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-11 09:16:32 +00:00
Kerry
94385169f1
Live location sharing - smart location marker ( #8232 )
...
* 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>
* remove skinned-sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* better types for LocationBodyContent
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-11 10:29:24 +02:00
Kerry
df20821fd6
Live location sharing - extract zoom buttons into component ( #8235 )
...
* extract out zoombuttons component
* newline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* stylelint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-11 10:29:07 +02:00
Kerry
b98739056e
Live location sharing - extract location markers into generic Marker ( #8225 )
...
* extract location markers into generic Marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-06 12:40:39 +01:00
Kerry
d38a1fa201
fallback to event text in location body when map unavailable ( #7982 )
...
* center icon better
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io>
* retrigger all builds
Signed-off-by: Kerry Archibald <kerrya@element.io>
* set assetType on share event
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use pin marker on map for pin drop share
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test events
Signed-off-by: Kerry Archibald <kerrya@element.io>
* pin drop helper text
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use generic location type
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add navigationcontrol when in pin mode
Signed-off-by: Kerry Archibald <kerrya@element.io>
* allow pin drop without location permissions
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove geolocate control when pin dropping without geo perms
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test locationpicker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test marker type, tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move findMapStyleUrl
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fallback to event content when cant render map
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update mocks in location picker, show same messages as timeline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* style error message in location share menu
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* forgotten copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update style
Signed-off-by: Kerry Archibald <kerrya@element.io>
* icon bigger
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-11 09:52:57 +01:00
Kerry
b480bffab0
Location share type UI ( #7924 )
...
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* empty line
Signed-off-by: Kerry Archibald <kerrya@element.io>
* functional picker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* most style
Signed-off-by: Kerry Archibald <kerrya@element.io>
* nice style for options
Signed-off-by: Kerry Archibald <kerrya@element.io>
* get ShareType test passing
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add maplibre mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint and test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add section to themes for location sharing cols
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add svg mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use same mock string as imageMock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* newline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add live location icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename useEnabledShareTypes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use solid color for live border
* use ternary
Signed-off-by: Kerry Archibald <kerrya@element.io>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-03-02 13:00:40 +00:00
Kerry
ac36234068
update snap ( #7932 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-01 17:26:30 +00:00
Kerry
3f1951b5b8
Prep for pin drop location sharing ( #7919 )
...
* add labs flag feature_location_share_pin_drop
Signed-off-by: Kerry Archibald <kerrya@element.io>
* split LocationButton into two components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rethemendex
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* one more (c)
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* empty line
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use same matrix client import
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-01 18:00:07 +01:00