Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b62413d

Browse files
authored
The Welcome Home Screen: Dedicated Download Apps Dialog (#9120)
* Implement new download apps dialog * Added screenshot test for app download dialog
1 parent 6796375 commit b62413d

File tree

9 files changed

+207
-1
lines changed

9 files changed

+207
-1
lines changed

cypress/e2e/user-onboarding/user-onboarding-new.ts

+9
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ describe("User Onboarding (new user)", () => {
5252
cy.percySnapshot("User onboarding page");
5353
});
5454

55+
it("app download dialog", () => {
56+
cy.get('.mx_UserOnboardingPage').should('exist');
57+
cy.contains(".mx_UserOnboardingTask_action", "Download apps").click();
58+
cy.get('[role=dialog]')
59+
.contains("#mx_BaseDialog_title", "Download Element")
60+
.should("exist");
61+
cy.percySnapshot("App download dialog");
62+
});
63+
5564
it("using find friends action should increase progress", () => {
5665
cy.get(".mx_ProgressBar").invoke("val").then((oldProgress) => {
5766
const findPeopleAction = cy.contains(".mx_UserOnboardingTask_action", "Find friends");

res/css/_components.pcss

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
@import "./views/context_menus/_RoomNotificationContextMenu.pcss";
9595
@import "./views/dialogs/_AddExistingToSpaceDialog.pcss";
9696
@import "./views/dialogs/_AnalyticsLearnMoreDialog.pcss";
97+
@import "./views/dialogs/_AppDownloadDialog.pcss";
9798
@import "./views/dialogs/_BugReportDialog.pcss";
9899
@import "./views/dialogs/_BulkRedactDialog.pcss";
99100
@import "./views/dialogs/_ChangelogDialog.pcss";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
.mx_AppDownloadDialog {
2+
display: flex;
3+
flex-direction: column;
4+
gap: $spacing-32;
5+
color: $primary-content;
6+
7+
.mx_AppDownloadDialog_desktop {
8+
display: flex;
9+
flex-direction: column;
10+
align-items: center;
11+
gap: $spacing-16;
12+
}
13+
14+
.mx_AppDownloadDialog_mobile {
15+
display: flex;
16+
flex-direction: row;
17+
gap: $spacing-24;
18+
19+
.mx_AppDownloadDialog_app {
20+
display: flex;
21+
flex-direction: column;
22+
flex-grow: 1;
23+
flex-basis: 50%;
24+
align-items: center;
25+
gap: $spacing-16;
26+
27+
.mx_QRCode {
28+
padding: $spacing-24;
29+
border: 1px solid $quinary-content;
30+
border-radius: 4px;
31+
align-self: stretch;
32+
display: flex;
33+
align-items: center;
34+
flex-direction: column;
35+
36+
.mx_VerificationQRCode {
37+
height: 144px;
38+
width: 144px;
39+
image-rendering: pixelated;
40+
border-radius: 0;
41+
}
42+
}
43+
44+
.mx_AppDownloadDialog_info {
45+
font-size: $font-12px;
46+
color: $tertiary-content;
47+
}
48+
49+
.mx_AppDownloadDialog_links {
50+
display: flex;
51+
flex-direction: row;
52+
gap: $spacing-8;
53+
54+
.mx_AccessibleButton {
55+
svg {
56+
height: 40px;
57+
}
58+
}
59+
}
60+
}
61+
}
62+
63+
.mx_AppDownloadDialog_legal {
64+
p {
65+
margin: 0;
66+
font-size: $font-12px;
67+
color: $tertiary-content;
68+
}
69+
}
70+
}

res/img/badges/f-droid.svg

+1
Loading

0 commit comments

Comments
 (0)