Commit Graph

1579 Commits

Author SHA1 Message Date
Aman Harwara
980ab9358d refactor: Use removeEditorDefault 2021-10-04 19:12:37 +05:30
Aman Harwara
170234ce84 refactor: Use PascalCase naming 2021-10-04 19:12:11 +05:30
Aman Harwara
fc226043fa Update app/assets/javascripts/components/Dropdown.tsx
Co-authored-by: Antonella Sgarlatta <antsgar@gmail.com>
2021-10-04 19:00:57 +05:30
Aman Harwara
24289a9322 Revert "refactor: Move functions inside component"
This reverts commit ce1c519053.
2021-10-01 21:33:40 +05:30
Aman Harwara
ce1c519053 refactor: Move functions inside component
refactor: Remove application param as it is
already present in component props
2021-10-01 21:15:38 +05:30
Aman Harwara
7aea7f330c refactor: Sort editor array after concat 2021-10-01 21:07:26 +05:30
Aman Harwara
b4b1e42606 refactor: Use enum instead of string 2021-10-01 20:46:00 +05:30
Aman Harwara
c48d9f2230 refactor: Use identifier instead of name
feat: Create EditorIdentifier enum
2021-10-01 20:39:52 +05:30
Aman Harwara
f6c019b63c feat: Remove references of default editor 2021-10-01 20:38:58 +05:30
Aman Harwara
db888c4e02 fix: Fix dropdown item colors 2021-10-01 20:04:39 +05:30
Aman Harwara
47b49aa7a9 feat: Add support for icons in Dropdown 2021-10-01 13:06:00 +05:30
Aman Harwara
1a92fffcd4 feat: Remove Set Default & Undefault buttons 2021-10-01 11:46:56 +05:30
Aman Harwara
a98409a95f feat: Dropdown component
feat: Add editor icons

feat: Implement default editor selection
2021-10-01 00:29:32 +05:30
Aman Harwara
b4fcc993aa feat(preferences): Defaults segment
feat: Dropdown component
2021-09-30 20:50:44 +05:30
Aman Harwara
7dbfa2fde0 feat(preferences): Tools segment (#657) 2021-09-29 12:51:48 -05:00
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
0e5692d8ab feat: slim account menu and icon buttons (#655)
* feat: footer icon for preferences menu

* feat: account footer icon

* feat: account menu icon and slimmed down account menu
2021-09-29 17:52:27 +02: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
150f7a7835 feat(preferences): close preferences with Esc button (#647)
* feat(preferences): close preferences with Esc button

* feat: use ioService for escape key handling
2021-09-27 11:55:52 +02:00
Gorjan Petrovski
f12bb7b7e8 feat: update email for help and feedback (#648) 2021-09-27 11:51:14 +02:00
Gorjan Petrovski
97d667a46f feat-preferences: data backup export and import (#646)
* feat: data backups initial implementation

* feat: improve data backups design in preferences

* feat: split import backup in multiple segments

* feat(preferences): move import backup spinner next to import button

* fix(data-backups): padding between radio btn and buttons
2021-09-27 11:34:37 +02:00
Gorjan Petrovski
5f65d2eca7 feat: implement Protections in prefs (#645) 2021-09-23 17:34:59 +02:00
Gorjan Petrovski
73f03e6ea6 feat: passcode lock in preferences (#644)
* feat: implement existing passcode lock in prefs

* chore: cleanup commented code and unused imports

* feat: improve design for passcode lock

* fix: propert folder naming

* feat: passcode lock form buttons margin
2021-09-23 17:25:39 +02:00
Gorjan Petrovski
52ddb49bd7 fix: encryption status title (#643)
* fix: encryption status title

* fix: derive encryption status directly from appState and application

* Update app/assets/javascripts/preferences/panes/Encryption.tsx

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

Co-authored-by: Mo Bitar <mo@standardnotes.org>
2021-09-22 17:23:15 +02:00
Gorjan Petrovski
30deea79b2 feat: encryption status dynamic string (#642) 2021-09-22 16:27:51 +02:00
Gorjan Petrovski
7b5b78832a feat: implement encrypted items info (#641)
* feat: implement encrypted items info

* Update app/assets/javascripts/ui_models/app_state/account_menu_state.ts

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

* Update app/assets/javascripts/ui_models/app_state/account_menu_state.ts

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

* Update app/assets/javascripts/preferences/panes/EndToEndEncryption.tsx

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

* Update app/assets/javascripts/preferences/panes/EndToEndEncryption.tsx

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

Co-authored-by: Mo Bitar <mo@standardnotes.org>
2021-09-22 15:56:34 +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
a9610fdbc6 feat: implement spinner for 2fa loading (#640) 2021-09-21 18:11:58 +02:00
Gorjan Petrovski
8464824c61 feat: use existing change password wizard in preferences (#639) 2021-09-21 17:36:52 +02:00
Mo Bitar
e6e01d0f2c fix: remove code already handled by snjs (#633) 2021-09-17 11:16:16 -05: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
Antonella Sgarlatta
78f5bcfb46 Merge branch 'develop' into feature/subscription-info-in-preferences 2021-09-15 17:04:48 -03:00
Karol Sójko
d5be258b25 Merge branch 'hotfix/3.8.22' into develop 2021-09-14 13:59:56 +02:00
Karol Sójko
f5c6eafbc0 fix: syncing-server-demo url 2021-09-14 13:59:41 +02:00
Antonella Sgarlatta
ccb80ed6da Merge branch 'develop' into feature/subscription-info-in-preferences 2021-09-13 12:05:23 -03:00
Antonella Sgarlatta
b3f2d77846 chore(version-snjs): 2.14.1 2021-09-13 12:02:30 -03:00
Karol Sójko
6afce84324 feat: add changing email (#634) 2021-09-13 10:01:32 +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
Antonella Sgarlatta
8993c7b951 Merge branch 'develop' into feature/subscription-info-in-preferences 2021-09-09 11:37:45 -03: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
Antonella Sgarlatta
2696f5b735 refactor: merge active and cancelled components into one 2021-09-07 15:11:27 -03:00
Antonella Sgarlatta
dee0c74ebb Update app/assets/javascripts/preferences/panes/account/subscription/subscription_state.tsx
Co-authored-by: Mo Bitar <mo@standardnotes.org>
2021-09-07 14:37:37 -03:00
Antonella Sgarlatta
d5e77d71b6 Merge branch 'develop' into feature/subscription-info-in-preferences 2021-09-07 13:14:44 -03:00
Antonella Sgarlatta
41257977a7 fix: fix state and add loading state 2021-09-07 13:14:12 -03:00
Antonella Sgarlatta
99ef854ae8 fix: set mobx store as local state 2021-09-07 12:06:25 -03:00
Antonella Sgarlatta
28dab13fb1 refactor: use mobx for state and separate files for components 2021-09-07 12:04:25 -03:00
Antonella Sgarlatta
1b87df18bc feat: get plan name from subscriptions endpoint 2021-09-07 11:19:51 -03: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