Commit Graph

273 Commits

Author SHA1 Message Date
Aman Harwara
024d44f1ff fix: Password toggle triggering on Enter when checkbox is focused (#767) 2021-12-09 23:18:52 +05:30
Aman Harwara
dc9dc104c9 feat: Always show quick settings menu (#765) 2021-12-08 20:40:56 +05:30
Johnny A
306441ed3a fix: note stats (#743)
* fix: note stats

* fix: show word count if note is plain or markdown

Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
2021-12-07 15:22:39 -04:00
Laurent Senta
c27dce1ab7 style: with prettier (#762)
* style: use pretty quick on staged files

* style: test edit utils

* style: try with lint-staged

* style: test lint application
2021-12-06 15:27:18 +01:00
Aman Harwara
31c48af01c feat: Add "Pin selected notes" button to editor title bar (#760) 2021-12-06 14:47:35 +05:30
Aman Harwara
d7c36da2b2 fix: Width transition on manually resizing sections (#759) 2021-12-03 19:41:13 +05:30
Mo Bitar
1a138ef83d fix: remove redundant check in template 2021-12-02 13:07:28 -06:00
Aman Harwara
9730006cba feat: Nativize "No distraction" theme as "Focus Mode" (#758)
Co-authored-by: Mo Bitar <me@bitar.io>
2021-12-02 22:34:57 +05:30
Vardan Hakobyan
a8f949e8c5 Chore/setup testing environment (#755)
* chore: setup environment for unit tests

* fix: remove extra character from json
2021-11-30 19:01:51 +04:00
Laurent Senta
4d8ba3320a refactor: move tags to react (#753)
* refactor: move Tags list to react

* refactor: extract TagsListItem and simplify hooks

* refactor: remove comment & dead code

* fix: mobx warnings & safari bug

* fix: text select on non-safari

* fix: remove unecessary comments

* style: apply prettier format

* style: apply formatting on tags_view

* refactor: remove the angular tags rendering

* feat: add back the "select previous tag" behavior

* style: simplify code and avoid important

* style: remove note on state
2021-11-29 17:33:00 +01:00
Mo Bitar
6f3a749e52 fix: default to feature status entitled to avoid temporarily flashing error 2021-11-26 18:29:00 -06:00
Aman Harwara
21433b5544 feat: Change bg color when focusing tag instead of border (#751) 2021-11-26 18:37:29 +05:30
Mo
cf3664751f feat: display feature status (#745)
* feat: display feature status

* fix: hook dep

* fix: react hooks dep
2021-11-22 11:39:14 -06:00
Vardan Hakobyan
0193eea1f5 fix: show correct "Last modified date" for note (#742)
Co-authored-by: Aman Harwara <amanharwara@protonmail.com>
2021-11-16 18:19:53 +04:00
Aman Harwara
e16e817747 fix: Remove HTML tags before counting words for a note (#739) 2021-11-16 19:19:28 +05:30
Aman Harwara
60eeee385d feat: Add note ID for errored notes in note options (#737) 2021-11-15 19:04:18 +05:30
Mo Bitar
dee60e0fae fix: extension url validation 2021-11-14 11:26:57 -06:00
Mo Bitar
76258f5462 fix: component expiration for custom extensions 2021-11-12 12:21:04 -06:00
Aman Harwara
08cd020402 fix: Two-factor activation modal (#736) 2021-11-12 22:47:47 +05:30
Mo Bitar
ba4fbd1c0a fix: unmount component on destroy 2021-11-10 08:30:38 -06:00
Aman Harwara
88cc50e8b6 fix: Fix icon colors to be more themeable (#724) 2021-11-06 19:29:03 +05:30
Aman Harwara
2fdb748bab fix: Change bg-neutral to bg-border (#723) 2021-11-05 20:43:27 +05:30
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
Aman Harwara
bad87a4f2f feat: Replace border-gray-300 with border-neutral (#716) 2021-11-02 19:55:28 +05:30
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
5da51048bf feat: Use toggle switch for layerable themes in quick settings menu (#712)
* feat: Add px-0 utlility class
2021-10-30 21:22:46 +05:30
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
Mo Bitar
0c332d8b5e Merge branch 'develop' of github.com:standardnotes/web into develop 2021-10-26 10:21:29 -05:00
Mo Bitar
dbb2598f81 feat: default to delete permanently option for errored note 2021-10-26 10:21:23 -05:00
Vardan Hakobyan
b898e886a5 feat: remove broadcasting Extensions Manager events from ComponentView (#703)
* feat: remove `broadcast` from `ComponentView`

As "Extensions Manager" is removed, the related events' broadcasting is not needed anymore

* fix: restore `manualDealloc`
2021-10-25 17:08:37 +04:00
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
Aman Harwara
f4949249f2 feat: Use Menu component in the general account menu (#698) 2021-10-22 19:46:25 +05:30
Aman Harwara
397e4963bd feat: Update notes list options menu to new design (#687)
feat: Implement initial Menu component functionality.
2021-10-19 16:07:47 +00: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
f9b15262c7 feat: Purchase "Create account" & "Sign in" flows and Floating label input (#672) 2021-10-19 14:50:42 +00:00
Aman Harwara
7f1dddf2d2 feat: Add note attributes to notes options menu (#681) 2021-10-19 14:42:13 +00:00
Aman Harwara
29138ea597 fix: Fix spacing in "Help & feedback" button in general account menu (#693) 2021-10-19 13:36:57 +00:00
Aman Harwara
c8dc07d42b feat: Add quick settings menu with theme switcher and other changes (#673)
Co-authored-by: Mo Bitar <mo@standardnotes.org>
Co-authored-by: Antonella Sgarlatta <antsgar@gmail.com>
2021-10-19 04:28:46 +00:00
Aman Harwara
3953713f45 feat: Add app version & server to account menu (#682)
* feat: Add app version & server to account menu

* fix: Fix email bottom margin

* fix: Fix spacing of email & server in account menu

* feat: Move version to right of "Help & Feedback" button
2021-10-15 09:16:08 -05:00
Antonella Sgarlatta
618c2c6dae fix: preferences pane buttons border color 2021-10-13 12:13:13 -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
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
Aman Harwara
f233c87b0f refactor: Change srLabel to label 2021-10-04 20:22:19 +05:30
Aman Harwara
be047ebe65 Merge branch 'develop' into feat/prefs-defaults 2021-10-04 19:22:44 +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
Gorjan Petrovski
d89f6bfac1 fix: remove unused vars in account menu (#659) 2021-10-04 11:04:08 +02:00