Commit Graph

2684 Commits

Author SHA1 Message Date
Karol Sójko
d383f2f804 fix: cancel in-progress workflows for concurrency deployment groups 2021-12-29 20:55:22 +01:00
Mo
f3d52e9d56 Merge branch 'release/10.5.0' 2021-12-28 10:52:29 -06:00
Mo
0a8286ffec chore: bump version to 3.9.11 2021-12-28 10:51:52 -06:00
Mo
4149b03312 chore(deps): snjs + features 2021-12-28 10:49:28 -06:00
Mo
0eeb9b7da1 refactor: rename note controller to note view controller 2021-12-27 22:56:21 -06:00
Mo
15aea42d4f chore: rename editor model to note controller 2021-12-27 18:46:56 -06:00
Mo
54e5fc9184 fix: associate new note with default editor 2021-12-27 18:23:53 -06:00
Mo
06fae3acda fix: debounce editor reloading to handle fast fire 2021-12-27 16:29:18 -06:00
Mo
3140b17c20 fix: only create new placeholder if no editor is open 2021-12-27 16:01:45 -06:00
Mo
c9e448c7b6 fix: focus new note on create (#791) 2021-12-27 15:42:48 -06:00
Mo
07678bbd32 fix: showing saving status on first load 2021-12-27 15:23:56 -06:00
Mo
5e90bf06c3 Merge branch 'release/10.4.0' 2021-12-27 12:04:59 -06:00
Aman Harwara
8db81d5c5c fix: Panel resizing when using non-Plain editor (#790) 2021-12-27 20:29:52 +05:30
dependabot[bot]
8cecc48bfc chore(deps-dev): bump puma from 4.3.5 to 4.3.9 (#677)
Bumps [puma](https://github.com/puma/puma) from 4.3.5 to 4.3.9.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v4.3.5...v4.3.9)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-24 10:49:07 -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
Laurent Senta
4a5a202a37 Merge branch 'hotfix/10.3.2' into develop 2021-12-22 16:26:03 +01:00
Laurent Senta
1e19e6ff2e Merge branch 'hotfix/10.3.2' 2021-12-22 16:24:51 +01:00
Laurent Senta
80bd684e64 fix: tags do not count orphan refs 2021-12-22 16:22:00 +01:00
Aman Harwara
94b9ff5032 fix: Account switcher icon proportions (#783) 2021-12-21 23:38:52 +05:30
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
Karol Sójko
eb4c8d0091 fix: change naming of publishing feature branches to beta branches 2021-12-15 16:24:54 +01:00
Karol Sójko
a63f6ca6b2 fix: add option to dispatch beta deployment 2021-12-15 15:31:08 +01:00
Karol Sójko
0c766d0554 fix: snjs version to latest release 2021-12-15 15:29:01 +01:00
Karol Sójko
2e168df929 Revert "feat: handle unprotected session expiration (#747)"
This reverts commit 8db549f6f6.
2021-12-15 15:26:31 +01:00
Karol Sójko
0e4757d426 Revert "chore: use snjs beta package"
This reverts commit c59f85f498.
2021-12-15 15:26:22 +01:00
Karol Sójko
8d8be26028 fix: beta workflow name 2021-12-15 15:25:45 +01:00
Karol Sójko
46e8348ea2 feat: add beta deployment on feature branches 2021-12-15 12:53:37 +01:00
Mo Bitar
c59f85f498 chore: use snjs beta package 2021-12-14 12:53:27 -06:00
Vardan Hakobyan
8db549f6f6 feat: handle unprotected session expiration (#747)
* 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

Co-authored-by: Mo Bitar <me@bitar.io>
2021-12-14 19:14:01 +04:00
Karol Sójko
f494b106b9 Merge branch 'hotfix/10.3.1' into develop 2021-12-14 10:15:18 +01:00
Karol Sójko
b601daf886 Merge branch 'hotfix/10.3.1' 2021-12-14 10:15:15 +01:00
Karol Sójko
36588c102f fix: upgrade snjs to allow demo to access dev extensions server 2021-12-14 10:15:02 +01:00
Mo
a15014f003 Component view refactor (#770)
* refactor: simplify component-view lifecycle callbacks

* fix: reintroduce exhaustive-deps
2021-12-13 11:16:14 -06:00
Mo Bitar
397cdce19b Merge branch 'release/10.3.0' 2021-12-10 11:59:20 -06:00
Mo Bitar
d5f75fee84 deps(snjs): 2.20.3 2021-12-10 11:56:00 -06:00
Aman Harwara
b29dc8ecc6 fix: Last sync date padding (#768) 2021-12-10 19:06:35 +05:30
Aman Harwara
24c6b831c6 feat: Multiple minor changes (#769) 2021-12-10 18:58:29 +05:30
Aman Harwara
024d44f1ff fix: Password toggle triggering on Enter when checkbox is focused (#767) 2021-12-09 23:18:52 +05:30
Mo Bitar
1f09a013e2 Merge branch 'release/10.2.0' 2021-12-09 08:26:47 -06:00
Mo Bitar
0f05da435c release: 3.9.8 2021-12-09 08:01:38 -06:00
Mo Bitar
0ad65befb0 deps(snjs): 2.20.1 2021-12-08 22:23:57 -06:00
Aman Harwara
dc9dc104c9 feat: Always show quick settings menu (#765) 2021-12-08 20:40:56 +05:30
Aman Harwara
e6087de709 fix: UI shiting when opening dropdown with a lot of items (#764) 2021-12-08 19:07:43 +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
Mo Bitar
de0b04b5ef Merge branch 'hotfix/10.1.3' into develop 2021-12-07 10:49:33 -06:00
Mo Bitar
c8506648fa Merge branch 'hotfix/10.1.3' 2021-12-07 10:49:27 -06:00
Mo Bitar
9256193c66 fix: handle case in preferences where component name can be undefined, causing exception that makes preferences UI unresponsive 2021-12-07 10:49:06 -06:00