Commit Graph

83 Commits

Author SHA1 Message Date
Mo Bitar
04136159dc feat: ability to uninstall any extension 2021-11-14 14:27:26 -06:00
Aman Harwara
f6ca7ef2b1 feat: Use new design for signed out pane in preferences (#734) 2021-11-12 22:51:29 +05:30
Aman Harwara
08cd020402 fix: Two-factor activation modal (#736) 2021-11-12 22:47:47 +05:30
Mo Bitar
873aa1558e fix: offline repo handling 2021-11-11 13:51:54 -06:00
Vardan Hakobyan
e833dbfbca Fix/email changed text (#728)
* fix: correct styling for "Email successfully changed" dialog texts

* fix: correct top styling for title
2021-11-10 20:06:31 +04:00
Mo
73b91e5964 fix: reload subscription state after event (#727)
* fix: reload subscription state after event

* chore: yarn.lock

* chore: lint

* fix: hook exhaustive deps
2021-11-09 19:33:10 -06:00
Mo Bitar
0d5e348523 fix: make account settings pane first 2021-11-09 16:43:28 -06:00
Mo Bitar
4b21083229 fix: disable v4 feature checks 2021-11-09 16:41:12 -06:00
Johnny A
261bb65a85 fix: show alert when importing a zip file as a backup (#720)
* fix: show alert when importing a zip file as a backup

* Update app/assets/javascripts/strings.ts

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

Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
Co-authored-by: Mo <mo@standardnotes.org>
2021-11-05 11:31:23 -04:00
Mo
e1e38c65db fix: add ability to subscribe without account (#722) 2021-11-05 10:09:46 -05:00
Aman Harwara
42b3cf5750 feat: Use border-main (#721) 2021-11-05 19:29:54 +05:30
Vardan Hakobyan
bbc81ea276 feat: move extensions from prefs menu's left pane to General->Advanced section (#718) 2021-11-03 22:45:50 +04:00
Vardan Hakobyan
04fab80adb feat: fetch features and store locally for offline users (#706)
* feat: fetch features and store locally for offline users

* feat: handle success and error cases

* refactor: move offline activation code reading/validation to snjs

* chore: update after renaming snjs function

* fix: correct condition for checking offline users

* feat: let users remove their previous offline keys (WIP)

* refactor: handle setOfflineFeatures function response accordingly

* feat: remove corresponding local data when removing offline key

* fix: use snjs' confirm dialog instead of custom one

* feat: show warning before installing extension from untrusted source

* refactor: move functions for validating external feature url and checking if custom server host was used to snjs

* chore: put correct snjs version

* chore: make `eslint-plugin-react-hooks` in yarn.lock to match the `develop` branch

* chore: deps update

* chore: deps update
2021-11-03 22:27:36 +04:00
Gorjan Petrovski
32ced95f72 fix: replace border-gray-300 with a themable colour (#664)
Co-authored-by: Aman Harwara <amanharwara@protonmail.com>
2021-11-01 20:46:14 +05:30
Aman Harwara
4f56c453cb feat: Update "Change Email" and "Change Password" modal designs (#714)
* feat: Add new utility classes

* feat: Update "Change Email" modal design

* feat: Use .sk-input.contrast className to mimic password wizard inputs

* feat: Add explicit labels to password wizard inputs

* feat: Make button sizing consistent

* refactor: Remove unused dependencies

* refactor: Remove unused component
2021-11-01 19:49:06 +05:30
Aman Harwara
db1139fd44 feat: Keep only "Manage subscription" button in account subscription prefs (#711)
* feat: Add DASHBOARD_URL to .env.sample
2021-10-30 21:15:17 +05:30
Johnny A
403fc3f295 fix: empty panel above 'Install Custom Extension' panel (#709)
Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
2021-10-29 15:48:49 -04:00
Mo
fd6d83655c feat: Component toggleability and add toggleable components to quick settings menu (#707)
* feat: toggleable extensions

* fix: return all themes for quick settings

* chore: bump snjs deps

* feat: Use Switch component for toggle in Quick Settings Menu

* feat: Add toggleableComponents to footer_view

* refactor: Change "components" to "toggleableComponents"

* feat: Add checked state to component toggle in quick settings menu
2021-10-27 10:19:42 -05:00
Aman Harwara
53ec0d4742 feat: Add "Manage subscription" button to Subscription preferences (#705)
* feat: Add "Manage subscription" button to Subscription preferences

* Update app/assets/javascripts/preferences/panes/account/subscription/SubscriptionInformation.tsx

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

* feat: Use convertTimestamp function instead of manual conversion in Subscription Info

Co-authored-by: Mo <mo@standardnotes.org>
2021-10-26 21:30:21 +05:30
Gorjan Petrovski
31222e1236 feat(preferences): extension modals into extension panes (#683)
* feat(preferences): show inline extensions in extensions pane

* wip

* wip

* refactor: convert ComponentView to React component

* refactor: convert ComponentView to React component

* chore: fix merge conflicts

* feat: don't show features whose `area` is "room", update modal items' icons in Preferences menu

* chore: fix TS error

* feat: don't show 2FA Manager in modal-based component

* feat: remove `ExtendedDataReloadComplete` event, since Extensions Manger is being removed from the app

* chore: avoid hardcoded values in svg image, optimize `if` condition

* chore: remove remnant comment

* fix: fix typescript errors

Co-authored-by: vardanhakobyan <vardan_live@live.com>
2021-10-25 12:45:36 +04:00
Mo
413fe47828 chore: update all dependencies (#699) 2021-10-22 14:47:41 -05:00
Mo Bitar
7434a870bd fix: disable unimplemented prefs sections 2021-10-21 14:48:34 -05:00
Mo
e79811afda feat: add purchase url (#695)
* feat: add purchase url

* chore: bump snjs

* fix: reuse existing function
2021-10-21 12:41:58 -05:00
Aman Harwara
3a4e2509af feat: Add "Export" and "Duplicate" buttons in notes options menu. (#688)
Co-authored-by: Mough <mo@standardnotes.org>
2021-10-19 15:43:20 +00:00
Aman Harwara
474f1e60e3 fix: "Tools" preferences' toggles not showing correct initial state (#689)
* fix: Tools toggles not showing correct initial state

* Update app/assets/javascripts/preferences/panes/general-segments/Tools.tsx

Co-authored-by: Mough <mo@standardnotes.org>
2021-10-16 15:46:44 -05:00
Antonella Sgarlatta
5b91e41e32 fix: disable change email feature 2021-10-13 17:52:56 -03:00
Antonella Sgarlatta
973abbac2b fix: link buttons border color 2021-10-13 12:53:36 -03:00
Antonella Sgarlatta
99b84e3cda fix: hide some account preferences sections 2021-10-13 11:23:58 -03:00
Antonella Sgarlatta
7bed9a52f7 fix: show subscription info for logged in user and avoid making api call if no account 2021-10-12 15:33:49 -03:00
Gorjan Petrovski
6f18664564 feat(preferences): no-subscription for non logged in users (#676)
* feat(preferences): no-subscription for non logged in users

* fix: check if user has account using application.hasAccount()
2021-10-11 17:29:41 +02:00
Gorjan Petrovski
e0c6aab03d feat(preferences): show latest extension version (#675) 2021-10-11 15:41:15 +02:00
Gorjan Petrovski
d61ff5138b feat(preferences): improve custom extension installation design (#674) 2021-10-11 11:24:54 +02:00
Aman Harwara
f1122f292e feat: New account menu and text input with icon & toggle (#665)
* feat: Add new icons

* Revert "feat: Add new icons"

This reverts commit 0acb403fe846dbb2e48fd22de35c3568c3cb4453.

* feat: Add new icons for account menu

* feat: Add new Icons

* feat: Add "currentPane" state to prefs view

* feat: Update account menu to new design

* feat: Add input component with icon & toggle

* fix: sync icon & function

* fix: Fix eye icon

* feat: Create re-usable checkbox

feat: Add "merge local" option

* feat: Allow using className on IconButton

* feat: Add disabled state on input

feat: Make toggle circle

* refactor: Move checkbox to components

* feat: Handle invalid email/password error

* feat: Implement new design for Create Account

* feat: Implement new account menu design

* feat: Add disabled option to IconButton

* feat: Set account menu pane from other component

* feat: Add 2fa account menu pane

feat: Add lock icon

* feat: Remove unnecessary 2FA menu pane

feat: Reset current menu pane on clickOutside

* feat: Change "Log in" to "Sign in"

* feat: Remove sync from footer

* feat: Change "Login" to "Sign in"

feat: Add spinner to "Syncing..."

refactor: Use then-catch-finally for sync

* feat: Use common enableCustomServer state

* feat: Animate account menu closing

* fix: Reset menu pane only after it's closed

* feat: Add keyDown handler to InputWithIcon

* feat: Handle Enter press in inputs

* Update app/assets/javascripts/components/InputWithIcon.tsx

Co-authored-by: Antonella Sgarlatta <antsgar@gmail.com>

* Update app/assets/javascripts/components/InputWithIcon.tsx

Co-authored-by: Antonella Sgarlatta <antsgar@gmail.com>

* refactor: Use server state from AccountMenuState

* Update app/assets/javascripts/components/AccountMenu/CreateAccount.tsx

Co-authored-by: Antonella Sgarlatta <antsgar@gmail.com>

* Update app/assets/javascripts/components/AccountMenu/ConfirmPassword.tsx

Co-authored-by: Antonella Sgarlatta <antsgar@gmail.com>

* feat: Use common AdvancedOptions

* feat: Add "eye-off" icon and toggle state

* feat: Allow undefined values

* refactor: Remove enableCustomServer state

* feat: Persist server option state

* feat: Add bottom-100 and cursor-auto util classes

refactor: Use bottom-100 and cursor-auto classes

* refactor: Invert ternary operator

* refactor: Remove unused imports

* refactor: Use toggled as prop instead of state

* refactor: Change "Log in/out" to "Sign in/out"

* refactor: Change "Login" to "Sign in"

* refactor: Remove hardcoded width/height

* refactor: Use success class

* feat: Remove hardcoded width & height from svg

* fix: Fix chevron-down icon

Co-authored-by: Antonella Sgarlatta <antsgar@gmail.com>
Co-authored-by: Antonella Sgarlatta <antonella@standardnotes.org>
2021-10-08 11:18:31 -05:00
Gorjan Petrovski
7b6c99d188 feat: extension manager in preferences (#670)
* feat: add extensions pane

* fix: rename extensions folder for MacOS compatibility

* feat: extension toggles and uninstall

* feat: implement extension renaming, activation, deactivation and UI/UX fixes

* feat(preferences): improve extension item design

* feat(preferences): hide custom extension input when installation confirmed
2021-10-08 09:20:46 +02:00
Mo Bitar
92699d23f4 fix: func param order 2021-10-07 08:08:38 -05:00
Antonella Sgarlatta
17fcb0175d Merge branch 'develop' into feat/prefs-defaults 2021-10-05 19:38:52 -03:00
Antonella Sgarlatta
d985e7119e Merge branch 'develop' into feat/open-purchase-flow 2021-10-04 17:50:21 -03:00
Antonella Sgarlatta
e134598c20 feat: open purchase flow 2021-10-04 17:03:20 -03:00
Aman Harwara
1c62d36c1a refactor: Fix label prop 2021-10-04 20:25:09 +05:30
Aman Harwara
980ab9358d refactor: Use removeEditorDefault 2021-10-04 19:12:37 +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
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