Commit Graph

11 Commits

Author SHA1 Message Date
Gorjan Petrovski
091842555f fix: use theme-modifiable colors (#658) 2021-09-29 18:08:43 +02:00
Aman Harwara
e72d737220 feat: Add Listed pane in preferences (#651)
* feat: Add Listed pane in preferences

* feat: Add list of blogs in Listed preferences

feat: Allow custom classnames in LinkButton

feat: Add mt-0 class

* fix: Don't show non-Listed Action Extensions

* fix: Use streamItems()

* fix: Re-render UI when item is deleted

* feat: Remove hardcoded margin-top for LinkButton

* fix: Fix ESLint exhaustive-deps error

* fix: Use useCallback hook

feat: Disconnect shows state "Disconnecting..." when deleting item

* fix: Remove unused imports

* fix: Simplify disconnect function

fix: Use key in the correct place

* feat: Add confirmation dialog when deleting a blog

feat: Show Blog/Blogs in the title depending on the
number of items

* style: Revert file to original formatting

* refactor: Use preact instead of react

refactor: Use FunctionalComponent type

* feat: Show alert when disconnecting errors out

fix: Set state to false even if errors

refactor: Use ternary operator for Getting
Started section

* feat: Load Listed blog actions asynchronously

* feat: Only fetch actions if not already available

* refactor: Use async/await for disconnecting

Co-authored-by: Mo Bitar <mo@standardnotes.org>
2021-09-29 11:02:30 -05:00
Gorjan Petrovski
3867f625f1 feat(preferences): error reporting segment (#652)
* feat(preferences): error reporting segment

* feat(preferences): move error reporting to general pane
2021-09-28 18:08:27 +02:00
Gorjan Petrovski
b312df41a6 feat(preferences): not logged in segment (#649)
* feat(preferences): not logged in segment

* Update app/assets/javascripts/preferences/panes/account/Authentication.tsx

Co-authored-by: Mo Bitar <mo@standardnotes.org>

* Update app/assets/javascripts/preferences/panes/account/Authentication.tsx

Co-authored-by: Mo Bitar <mo@standardnotes.org>

Co-authored-by: Mo Bitar <mo@standardnotes.org>
2021-09-27 18:01:12 +02:00
Gorjan Petrovski
77525a56cd feat: implement UI for logging out (#638)
* feat: implement UI for logging out

* feat: use old style dialogs for logout confirmation

* feat: implement manage sessions

* feat: implement session logout success dialog

* feat: use snjs alert for revoking sessions confirmation

* fix: make OtherSessionsLogout easier to read
2021-09-21 19:01:32 +02:00
Gorjan Petrovski
8fb34f2e85 feat: improve 2fa styles based on feedback (#635)
* feat: improve 2fa styles based on feedback

* fix: preferences panes and dialogs electron compatibility

* fix: no horizontal line when opening two factor activation

* feat: improve two factor activation styles

* feat: further 2fa style improvements

* feat: padding 2fa widgets

* feat: add padding between QR code and content

* feat: refresh 2fa after passcode confirmation

* feat: don't autocomplete passwords for DecoratedInput
2021-09-17 18:14:53 +02:00
Vardan Hakobyan
b0ed19d6a3 feat: implement credentials information on Prefs -> Account pane (#632)
* feat: implement prefs -> credentials section UI (w/o backend integration)

* feat: implement credentials information on Prefs -> Account pane

- implement email changing UI (w/o backend integration)
- implement password changing UI and reuse existing change password logic
- replace 2FA dialog with shared one
- implement React hook for preventing window refresh

* fix: provide correct types

* refactor: reuse styles from stylekit, rename components and create enum for input types

* refactor: update default exports to named ones, correct texts

* chore: remove unnecessary depenedency

* chore: yarn.lock without unnecessary packages

* Revert "chore: yarn.lock without unnecessary packages"

This reverts commit 64aa75e8408b06884d6e7383180292a4a9a3e8ad.
2021-09-09 19:23:21 +04:00
Gorjan Petrovski
7b1499d75e feat: disabled 2fa feature (#631)
* feat: add dim and blur to unavailable 2fa

* feat: message over disabled 2FA

* feat: 2fa remove overlay and dimming

* fix: add newline to _ui,css

* fix: tsc errors

* Update app/assets/javascripts/preferences/panes/two-factor-auth/TwoFactorAuthView.tsx

Co-authored-by: Vardan Hakobyan <vardan_live@live.com>

* refactor: rename s to status

Co-authored-by: Vardan Hakobyan <vardan_live@live.com>
2021-09-09 16:28:37 +02:00
Gorjan Petrovski
1294b94117 feat: integrate two factor authentication (#626)
* feat: integrate SNJS MFA with web

* fix: create rudimentary typings file for qrcode.react

* chore: lint fixes

* fix: address PR feedback

* fix: address PR feedback

* fix: address PR feedback 2

* fix: replace spread props on TwoFactorAuthWrapper component

* chore: change null check to undefined check
2021-09-06 17:15:34 +02:00
Gorjan Petrovski
84bb17ba1d feat(preferences): 2FA activation dialog with mocked state (#605) 2021-07-27 11:32:07 +02:00
Gorjan Petrovski
d9c5fd5129 feat: two factor authentication segment in preferences with mocked state (#600) 2021-07-21 12:17:50 +02:00