element-web/test
Johannes Marbach 6f21a155a4
Add option to display tooltip on link hover (#8394)
* Add option to display tooltip on link hover

This makes it possible for platforms like Electron apps, which lack
a built-in URL preview in the status bar, to enable tooltip previews
of links.

Relates to: vector-im/element-web#6532
Signed-off-by: Johannes Marbach <johannesm@element.io>

* Gracefully handle missing platform

* Use public access modifier

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Use exact inequality

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Document getAbsoluteUrl

* Appease the linter

* Clarify performance impact in comment

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Use URL instead of anchor element hack

* Wrap anchor in tooltip target and only allow focus on anchor

* Use optional chaining

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Use double quotes for consistency

* Accumulate and unmount tooltips and extract tooltipify.tsx

* Fix indentation

* Blur tooltip target on click

* Remove space

* Mention platform flag in comment

* Add (simplistic) tests

* Fix lint errors

* Fix lint errors ... for real

* Replace snapshot tests with structural assertions

* Add missing semicolon

* Add tooltips in link previews

* Fix copyright

Co-authored-by: Travis Ralston <travpc@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-07-06 09:43:30 +00:00
..
__snapshots__ Location (live) share replies now provide a fallback content (#8949) 2022-07-01 08:01:22 +02:00
accessibility
audio
autocomplete
components Add bidirectonal isolation for pills (#8985) 2022-07-05 11:37:35 +00:00
editor
end-to-end-tests
events Live location share - open latest location in map site (#8981) 2022-07-04 16:05:55 +02:00
hooks
i18n
i18n-test
images
img
modules Support a module API surface for custom functionality (#8246) 2022-07-05 12:26:44 -06:00
notifications
settings
setup
stores Live location share - explicitly stop beacons replaced beacons (PSG-544) (#8933) 2022-06-30 07:33:51 +00:00
test-utils Test typescriptification - MessagePanel (#8943) 2022-06-30 14:41:53 +02:00
utils Add option to display tooltip on link hover (#8394) 2022-07-06 09:43:30 +00:00
.eslintrc.js
CallHandler-test.ts Fix calls on homeservers without the unstable thirdparty endpoints (#8931) 2022-07-01 12:43:42 +00:00
DecryptionFailureTracker-test.js Fix all megolm error reported as unknown (#8916) 2022-06-30 08:55:05 +01:00
DeviceListener-test.ts
HtmlUtils-test.tsx
Image-test.ts
KeyBindingsManager-test.ts
Markdown-test.ts
MatrixClientPeg-test.ts
PosthogAnalytics-test.ts
Reply-test.ts Location (live) share replies now provide a fallback content (#8949) 2022-07-01 08:01:22 +02:00
RoomNotifs-test.ts
ScalarAuthClient-test.ts
SlashCommands-test.tsx
Terms-test.tsx
TextForEvent-test.ts
UserActivity-test.ts
createRoom-test.ts
globalSetup.js
languageHandler-test.ts
linkify-matrix-test.ts
setupTests.js
useTopic-test.tsx