Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onboarding Chunk 1 #3056

Merged
merged 157 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
329dff1
feat: upgrade react to v18
yougotwill Feb 12, 2024
1efc5d2
fix: use createRoot instead of ReactDom.render
yougotwill Feb 12, 2024
a098638
refactor: remove unnecessary react imports
yougotwill Feb 13, 2024
0873ed3
fix: pass yarn ready
yougotwill Feb 13, 2024
5d3ce68
feat: add framer-motion
yougotwill Feb 13, 2024
b81d5a3
refactor: clean up remaining global React import calls
yougotwill Feb 13, 2024
fd0a23c
Merge pull request #39 from yougotwill/feat/ses-912/react18_and_frame…
yougotwill Feb 13, 2024
1f5691d
fix: clear unused animation on send button
yougotwill Feb 13, 2024
3250a28
feat: moved spinners into new loading folder
yougotwill Feb 13, 2024
75d51d0
feat: added SessionProgressBar
yougotwill Feb 13, 2024
59c8b6b
feat: load SessionProgressBar component for testing
yougotwill Feb 13, 2024
ccd127d
feat: starting work on new input
yougotwill Feb 14, 2024
fd32fb5
feat: basic ui styling of new input
yougotwill Feb 15, 2024
4e7b2cc
feat: fade in error colors
yougotwill Feb 15, 2024
4de779f
fix: change frame duration to string
yougotwill Feb 15, 2024
a426d78
feat: continue displaying input errors even if the user renters an input
yougotwill Feb 16, 2024
18f5df6
feat: migrate session inputs on registration screen to the new compo…
yougotwill Feb 16, 2024
814d793
fix: show hide button position
yougotwill Feb 19, 2024
8dfdd87
feat: added support for cta button
yougotwill Feb 19, 2024
b10873c
feat: updated tos and privacy policy on registration link
yougotwill Feb 20, 2024
a07fea6
fix: remove TermsOfServicePrivacyDialog from convo state
yougotwill Feb 20, 2024
eaa9817
feat: created onboarding store and added modals slice
yougotwill Feb 20, 2024
131c114
feat: improved TermsOfServicePrivacyDialog styling
yougotwill Feb 20, 2024
cb517b4
feat: added correct links to modal
yougotwill Feb 20, 2024
48ec54e
feat: added responsive hero
yougotwill Feb 21, 2024
9be21ce
Merge branch 'unstable' into feat/ses-897/steps-create-account
yougotwill Feb 21, 2024
4ffd98a
feat: updated hero image
yougotwill Feb 22, 2024
264340a
feat: setup registration slice
yougotwill Feb 22, 2024
7b175b2
feat: replace context with redux slice
yougotwill Feb 22, 2024
a9fcb51
feat: extract back button to separate component
yougotwill Feb 22, 2024
090ddc0
feat: rename onboarding stages for clarity
yougotwill Feb 23, 2024
f6a6b11
feat: updated onboarding header
yougotwill Feb 23, 2024
53dbfcc
feat: updated back button icon
yougotwill Feb 23, 2024
7d14efb
fix: doc string comments for registration slice
yougotwill Feb 23, 2024
eff53a9
feat: renamed stages components to match redux slices
yougotwill Feb 23, 2024
3eb7f24
feat: fix back button positioning relative to related component
yougotwill Feb 26, 2024
4e2101a
feat: setup UI and state for account create display name step
yougotwill Feb 26, 2024
8aac036
feat: updated display name
yougotwill Feb 26, 2024
4910911
fix: rename MAX_USERNAME_BYTES to MAX_NAME_LENGTH to match libsession…
yougotwill Feb 26, 2024
0e64326
fix: replaced session input component with the new one
yougotwill Feb 26, 2024
ec7ab04
refactor: moved related function from registrationstages to createacc…
yougotwill Feb 26, 2024
99a6b10
feat: make sure to set the account create state to done
yougotwill Feb 27, 2024
55d062c
feat: refactored empty message view component
yougotwill Feb 27, 2024
547ab9b
feat: start working on account create success screen
yougotwill Feb 27, 2024
ed92122
feat: finished styling success screen
yougotwill Feb 28, 2024
2245494
fix: empty convo sentence must be on 2 lines
yougotwill Feb 28, 2024
1d5f6b4
feat: update logic for showing the empty convo text
yougotwill Feb 28, 2024
c909969
fix: correct background color on empty message view
yougotwill Feb 28, 2024
adb9166
feat: added svg fill color as well as clip and fill rules to session …
yougotwill Feb 28, 2024
1048a74
feat: move svg props to the icons file
yougotwill Feb 28, 2024
4b97625
feat: updated recovery password bannner
yougotwill Feb 28, 2024
b0e3b0b
feat: styled start conversation button
yougotwill Feb 29, 2024
57ed811
fix: classic light button should go to black on hover
yougotwill Feb 29, 2024
ef0f3ba
feat: updated restore account screen with new design
yougotwill Feb 29, 2024
5e836b9
fix: styled password show hide correctly
yougotwill Mar 1, 2024
7cabdba
feat: added error messages to recovery password input
yougotwill Mar 4, 2024
71e3f82
feat: added both recovery password icon types
yougotwill Mar 4, 2024
eaa2ee1
feat: added in loading animation when restoring an account
yougotwill Mar 4, 2024
6f84d5b
feat: animated progress loader to spec
yougotwill Mar 13, 2024
7d19075
feat: display name screen shows correctly now
yougotwill Mar 13, 2024
9a5958c
feat: moved large useEffect to it's own hook
yougotwill Mar 14, 2024
33a66e8
feat: dont show new account success when restoring
yougotwill Mar 14, 2024
b87c265
feat: fixed alignment of loading screen and updated enter new display…
yougotwill Mar 14, 2024
2c83d41
fix: error handling now works correctly for all stages
yougotwill Mar 14, 2024
8a78762
fix: disable inputs when button is disabled
yougotwill Mar 14, 2024
9750274
feat: confirmed sign up with new display name works
yougotwill Mar 14, 2024
9984846
Merge branch 'unstable' into feat/ses-50/onboarding
yougotwill Mar 14, 2024
bcb926b
feat: started initial work on onboarding step animation
yougotwill Mar 15, 2024
f196bab
feat: intial animation working correctly
yougotwill Mar 19, 2024
e6dedc8
feat: finished fade animation between steps
yougotwill Mar 19, 2024
fd4e152
Merge branch 'unstable' into feat/ses-50/onboarding
yougotwill Mar 19, 2024
a3262d7
feat: attempting to fetch the display name separate from the usual pi…
yougotwill Mar 20, 2024
6a2af3e
feat: added free function to libsession wrappers
yougotwill Mar 21, 2024
7baf6c5
feat: fixed processing the config message next is finishing the reg p…
yougotwill Mar 22, 2024
4de3570
feat: got things working correctly with errors throwing before the ti…
yougotwill Mar 22, 2024
baca07a
feat: moved frontend errors to redux
yougotwill Mar 25, 2024
59eeca8
fix: add missing dispatch for set recovery pw error
yougotwill Mar 25, 2024
b5fccdd
feat: remove pubkey text scrambler
yougotwill Mar 25, 2024
57e002f
feat: sort messages json keys to make merging with strings project ea…
yougotwill Mar 25, 2024
9a756a8
feat: session id to account id
yougotwill Mar 25, 2024
68f8d12
feat: recovery phrase to recovery password
yougotwill Mar 25, 2024
825c617
feat: continue your session and link device to I have an account
yougotwill Mar 25, 2024
db42811
feat: password to lock app
yougotwill Mar 25, 2024
cb6a63f
feat: start page and tos ids updated
yougotwill Mar 26, 2024
8a807a5
feat: new account ids added
yougotwill Mar 26, 2024
09133c3
feat: restore account ids added
yougotwill Mar 26, 2024
5ce8170
Merge branch 'feat/ses-50/onboarding' into feat/ses-899/user_profile_…
yougotwill Mar 26, 2024
b5781b0
feat: replace invalidAccountId with accountIdErrorInvalid
yougotwill Mar 26, 2024
5e79ebc
fix: small fixes from broken branch as we try to debug
yougotwill Mar 26, 2024
76b7c21
feat: depracate getLastProfileUpdateTimestamp
yougotwill Mar 26, 2024
8dceb93
feat: reset onboarding state when we return to the start stage
yougotwill Mar 26, 2024
1b405f5
feat: working on restoring accounts with fetch
yougotwill Mar 26, 2024
e0ca888
fix: got correct order for restoring an account with fetch
yougotwill Mar 26, 2024
8e41d51
feat: restoring an account from seed and fetching seems to work
yougotwill Mar 26, 2024
0385891
feat: cleaned up poll once for display name
yougotwill Mar 26, 2024
c5c06af
fix: use wrapper merge when returning the display name in memory
yougotwill Mar 26, 2024
97cd21a
Merge branch 'unstable' into feat/ses-899/user_profile_poll
yougotwill Mar 27, 2024
c9eac6c
feat: handle failing to find a display name from the swarm
yougotwill Mar 27, 2024
500ab60
fix: cleaned up typings and flattened error callback
yougotwill Mar 27, 2024
a3841d1
fix: dont fade animation between loading states
yougotwill Mar 27, 2024
a38555c
fix: fixed animation for different steps
yougotwill Mar 27, 2024
76390ce
fix: hero image is now correctly responsive for both width and height
yougotwill Apr 2, 2024
1e40f1b
fix: cleanup
yougotwill Apr 2, 2024
d8cc0c7
feat: refactored swarm polling to use only retrieveNextMessages again
yougotwill Apr 2, 2024
45694b9
fix: cleanup
yougotwill Apr 2, 2024
006193f
feat: setup what tests need to be done with TODOs
yougotwill Apr 2, 2024
4c48056
fix: moved resetRegistration out of utils to make unit testing easier
yougotwill Apr 3, 2024
592b7ec
fix: rename Registration_test to Onboarding_test
yougotwill Apr 3, 2024
e8e7c3a
fix: lint fixes
yougotwill Apr 3, 2024
bc19628
Merge branch 'unstable' into feat/ses-1560/unit-tests
yougotwill Apr 3, 2024
a59765d
fix: padding resoluton for onboarding buttons
yougotwill Apr 3, 2024
b291f80
fix: alignment of ShowHideButton
yougotwill Apr 3, 2024
d06a294
feat: added stubbing for window.i18n
yougotwill Apr 5, 2024
238713e
test: displayNameIsValid
yougotwill Apr 5, 2024
ba0a109
test: sanitizeSessionUsername
yougotwill Apr 5, 2024
7e6fb22
test: registerSingleDevice
yougotwill Apr 5, 2024
e97ca2c
test: validity check for signInByLinkedDevice done
yougotwill Apr 8, 2024
e727851
test: finished signInByLinkingDevice
yougotwill Apr 8, 2024
d646233
fix: remove registration test
yougotwill Apr 9, 2024
1a11482
fix: remove pollOnceForOurDisplayName test
yougotwill Apr 9, 2024
0f6d80b
Merge branch 'unstable' into feat/ses-50/onboarding
yougotwill Apr 9, 2024
5cda16d
fix: renamed button modal-confirm to ghost
yougotwill Apr 17, 2024
83e0a61
fix: simplified SpacerStyled component
yougotwill Apr 17, 2024
6d7ebb7
fix: backbuttonwithinincontainer to backbuttonwithincontainer
yougotwill Apr 17, 2024
86baed6
fix: make useRecoveryProgressEffect use a switch for better readability
yougotwill Apr 17, 2024
c1a9614
fix: used better naming for value changed in create account
yougotwill Apr 17, 2024
ca04970
fix: destructure args in sign in methods
yougotwill Apr 17, 2024
bad2172
fix: dont pass redux args to restoration hook
yougotwill Apr 17, 2024
04d053a
fix: used better naming for value changed in restore account
yougotwill Apr 17, 2024
c3334d0
fix: improved check for disabling continue button
yougotwill Apr 17, 2024
6c93639
fix: turn off enableLogRedirect
yougotwill Apr 17, 2024
5a131c5
fix: updated pollOnceForDisplayName
yougotwill Apr 17, 2024
7f03168
fix: remove unneeded catch block for checking if we are online
yougotwill Apr 17, 2024
d05c3e4
feat: converted stagedGenericAttachment to be functional
yougotwill Apr 17, 2024
94bd2ba
chore: bump libsession_util_nodejs to v0.3.3
yougotwill Apr 17, 2024
7b221fe
fix: moved some things outside of the OnboardContainer
yougotwill Apr 17, 2024
dad09a7
fix: compressed all new svgs
yougotwill Apr 18, 2024
ab54407
fix: repaired rounding on upload profile image component
yougotwill Apr 18, 2024
4253197
fix: prevent flickering on EmptyMessageView
yougotwill Apr 18, 2024
efc7901
fix: hr in emptymessageview should not use 0.5px
yougotwill Apr 18, 2024
208d9cc
Merge branch 'unstable' into feat/ses-50/onboarding
yougotwill Apr 18, 2024
2e664bf
fix: right panel transition is now smoother
yougotwill Apr 18, 2024
036f9eb
chore: bump libsession_util_nodejs to v0.3.4
yougotwill Apr 19, 2024
c93cc93
fix: replaced eye svgs with better aligned ones
yougotwill Apr 22, 2024
80a7f15
fix: sessioninput color should be danger when there is an error
yougotwill May 16, 2024
ca14936
fix: use recoveryPasswordOutline for light themes
yougotwill May 16, 2024
36dbec7
fix: match messageNewDescription copy to figma
yougotwill May 16, 2024
f417424
fix: replace setAccountPasswordTitle with lockApp string
yougotwill May 16, 2024
f482710
fix: use correct hero image
yougotwill May 16, 2024
1c12182
fix: welcome message should use text-primary-color for light themes
yougotwill May 17, 2024
bb8ab77
fix: repair placeholder selectors
yougotwill May 17, 2024
e41366b
fix: brand logo in onboard header should not block buttons
yougotwill May 17, 2024
8bebf28
fix: ses-2087 recovery password banner heading is too large
yougotwill Jun 7, 2024
2ca7556
fix: ses-2089 update tos datatestid to open-url to match other platforms
yougotwill Jun 7, 2024
fd2345d
feat: updated hero image
yougotwill Jun 7, 2024
6854694
Merge branch 'unstable' into feat/ses-50/onboarding
yougotwill Jun 7, 2024
bcdfc93
fix: revert swarmpolling to before merging unstable
yougotwill Jun 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
'airbnb-base',
'prettier',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
Expand Down
1,065 changes: 536 additions & 529 deletions _locales/en/messages.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions about_preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ const config = url.parse(window.location.toString(), true).query;
const { locale } = config;
const localeMessages = ipcRenderer.sendSync('locale-data');

window.React = require('react');
window.ReactDOM = require('react-dom');

window.theme = config.theme;
window.i18n = i18n.setupi18n(locale, localeMessages);

Expand Down
2 changes: 1 addition & 1 deletion background.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<body id="body">
<div id="root">
<div class="app-loading-screen">
<div class="content session-full-logo">
<div class="session-full-logo">
<img src="images/session/brand.svg" class="session-brand-logo" />
<img src="images/session/session-text.svg" class="session-text-logo" />
</div>
Expand Down
3 changes: 0 additions & 3 deletions debug_log_preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ const localeMessages = ipcRenderer.sendSync('locale-data');

window._ = require('lodash');

window.React = require('react');
window.ReactDOM = require('react-dom');

window.getVersion = () => config.version;
window.theme = config.theme;
window.i18n = i18n.setupi18n(locale, localeMessages);
Expand Down
Binary file added images/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/party-popper.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 3 additions & 41 deletions images/session/session-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/session/session_shield.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"lodash": "^4.17.20",
"ini": "^1.3.6",
"ejs": "^3.1.7",
"react": "17.0.2",
"@types/react": "17.0.2",
"react": "18.2.0",
"@types/react": "18.2.55",
"glob-parent": "^6.0.1",
"got": "^11.8.5",
"jpeg-js": "^0.4.4",
Expand Down Expand Up @@ -92,10 +92,11 @@
"filesize": "3.6.1",
"firstline": "1.2.1",
"focus-trap-react": "^10.2.3",
"framer-motion": "^11.0.3",
"fs-extra": "9.0.0",
"glob": "7.1.2",
"image-type": "^4.1.0",
"libsession_util_nodejs": "https://github.com/oxen-io/libsession-util-nodejs/releases/download/v0.3.1/libsession_util_nodejs-v0.3.1.tar.gz",
"libsession_util_nodejs": "https://github.com/oxen-io/libsession-util-nodejs/releases/download/v0.3.4/libsession_util_nodejs-v0.3.4.tar.gz",
"libsodium-wrappers-sumo": "^0.7.9",
"linkify-it": "^4.0.1",
"lodash": "^4.17.21",
Expand All @@ -109,9 +110,9 @@
"pify": "3.0.0",
"protobufjs": "^7.2.4",
"rc-slider": "^10.2.1",
"react": "^17.0.2",
"react": "^18.2.0",
"react-contexify": "^6.0.0",
"react-dom": "^17.0.2",
"react-dom": "^18.2.0",
"react-draggable": "^4.4.4",
"react-h5-audio-player": "^3.2.0",
"react-intersection-observer": "^9.7.0",
Expand Down Expand Up @@ -158,8 +159,8 @@
"@types/mocha": "5.0.0",
"@types/node-fetch": "^2.5.7",
"@types/pify": "3.0.2",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@types/react-redux": "^7.1.24",
"@types/react-virtualized": "9.18.12",
"@types/redux-logger": "3.0.7",
Expand Down
2 changes: 1 addition & 1 deletion password.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<body>
<div id="root">
<div class="app-loading-screen">
<div class="content session-full-logo">
<div class="session-full-logo">
<img src="images/session/brand.svg" class="session-brand-logo" />
<img src="images/session/session-text.svg" class="session-text-logo" />
</div>
Expand Down
3 changes: 0 additions & 3 deletions password_preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ const config = url.parse(window.location.toString(), true).query;
const { locale } = config;
const localeMessages = ipcRenderer.sendSync('locale-data');

window.React = require('react');
window.ReactDOM = require('react-dom');

// If the app is locked we can't access the database to check the theme.
window.theme = 'classic-dark';
window.primaryColor = 'green';
Expand Down
3 changes: 0 additions & 3 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,6 @@ setInterval(() => {
window.nodeSetImmediate(() => {});
}, 1000);

window.React = require('react');
window.ReactDOM = require('react-dom');

window.clipboard = clipboard;

window.getSeedNodeList = () =>
Expand Down
21 changes: 21 additions & 0 deletions stylesheets/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,27 @@ a {
animation: loading 1500ms ease infinite 666ms;
}
}

.session-full-logo {
display: flex;
flex-direction: column;
align-items: center;
margin: auto;

.session-brand-logo {
height: 180px;
filter: brightness(0) saturate(100%) invert(75%) sepia(84%) saturate(3272%) hue-rotate(103deg)
Bilb marked this conversation as resolved.
Show resolved Hide resolved
brightness(106%) contrast(103%);
}

.session-text-logo {
margin-top: 10px;
width: 250px;
transition: 0s;
filter: var(--session-logo-text-current-filter);
}
}

.session-text-logo {
filter: var(--session-logo-text-current-filter);
}
Expand Down
58 changes: 0 additions & 58 deletions stylesheets/_session.scss
Original file line number Diff line number Diff line change
Expand Up @@ -444,64 +444,6 @@ label {
}
}

.session-loader {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
flex-shrink: 0;

div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: var(--primary-color);
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
div:nth-child(1) {
left: 8px;
animation: session-loader1 0.6s infinite;
}
div:nth-child(2) {
left: 8px;
animation: session-loader2 0.6s infinite;
}
div:nth-child(3) {
left: 32px;
animation: session-loader2 0.6s infinite;
}
div:nth-child(4) {
left: 56px;
animation: session-loader3 0.6s infinite;
}
@keyframes session-loader1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes session-loader3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes session-loader2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
}

.session-settings {
width: 100%;
height: 100%;
Expand Down
22 changes: 0 additions & 22 deletions stylesheets/_session_conversation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,28 +115,6 @@
}
}

.send-message-button {
animation: fadein var(--default-duration);

&---scale {
animation: scaling 2s ease-in-out;

@keyframes scaling {
0% {
transform: scale(1);
}

80% {
transform: scale(1.3);
}

100% {
transform: scale(1);
}
}
}
}

.session-recording {
height: var(--composition-container-height);
display: flex;
Expand Down
30 changes: 0 additions & 30 deletions stylesheets/_session_left_pane.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,33 +140,3 @@ $session-compose-margin: 20px;
}
}
}

.conversation.placeholder {
margin: auto;
height: 100%;

.container {
display: flex;
height: 100%;
}
}

.session-full-logo {
display: flex;
flex-direction: column;
align-items: center;
margin: auto;

.session-brand-logo {
height: 180px;
filter: brightness(0) saturate(100%) invert(75%) sepia(84%) saturate(3272%) hue-rotate(103deg)
brightness(106%) contrast(103%);
}

.session-text-logo {
margin-top: 10px;
width: 250px;
transition: 0s;
filter: var(--session-logo-text-current-filter);
}
}
Loading
Loading