status-desktop/ui/imports/shared/status
Alex Jbanca 4a30d13bdc
feat(LinkPreviews): Integrate Link previews with the backend (#12523)
* feat(StatusQ): Adding numberToLocaleStringInCompactForm function to LocaleUtils

This function will format the number in a compact form
E.g: 1000 -> 1K; 1000000 -> 1M; 1100000 -> 1.1M

+ adding tests

fix(statusQ): Update numberToLocaleStringInCompactForm to return the locale number when greter than 999T

fix(StatusQ): extend the test_numberToLocaleStringInCompactForm with new data

* feat(LinkPreviews): Update the link preview area in StatusChatInput to use the new model

Changes:
1. Create a new component `LinkPreviewMiniCardDelegate.qml` that filters the model data to properly fill the link preview card with the needed data based on the preview type
2. Update storybook pages
3. Small updates to LinkPreviewMiniCard

* feat(LinkPreviews): Update the link previews in message history to use the new backend

Changes:
1. Create delegate items for LinkPreviewCard and gif link preview to clean the LinksMessageView component and filter the model data based on the preview type
2. Remove UserProfileCard and reuse the LinkPreviewCard to display contacts link previews
3. Update LinkPreviewCard so that it can accommodate status link previews (communities, channels, contacts). The generic properties (title, description, footer) have been dropped and replaced with specialised properties for each preview type.
4. Fix LinkPreviewCard layout to better accommodate different content variants (missing properties, long/short title, missing description, missing icon)
5. Fixing the link preview context menu and click actions

fix: Move inline components to separate files

Fixing the linux builds using Qt 5.15.2 affected by this bug:
https://bugreports.qt.io/browse/QTBUG-89180

* fix: Align LinkPreviewMiniCard implementation with LinkPreviewCard and remove state based model filtering
2023-10-25 18:20:02 +03:00
..
StatusGifPopup fix: messaging settings and url unfurling fixes (#12457) 2023-10-18 10:03:32 +01:00
StatusChatImage.qml fix: Pinning messages - tweaks to UI and interactions 2023-02-17 11:22:21 +01:00
StatusChatImageExtensionValidator.qml fix(images): fix second pasted image replaces the first one 2023-03-28 13:48:10 -04:00
StatusChatImageLoader.qml fix: reduce Image cache 2023-04-27 13:56:39 +02:00
StatusChatImageQtyValidator.qml feat: New Profile Modal 2022-10-17 12:05:54 +02:00
StatusChatImageSizeValidator.qml fix(images): fix second pasted image replaces the first one 2023-03-28 13:48:10 -04:00
StatusChatImageValidator.qml refactor(desktop) Made shared a QML module 2021-10-27 18:05:45 -04:00
StatusChatInput.qml feat(LinkPreviews): Integrate Link previews with the backend (#12523) 2023-10-25 18:20:02 +03:00
StatusChatInputImageArea.qml feat: Add settings card to control link previews settings in chat input 2023-10-12 15:40:01 +03:00
StatusChatInputReplyArea.qml feat(image-album): Display album of images in replies 2023-05-02 11:24:48 +03:00
StatusChatInputTextFormationAction.qml refactor: removed dynamic scoping from shared module 2022-02-01 11:46:39 +01:00
StatusEmojiPopup.qml fix(StatusScrollView): Change implementation to inherit ScrollView (#10789) 2023-05-31 23:58:23 +03:00
StatusEmojiSection.qml fix(StatusEmojiPopup): 'Flags' section is cut off in the emoji modal 2022-09-01 19:28:21 +02:00
StatusEmojiSuggestionPopup.qml fix(StatusEmojiSuggestionPopup): emoji is blurry in the suggestions popup 2022-11-24 14:35:54 +01:00
StatusExpandableAddress.qml fix(@wallet): trim tx data 2023-02-23 14:53:45 +01:00
StatusGifPopup.qml fix: messaging settings and url unfurling fixes (#12457) 2023-10-18 10:03:32 +01:00
StatusImageModal.qml fix(URLUnfurling): Updated image context menu 2023-09-12 00:04:08 +03:00
StatusImageRadioButton.qml fix(AppearanceView): UI issue fixes 2022-07-26 23:41:30 +02:00
StatusInputListPopup.qml chore: reduce the number of (verification) RPC calls 2022-12-01 16:50:23 +01:00
StatusNotification.qml chore: remove public chat functionnalities 2023-01-25 10:05:55 -05:00
StatusSearchListPopup.qml fix: Channel picker doesn't render 1-1 chats correctly 2023-06-15 11:13:36 +02:00
StatusSectionDescItem.qml fix(@wallet): trim tx data 2023-02-23 14:53:45 +01:00
StatusSectionHeadline.qml refactor(desktop) Made shared a QML module 2021-10-27 18:05:45 -04:00
StatusSettingsLineButton.qml chore: use the "next" icon consistently 2023-04-25 13:24:17 +02:00
StatusSticker.qml fix: Pinning messages - tweaks to UI and interactions 2023-02-17 11:22:21 +01:00
StatusStickerButton.qml chore(StatusStickerButton): refactor to use StatusButton 2023-04-18 13:45:38 +02:00
StatusStickerList.qml fix(StatusStickerList): add scrollbar to the grid view 2023-04-18 13:45:38 +02:00
StatusStickerMarket.qml chore(@desktop/wallet): SendModal: complete storybook flow 2023-10-02 12:27:15 +02:00
StatusStickerPackClickPopup.qml chore(@desktop/wallet): SendModal: complete storybook flow 2023-10-02 12:27:15 +02:00
StatusStickerPackDetails.qml fix(general): buttons font fixed, font loading refactored 2022-09-19 22:10:25 +02:00
StatusStickerPackIconWithIndicator.qml fix: Create only one instance of `StatusChatInput` (#10928) 2023-06-07 16:18:29 +03:00
StatusStickersPopup.qml fix: Create only one instance of `StatusChatInput` (#10928) 2023-06-07 16:18:29 +03:00
StatusTextFormatMenu.qml feat(@desktop/chat): add textformat quote option functionality 2022-09-01 12:45:45 +03:00
TextEditHyperlinksFormatter.qml feat: Generate link previews in StatusChatInput - Small updates + Add basic zoom to Storybook InspectionWindow 2023-10-12 14:08:28 +03:00
qmldir feat(@desktop/wallet): Updated UI for bridge and multi routing support 2022-10-26 18:48:30 +02:00