Commit Graph

67 Commits

Author SHA1 Message Date
Mo
0eeb9b7da1 refactor: rename note controller to note view controller 2021-12-27 22:56:21 -06:00
Mo
7f011d7288 fix: sanitize html string (#784) 2021-12-24 10:45:55 -06:00
Mo
ebdae31965 feat: component viewer (#781)
* wip: component viewer

* feat: get component status from component viewer

* fix: remove unused property

* chore(deps): snjs 2.29.0

* fix: import location
2021-12-24 10:41:02 -06:00
Laurent Senta
237cd91acd feat: implement tags folder as experimental feature (#788)
* feat: add tag folders support basics

* feat: add draggability to tags

* feat: add drag & drop draft

* feat: fold folders

* fix: do not select on fold / unfold tags

* style: clean the isValidTag call

* feat: add native folder toggle

* feat: add touch mobile support

* ui: add nicer design & icons

* style: render full-width tag items

* feat: nicer looking dropzone

* style: fix arguments

* fix: tag template rendering in list items

* feat: tag can be dragged over the whole item

* fix: cancel / reset title after save

* fix: disable drag completely when needed

* fix: invalid tag parents

* feat: add paying feature

* feat: with paid feature tooltip

* feat: tag has a plus feature

* feat: add premium modal

* style: simplif code

* refactor: extract feature_state & simplif code

* fix: icons and icons svg

* style: remove comment

* feat: tag folders naming

* feat: use the feature notification

* fix: tag folders copy

* style: variable names

* style: remove & clean comments

* refactor: remove is-mobile library

* feat: tags folder experimental (#10)

* feat: hide native folders behind experimental flag

* fix: better tags resizing

* fix: merge global window

* style: rename params

* refactor: remove level of indirection in feature toggle

* feat: recursively add tags to note on create (#9)

* fix: use add tags folder hierarchy & isTemplateItem (#13)

* fix: use new snjs add tag hierarchy

* fix: use new snjs isTemplateItem

* feat: tags folder premium (#774)

* feat: upgrade premium in tags section

refactor: move TagsSection to react

feat: show premium on Tag section

feat: keep drag and drop features always active

fix: drag & drop tweak with premium

feat: premium messages

fix: remove fill in svg icons

fix: change tag list color (temporary)

style: remove dead code

refactor: clarify names and modules

fix: draggable behind feature toggle

feat: add button in TagSection & design

* feat: fix features loading with app state (#775)

* fix: distinguish between app launch and start

* fix: update state for footer too

* fix: wait for application launch event

Co-authored-by: Laurent Senta <laurent@singulargarden.com>

* feat: tags folder with folder text design (#776)

* feat: add folder text

* fix: sn stylekit colors

* fix: root drop zone

* chore: upgrade stylekit

* fix: hide dropzone when feature is disabled

* chore: bump versions now that they are released

Co-authored-by: Mo <me@bitar.io>

* feat: tags folder design review (#785)

* fix: upgrade design after review

* fix: tweak dropzone

* fix: sync after assign parent

* fix: tsc error on build

* fix: vertical center the fold arrows

* fix: define our own hoist for react-dnd

* feat: hide fold when there are no folders

* fix: show children usability + resize UI

* fix: use old colors for now, theme compat

* fix: tweak alignment and add title

* fix: meta offset with folders

* fix: tweak tag size

* fix: observable setup

* fix: use link-off icon on dropzone

* fix: more tweak on text sizes

Co-authored-by: Mo <me@bitar.io>
2021-12-23 14:34:02 +01:00
Aman Harwara
270fcbc3bc refactor: Move notes_view to React (#761) 2021-12-21 20:31:11 +05:30
Vardan Hakobyan
f120af3b43 feat: handle unprotected session expiration (#779)
* feat: hide note contents if the protection expires when the protected note is open and wasn't edited for a while

* feat: handle session expiration for opened protected note for both plain advanced editors

* fix: if after canceling  session expiry modal only one unprotected note stays selected, show its contents in the editor

* refactor: handle session expiration for opened protected note (move the logic to web client)

* feat: handle the case of selecting "Don't remember" option in session expiry dialog

* test (WIP): add unit tests for protecting opened note after the session has expired

* test: add remaining unit tests

* refactor: move the opened note protection logic to "editor_view"

* refactor: reviewer comments
- don't rely on user signed-in/out status to require authentication for protected note
- remove unnecessary async/awaits
- better wording on ui

* refactor: reviewer's comments:
 - use snjs method to check if "Don't remember" option is selected in authentication modal
 - move the constant to snjs
 - fix eslint error

* refactor: avoid `any` type for `appEvent` payload

* test: add unit tests

* chore: update function name

* refactor: use simpler protection session event types

* refactor: protected access terminology

* refactor: start counting idle timer after every edit (instead of counting by interval in spite of edits)

* test: unit tests

* style: don't give extra brightness to the "View Note"/"Authenticate" button on hover/focus

* chore: bump snjs version

* chore: put snjs "beta" version

* fix: run protection timeout when the note is marked as protected

* chore: snjs version bump

* refactor: immediately lock the note if it's marked as "Protected"

* refactor: rename component, directive and some props

* refactor: remove extra check

* refactor: rename the method

* chore: update snjs version

Co-authored-by: Mo Bitar <me@bitar.io>
2021-12-20 20:54:37 +04: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
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
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
e1e38c65db fix: add ability to subscribe without account (#722) 2021-11-05 10:09:46 -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
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
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
f9b15262c7 feat: Purchase "Create account" & "Sign in" flows and Floating label input (#672) 2021-10-19 14:50:42 +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
Mo Bitar
92699d23f4 fix: func param order 2021-10-07 08:08:38 -05:00
Antonella Sgarlatta
1190ebbe41 fix: use enable unfinished features env var to set enableV4 2021-10-06 16:35:43 -03:00
Vardan Hakobyan
041d437bd4 feat: pass web app version to snjs application (#623)
* feat: store web version in local storage

* feat: pass web app version to snjs application when creating WebApplication

* refactor: pass version in application constructor, remove unnecessary method

* refactor: move global variables declarations to separate files to avoid declaring them in all places where they are used

* refactor: better way to use global variables

* chore: add comment

* chore: make global constants pascal case

* chore: version bump for snjs

* chore: yarn.lock with correct snjs version

* chore: bump snjs version
2021-09-06 10:36:57 +04:00
Gorjan Petrovski
d9c5fd5129 feat: two factor authentication segment in preferences with mocked state (#600) 2021-07-21 12:17:50 +02:00
Antonella Sgarlatta
d4195f8204 chore(version-snjs): 2.7.19 - permissions handling 2021-07-14 19:00:33 -03:00
Antonella Sgarlatta
b1aeaeac41 chore(version-snjs): 2.7.18 2021-07-13 19:23:14 -03:00
Antonella Sgarlatta
f84d789b16 Merge branch 'develop' into feature/account-menu-react 2021-07-12 12:26:51 -03:00
Gorjan Petrovski
a9870214ea feat: implement preferences pane 2021-07-05 16:57:37 +02:00
VardanHakobyan
1e7dbb9b14 Merge remote-tracking branch 'upstream/develop' into account-menu-react 2021-06-09 11:06:42 +04:00
Antonella Sgarlatta
c44c7348e9 Merge branch 'develop' into feature/autocomplete-tags 2021-06-07 14:36:29 -03:00
VardanHakobyan
7f11e25e63 refactor: migrate account-menu to react - implement functionality
- remove all Angular code related to `account-menu`
- rename React component to AccountMenu so that many parts of old code remain unchanged
- code cleanup
2021-06-07 20:30:49 +04:00
VardanHakobyan
3d454dc175 Merge remote-tracking branch 'upstream/develop' into account-menu-react 2021-06-07 17:43:07 +04:00
Karol Sójko
8dde06b93b feat: add alternative server for purposes of switching to API v1 (#571)
* feat: add alternative server for purposes of switching to API v1

* fix: naming of next version sync server host variable
2021-06-07 15:19:26 +02:00
Antonella Sgarlatta
684a3fb0bf feat: add delete tag button and refactor NoteTag to separate component 2021-06-01 20:55:54 -03:00
VardanHakobyan
09f62b68ae refactor: migrate account-menu to react - implement functionality
- implement different handlers, such as set/change/remove passcode, etc.
- setup correct initial values
- rename React component
2021-05-31 22:15:49 +04:00
VardanHakobyan
844b43e2fb refactor: migrate account-menu to react - initial UI 2021-05-26 22:30:32 +04:00
Antonella Sgarlatta
90250d22a3 feat: modify current tags to v4 style 2021-05-20 17:09:11 -03:00
Antonella Sgarlatta
15db4767f5 feat: use pencil off icon for note bar 2021-05-03 16:42:07 -03:00
Antonella Sgarlatta
b70cc0e7e4 feat: add right-click context menu 2021-04-29 17:07:14 -03:00
Antonella Sgarlatta
a1d56abd2e Merge branch 'develop' into feature/multiple-selection 2021-04-28 14:53:15 -03:00
Baptiste Grob
6a52721ea7 feat: delete local backups when signing out 2021-04-14 15:05:33 +02:00
Baptiste Grob
abfc588368 feat: multiple selected notes panel 2021-04-13 14:43:48 +02:00
Baptiste Grob
ed69680295 feat: search options (#540)
* feat: search options

* feat: sanitize folder names

* fix: add cursor: pointer to switch

* fix: explicitly make the search bar a text input

* refactor: remove magic number

* refactor: extract Switch component to its own file

* refactor: split AppState into multiple files

* refactor: review comments
2021-04-06 16:48:25 +02:00
Baptiste Grob
5cd3a7cb09 fix: restore permissions modal 2021-03-26 12:24:36 +01:00
Mo Bitar
cf76e1b42a fix: reload when firefox pinned tab becomes visible (#535)
Co-authored-by: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com>
2021-03-22 18:42:26 +01:00
Baptiste Grob
cc474da0c3 feat: warning for protected note without protection
- Use `.sn-button` everywhere
- Delete permissions modal
- Capitalize "Clear session data"
2021-03-22 16:52:04 +01:00
Baptiste Grob
c084268f51 feat: display warning banner when using the app with no account 2021-02-02 15:40:20 +01:00
Baptiste Grob
42a7cb418c refactor: remove privileges in favor of SNJS protections 2021-01-18 13:40:10 +01:00
Baptiste Grob
3fa8cc103b fix: reload document once if tab is hidden in firefox 2021-01-12 18:17:34 +01:00
Baptiste Grob
2c0f215409 feat: (wip) sessions management 2020-12-16 17:27:26 +01:00
Baptiste Grob
b0ccecbd96 fix: show the beta warning on web 2020-11-20 12:14:39 +01:00
Baptiste Grob
3a16140699 chore(deps): upgrade snjs & sncrypto-web to npm package versions 2020-11-19 13:37:49 +01:00
Baptiste Grob
016b73028d feat: improve bridge and exported types 2020-11-10 16:09:02 +01:00
Baptiste Grob
b2c7afb482 fix: notify beta period end 2020-11-09 12:43:31 +01:00