status-desktop/ui/imports/utils
Alex Jbanca fcd9567677 feat: Add settings card to control link previews settings in chat input
This commit adds the link preview settings card in the chat input area and connects the settings to the controller.

Not included in this commit: Backend for the preserving the settings, syncing the settings and enforcing the settings on the backend side.

Whenever an url is detected in the chat input area, the link preview settings card is presented. This card enables the user to choose one of the following options:

1. `Show for this message` - All the link previews in the current message will be loaded without asking again. The current message can be defined as the message currently typed/pasted in the chat input. Deleting or sending the current content is resetting this setting and the link preview settings card will be presented again when a new url is detected.
2. `Always show previews` - All the link previews will be loaded automatically. The link preview settings card will not be presented again (in the current state, this settings is enabled for the lifetime of the controller. This will change once the settings are preserved and synced)
3. `Never show previews` - No link preview will be loaded. Same as the `Always show previews` option, this will be preserved for the lifetime of the controller for now.
4. Dismiss (x button) - The link preview settings card will be dismissed. It will be loaded again when a new link preview is detected

The same options can be loaded as a context menu on the link preview card.

Changes:
1. Adding `LinkPreviewSettingsCard`
2. Adding the settings context menu to `LinkPreviewSettingsCard` and `LinkPreviewMiniCard`
3. Connect settings events to the nim controller
4. Adding the controller logic for settings change
5. Adding the link preview dismiss settings flag to the preserverd properties and use it as a condition to load the settings.
6. Adding/Updating corresponding storybook pages
2023-10-12 15:40:01 +03:00
..
Backpressure chore: extend Backpressure with `oneInTimeQueued` 2023-04-07 16:26:26 +02:00
Audio.qml fix(notifications): The sound of notifications is harsh and annoying 2022-12-12 11:39:32 +01:00
Constants.qml feat(@wallet): Enable sepolia network 2023-10-09 15:06:52 +02:00
Global.qml feat: Add URL trust options when the user clicks on a link 2023-10-12 10:57:15 +02:00
ProfileUtils.qml fix(@desktop/profile): profile social links 2023-06-07 13:22:59 +02:00
SelectedMessage.qml style: remove trailing whitespaces 2022-02-09 11:16:23 +01:00
Style.qml fix(@chat): Fixed blurry emojis 2022-05-13 14:03:50 -04:00
Tracer.qml chore(Tracer): Simplify by using Timer instead of Animation 2023-09-22 18:17:31 +02:00
UndoStackManager.qml feat: Add settings card to control link previews settings in chat input 2023-10-12 15:40:01 +03:00
Utils.qml fix(@desktop/wallet): Wallet settings - various small enhancements identified via mobile wallet settings work 2023-10-09 18:46:57 +02:00
qmldir feat: Generate link previews in StatusChatInput - Small updates + Add basic zoom to Storybook InspectionWindow 2023-10-12 14:08:28 +03:00