status-desktop/storybook/pages
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
..
AboutViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
AccountViewPage.qml feat(@desktop/wallet): Include watch only per account 2023-10-13 12:11:36 +02:00
ActivityFilterMenuPage.qml feat(@desktop/wallet): Include watch only per account 2023-10-13 12:11:36 +02:00
ActivityNotificationCommunityMembershipRequestPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
AddressesInputListPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
AddressesSelectorPanelPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
AirdropRecipientsSelectorPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
AirdropTokensSelectorPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
AirdropsSettingsPanelPage.qml fix(Update fees periodically): Update airdrop flows to use fees subscriber 2023-09-08 23:25:04 +03:00
AlertPopupPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
AmountToSendPage.qml feat: Refactor AmountToSend to use exact amounts for transactions 2023-09-20 15:15:29 +02:00
BrowserSettingsPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
BurnTokensPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ChatAnchorButtonsPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ChatInputLinksPreviewAreaPage.qml feat(LinkPreviews): Integrate Link previews with the backend (#12523) 2023-10-25 18:20:02 +03:00
ChatPermissionQualificationPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ColumnHeaderPanelPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
CommunitiesPortalDummyModel.qml feat(CommunityPortal/StatusCommunityCard): Prepared `StatusCommunityCard` to display permissions row 2023-04-27 16:10:20 +02:00
CommunitiesPortalLayoutPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
CommunitiesPortalModelEditor.qml feat(storybook): extended editing of communities portal page 2022-10-27 13:55:06 +02:00
CommunitiesViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
CommunityInfoEditor.qml feat: add ManageShardingPopup 2023-10-02 15:04:17 +02:00
CommunityIntroDialogPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
CommunityPermissionsHoldingItemEditor.qml feat(Communities): Communities folder reorganization 2023-06-28 14:28:47 +02:00
CommunityPermissionsSettingsPanelEditor.qml feat(communities): integrate token permissions pending state 2023-09-18 15:29:03 +02:00
CommunityTokenViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ContactsListAndSearchPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
CreateChannelPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
DerivationPathInputPage.qml fix(storybook): fix broken pages 2023-10-06 14:59:02 +02:00
DidYouKnowSplashScreenPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
EditAirdropViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
EditCommunityTokenViewPage.qml fix(storybook): fix broken pages 2023-10-06 14:59:02 +02:00
EditNetworkViewPage.qml fix(@desktop/wallet): Edit Networks: Add warning when failover and main rpc are the same 2023-09-05 16:56:27 +02:00
EditOwnerTokenViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
EditPermissionViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
EditSettingsPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
EnableShardingPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ExportControlNodePopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
FeeRowPage.qml fix: Gradient mask of replied message doesn't work 2023-09-20 10:46:25 +02:00
FeesBoxPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
FeesPanelPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
FinaliseOwnershipDeclinePopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
FinaliseOwnershipPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
HoldingsDropdownPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ImagesGridViewPage.qml feat(Storybook): read Figma links directly from pages 2023-10-03 21:32:41 +02:00
ImportControlNodePopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
InDropdownPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
InlineNetworksComboBoxPage.qml chore(Communities): Refactor amounts handling for displaying, minting, airdropping and burning 2023-08-17 11:26:25 +02:00
IntroPanelPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
InviteFriendsToCommunityPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
JoinCommunityPermissionsEditor.qml feat(communities): add check permissions pending state 2023-08-08 08:58:26 +02:00
JoinCommunityViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
JoinPermissionsOverlayPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
KickBanPopupPage.qml feat(Communities): Integrate kick/ban actions with token holders list 2023-09-01 14:11:31 +02:00
LanguageCurrencySettingsPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
LinkPreviewCardPage.qml feat(LinkPreviews): Integrate Link previews with the backend (#12523) 2023-10-25 18:20:02 +03:00
LinkPreviewMiniCardPage.qml feat(LinkPreviews): Integrate Link previews with the backend (#12523) 2023-10-25 18:20:02 +03:00
LinkPreviewSettingsCardPage.qml feat: Add settings card to control link previews settings in chat input 2023-10-12 15:40:01 +03:00
LinksMessageViewPage.qml feat(LinkPreviews): Integrate Link previews with the backend (#12523) 2023-10-25 18:20:02 +03:00
LoginViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ManageShardingPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
MembersDropdownPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
MembersSelectorPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
MembersTabPanelPage.qml Feat/issue 11795 introduce KickedPending and BannedPending states (#12068) 2023-10-05 00:41:51 +03:00
MessageContextMenuPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
MintTokensSettingsPanelPage.qml feat(@desktop/communities): Adjust owner and master tokens deployment flow to new API 2023-10-04 12:08:50 +02:00
MintedTokensViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
NetworkFilterPage.qml fix(MintTokens): Network chosen locks in the network used for all future tokens minted for that community 2023-09-14 16:19:09 +02:00
NetworkSelectPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
OverviewSettingsChartPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
OverviewSettingsFooterPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
OverviewSettingsPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
OwnerTokenWelcomeViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
PasswordViewPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
PermissionConflictWarningPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
PermissionQualificationPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
PermissionsRowPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
PermissionsSettingsPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
PermissionsViewPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
PlaygroundPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
PopupSizingPage.qml fix(StatusDropdown, StatusDialog): height calculation improved 2023-08-03 14:52:19 +02:00
PrivilegedTokenArtworkPanelPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
ProfileAccountsPage.qml feat(@desktop/wallet): Update remove keypair popup to match the Figma 2023-08-10 19:56:59 +02:00
ProfileDialogViewPage.qml fix(@wallet): token not always visible 2023-10-23 16:05:19 +02:00
ProfileFetchingModelEditor.qml fix(storybook): profile fetching updated 2023-01-04 11:15:58 +01:00
ProfileFetchingViewPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
ProfilePopupInviteFriendsPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ProfilePopupInviteMessagePanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ProfileShowcaseAccountsPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ProfileShowcaseAssetsPanelPage.qml fix(@wallet): token not always visible 2023-10-23 16:05:19 +02:00
ProfileShowcaseCollectiblesPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ProfileShowcaseCommunitiesPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
ProfileSocialLinksPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
RemotelyDestructPopupPage.qml fix(Update fees periodically): Implementing periodic fee update for airdrops, minting, self destruct and burning transactions 2023-09-08 23:25:04 +03:00
SendModalPage.qml chore(@desktop/wallet): SendModal: complete storybook flow 2023-10-02 12:27:15 +02:00
SequenceColumnLayoutPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
SettingsPageHeaderPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
SharedAddressesPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
SignTransactionsPopupPage.qml chore(Communities): rename SignMultiTokenTransactionsPopup to SignTransactionsPopup 2023-09-22 10:43:05 +02:00
SortableTokenHoldersListPage.qml fix(TokenHoldersPanel): Added sorting feature 2023-08-08 17:32:49 +03:00
SortableTokenHoldersPanelPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
StatusBlockProgressBarPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusButtonPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
StatusChatInputPage.qml feat(LinkPreviews): Integrate Link previews with the backend (#12523) 2023-10-25 18:20:02 +03:00
StatusChatListAndCategoriesPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusChatListItemPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusCommunityCardPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
StatusDatePickerPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusDateRangePickerPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusDotsLoadingIndicatorPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusEmojiAndColorComboBoxPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusFlowSelectorPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusGroupBoxPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusImageCropPanelPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusInfoBoxPanelPage.qml fix(Minting): After minting completed 1 airdrop button is enabled and the other disabled 2023-08-01 13:20:31 +02:00
StatusInputPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusItemSelectorPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusMessagePage.qml fix: Gradient mask of replied message doesn't work 2023-09-20 10:46:25 +02:00
StatusScrollViewPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
StatusTxProgressBarPage.qml fix(storybook): fix broken pages 2023-10-06 14:59:02 +02:00
SyncingEnterCodePage.qml fix(SyncingEnterCode): tweak to local pairing messaging 2023-10-05 10:12:48 +02:00
SyncingViewPage.qml fix(SyncingEnterCode): tweak to local pairing messaging 2023-10-05 10:12:48 +02:00
TestRunnerControlsPage.qml feat(Storybook): Add tests runner available from the app 2023-10-16 13:37:08 +02:00
TokenHoldersPanelPage.qml fix(TokenHoldersPanel): Added sorting feature 2023-08-08 17:32:49 +03:00
TokenItemPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
TokenListViewPage.qml fix(storybook): fix broken pages 2023-10-06 14:59:02 +02:00
TokenMasterActionPopupPage.qml feat(Communities): TokenMasterActionPopup added for Remote destruct, Kick and Ban actions 2023-08-03 16:26:34 +02:00
TokenPanelPage.qml chore(Communities): Refactor amounts handling for displaying, minting, airdropping and burning 2023-08-17 11:26:25 +02:00
TokenPermissionsPopupPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
TransactionAddressPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
TransactionAddressTilePage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
TransactionDelegatePage.qml fix(storybook): fix broken pages 2023-10-06 14:59:02 +02:00
TransactionDetailViewPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
TransferOwnershipAlertPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
TransferOwnershipPopupPage.qml feat(TransferOwnershipPopup): Updated transfer ownership popup according to new design 2023-09-20 11:08:29 +02:00
UserAgreementPopupPage.qml chore(Storybook): Figma links moved from figma.json to pages 2023-10-03 21:32:41 +02:00
UserListPanelPage.qml Storybook: `PagesModel.qml` removed, adding new pages simplified 2023-08-01 13:10:56 +02:00
UsersModelEditor.qml Adding StatusChatInput to storybook 2022-12-08 12:09:40 +02:00
WalletHeaderPage.qml feat(@desktop/wallet): Include watch only per account 2023-10-13 12:11:36 +02:00