Commit Graph
3133 Commits
Author SHA1 Message Date
KerryandGitHub 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
Michael TelatynskiandGitHub 48cd83b9d5 Fix issues with thread summaries being wrong or stale (#8015) 2022-03-10 10:29:28 +00:00
KerryandGitHub 14684c6296 Send pin drop location share events (#7967)
* 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>

* tweak style

Signed-off-by: Kerry Archibald <kerrya@element.io>

* lint

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-09 18:14:07 +01:00
Suguru HiraharaandGitHub a71009fca0 Add a new line on SpaceRoomView (#8002) 2022-03-09 12:59:17 +00:00
Sinharitik589andGitHub 4592f9f7f9 Normalized shortcut formatting for quote expansion control (#7995) 2022-03-09 09:52:31 +00:00
Suguru HiraharaandGitHub 930120823f Remove hard-coded whitespace characters from SpaceCreateMenu.tsx (#7885)
Whitespace characters should not be hard-coded as some languages do not
have the concept of whitespace in the first place.

Fixes https://github.com/vector-im/element-web/issues/21187

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-03-08 14:41:27 -07:00
Andy BalaamandGitHub a792097d02 Keyboard shortcut to open the sticker picker (#7985) 2022-03-08 15:05:36 +00:00
KerryandGitHub 9379be0189 add feature_location_share_live labs flag (#7997)
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-07 13:49:32 +01:00
RobinandGitHub 319ed3a776 Fix missing summary text for pinned message changes (#7989)
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-04 18:35:28 -05:00
Travis RalstonandGitHub b981a96b29 Add unexposed account setting for hiding poll creation (#7972)
* Add unexposed account setting for hiding poll creation

This is to match the sticker picker setting we already have, but not exposed in the user settings until we decide if we actually want it to be there.

This is primarily intended to be used in environments that disable it at the config level, though given there's multiple people in the wild who have asked for this, it seems reasonable to expose it as a hidden setting instead. Note that as of writing it's not clear if any of those requests made it as far as an issue tracker.

Typically for the usecase presented we'd add a new UIFeature flag, however this *feels* wrong for the case at hand.

* Move visibility check way higher

* Fix i18n post-merge
2022-03-04 18:04:30 +00:00
Suguru HiraharaandGitHub b80ea34805 Fix a paragraph in const EmptyThread (#7964) 2022-03-04 08:27:23 +00:00
4c05b7da1f Make trailing : into a setting (#6711)
* Make trailing `:` into a setting

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Make traling comma opt-out

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Write `insertTrailingComma` when reading for future opt-in setting

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Update src/editor/parts.ts

* Fix line length

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

Co-authored-by: Travis Ralston <travpc@gmail.com>
2022-03-04 00:23:26 -07:00
KerryandGitHub d304e24a45 Revert "remove code related to encrypted file download button in iframe" (#7957)
* Revert "remove code related to encrypted file download button in iframe (#7940)"

This reverts commit 26216ec527.

* udpate icon import in MFileBody

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-02 18:27:36 +01:00
Michael TelatynskiandGitHub 560f8f7ee7 Improve accessibility of the BetaPill (#7949) 2022-03-02 16:31:47 +00:00
Suguru HiraharaandGitHub 522ad1aafb Make "Match system" on QuickThemeSwitcher.tsx translatable (#7951) 2022-03-02 16:10:14 +00:00
Michael TelatynskiandGitHub 3c858a723b Fix sending locations into threads and fix i18n (#7943) 2022-03-02 14:27:16 +00:00
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
KerryandGitHub 26216ec527 remove code related to encrypted file download button in iframe (#7940)
* remove code related to encrypted file download button in iframe

Signed-off-by: Kerry Archibald <kerrya@element.io>

* i18n

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove getIframeFn in mfilebody filedownloader

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove iframe ref too

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-02 11:55:03 +00:00
Suguru HiraharaandGitHub 865dddbb62 Fix ExportDialog title on export cancellation (#7936) 2022-03-02 08:58:41 +00:00
KerryandGitHub 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
Šimon BrandnerandGitHub 8f128ef0dc Expose redaction power level in room settings (#7599) 2022-03-01 16:41:58 +00:00
Šimon BrandnerandGitHub df591ee835 Make everything use the KeyBindingManager (#7907) 2022-02-28 16:05:52 +00:00
RobinandGitHub 464bb727db Update and expand ways to access pinned messages (#7906)
* Hide pinned messages header button when nothing is pinned

Signed-off-by: Robin Townsend <robin@robin.town>

* Add pinned messages option to room info panel

Signed-off-by: Robin Townsend <robin@robin.town>

* Add pinned messages option to room header menu

Signed-off-by: Robin Townsend <robin@robin.town>

* Make condition more concise

Signed-off-by: Robin Townsend <robin@robin.town>
2022-02-28 14:52:16 +00:00
Michael TelatynskiandGitHub 75e41b4c1c Basic threads analytics into Posthog MVP (#7871) 2022-02-28 14:11:14 +00:00
David BakerandGitHub 3e4e7efd89 Add slash command to switch to a room's virtual room (#7839)
* Add slash command to switch to a room's virtual room

* Update to new interface

* Return null if no virtual user

* Throw newTranslateableError

* Types

* Disable tovirtual if virtual rooms not supported
2022-02-25 15:58:13 +00:00
Michael TelatynskiandGitHub 0e1f904eee Fix event list summary 1 hidden message pluralisation (#7890) 2022-02-24 13:16:31 +00:00
KerryandGitHub f4cd71fd47 Check 'useSystemTheme' in quick settings theme switcher (#7809)
* mock Element.scrollIntoView in jest setup

Signed-off-by: Kerry Archibald <kerrya@element.io>

* extract theme switcher from quick settings, add match system option, test

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>

* stylelint

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove old class

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-24 10:01:06 +01:00
Travis RalstonandGitHub d71922ca51 Support social login & password on soft logout page (#7879)
* Code style: Modernize

* Make Soft Logout page support Social Sign On

Fixes https://github.com/vector-im/element-web/issues/21099

This commit does a few things:
* Moves rendering of the flows to functions
* Adds a new login view enum for Password + SSO (mirroring logic from registration)
* Makes an absolute mess of the resulting diff

* Lint & i18n

* Remove spurious typing
2022-02-23 16:22:37 +00:00
Šimon BrandnerandGitHub 93a9af7b3a Keybinding code unification #3 (#7850) 2022-02-23 09:12:04 +00:00
Michael TelatynskiandGitHub 8fccef86d8 Wire up drag-drop file uploads for the thread view (#7860) 2022-02-22 11:14:56 +00:00
Michael TelatynskiandGitHub e2827b4082 Fix accessibility around the room list treeview and new search beta (#7856) 2022-02-21 15:46:13 +00:00
Andy BalaamandGitHub f1e1b7be86 Support "closed" polls whose votes are not visible until they are ended (#7842) 2022-02-21 10:21:35 +00:00
Šimon BrandnerandGitHub fe7f1688dd Move editEvent() to EventUtils (#7836) 2022-02-18 15:01:32 +00:00
Travis RalstonandGitHub 34567b9aab Add labs flag: Show only current profile on historical messages (#7815)
* Add labs flag: Show only current profile on historical messages

For https://github.com/vector-im/element-web/issues/3768
Related https://github.com/vector-im/element-web/issues/4677

* Use the member's user ID
2022-02-18 07:58:04 -07:00
Michael TelatynskiandGitHub 07d5b4139d Add way to join room address via new search dialog (#7830) 2022-02-17 15:40:12 +00:00
Michael TelatynskiandGitHub 4292381202 Fix layout inconsistencies with the room search minimized button (#7824) 2022-02-17 10:33:36 +00:00
Andy BalaamandGitHub 7387f3c80a Allow editing polls (#7806) 2022-02-17 09:13:05 +00:00
Michael TelatynskiandGitHub 8d4e83084c Remove Countly analytics integration (#7808) 2022-02-15 16:58:30 +00:00
Andy BalaamandGitHub 84e15fa148 Display '(edited)' next to edited polls (#7789) 2022-02-15 08:52:51 +00:00
Michael TelatynskiandGitHub 8d3c2eddd6 Improve styling of edge case devtools state keys (#7794) 2022-02-14 23:37:45 +00:00
KerryandGitHub b5e7d12f76 Add config option to autorageshake when key backup is not enabled (#7741)
* report on not enabled

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add setting

Signed-off-by: Kerry Archibald <kerrya@element.io>

* check key backup status after crypto init

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove log

Signed-off-by: Kerry Archibald <kerrya@element.io>

* test encryption setup in DeviceListener

Signed-off-by: Kerry Archibald <kerrya@element.io>

* i18n

Signed-off-by: Kerry Archibald <kerrya@element.io>

* sendLogs for key backup auto-report event

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove reloadOnChagneController

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-11 14:00:37 +01:00
Michael TelatynskiandGitHub be324df953 Fix bad pluralisation on event list summary hidden message handling (#7778) 2022-02-10 13:29:12 +00:00
Michael TelatynskiandGitHub 714136d4f7 Consolidate RedactionGrouper and HiddenEventGrouper into MELS (#7739) 2022-02-09 10:51:12 +00:00
J. Ryan StinnettandGitHub 59cdd3edc0 Unify widget header actions with those in right panel (#7734) 2022-02-09 10:47:41 +00:00
Michael TelatynskiandGitHub 919aab053e Improve new search dialog context text for exactly 2 parent spaces (#7761) 2022-02-08 19:08:05 +00:00
Michael TelatynskiandGitHub ed185240a5 Move new search experience to a Beta (#7718) 2022-02-08 14:02:36 +00:00
Aaron RaimistandGitHub 5278679076 Capitalize "Privacy" in UserMenu (#7738) 2022-02-08 08:31:51 +00:00
GermainandGitHub 544957bdad Use typographical quotes in no threads UI (#7713) 2022-02-07 15:13:34 +00:00
Michael TelatynskiandGitHub 5d89230271 Remove IA 1.1 feedback toast (#7720) 2022-02-07 12:46:48 +00:00
Šimon BrandnerandGitHub 472115cd9c Fix add existing rooms button (#7728) 2022-02-07 10:19:14 +00:00