Commit Graph

8801 Commits

Author SHA1 Message Date
Abdullah Atta
dc79c274df web: auto save backup on desktop 2022-10-17 22:42:09 +05:00
Abdullah Atta
d35d355fb3 web: move backup time forward when it is skipped 2022-10-17 22:39:54 +05:00
Abdullah Atta
6bf14512f9 core: fix cannot read property title of undefined 2022-10-17 22:38:50 +05:00
Abdullah Atta
0d20013071 core: do not check premium status during tag addition 2022-10-17 22:37:48 +05:00
Abdullah Atta
cf8ed91102 core: use migrations to dedup shortcuts 2022-10-17 22:37:23 +05:00
Abdullah Atta
577d50b512 core: move index migrations to main database migrations
this is better design wise as we won't have to keep checking if the
indices have been migrated or not. We'll just check the database version
and do the appropriate migrations based on that.
2022-10-17 22:36:53 +05:00
Abdullah Atta
1a589b0955 core: refactor migrations to use items instead of types 2022-10-17 20:00:00 +05:00
Abdullah Atta
fdcb8f107f web: minor ui fixes 2022-10-17 19:54:20 +05:00
Abdullah Atta
bb0341ee74 web: fix custom scrollbars on firefox & other browsers 2022-10-17 10:39:22 +05:00
Ammar Ahmed
7f3803a771 Merge pull request #1208 from streetwriters/fix-android-13-notifications
fix android 13 notifications
2022-10-17 08:29:26 +05:00
Ammar Ahmed
a0506ccc80 Merge pull request #1206 from streetwriters/fix-toast-tap
fix toast not hiding on tap on mobile
2022-10-17 08:29:14 +05:00
Ammar Ahmed
e8be040b48 Merge pull request #1204 from streetwriters/automate-migration
Automate migration when possible
2022-10-17 08:29:00 +05:00
ammarahm-ed
16f8172d42 mobile: fix android 13 notifications 2022-10-15 13:22:59 +05:00
ammarahm-ed
16915494d8 mobile: fix toast not hiding on tap 2022-10-14 18:50:50 +05:00
ammarahm-ed
bf4e317561 mobile: automate migration 2022-10-14 18:35:12 +05:00
Abdullah Atta
a255766cda web: improve move note to notebook UX 2022-10-14 18:12:08 +05:00
Abdullah Atta
088c143f59 web: auto disable encrypted backups if user is not pro 2022-10-14 17:54:25 +05:00
Abdullah Atta
e9a63fcf79 editor: don't create a new task list on drop at end
This overrides the default task item drop behavior to make dropping
items at the very end of the task list more reliable.
Currently, dropping the item at the end of the list creates a
new list which is often not what you want. We look for such
behavior and instead moves the item to the very end.
2022-10-14 17:49:53 +05:00
ammarahm-ed
68d4a5e56d mobile: multi-select export notes 2022-10-14 17:49:38 +05:00
ammarahm-ed
25bffe2053 mobile: bulk export all notes 2022-10-14 17:49:38 +05:00
Abdullah Atta
36f3701b4f web: allow exporting all notes as html, md or txt 2022-10-14 17:49:38 +05:00
Abdullah Atta
5886c47d92 editor: update packages 2022-10-14 12:23:40 +05:00
Abdullah Atta
516bc75317 editor: allow indenting list items on tab press 2022-10-14 12:23:30 +05:00
Abdullah Atta
bc7b3535e6 web: minor ui fixes 2022-10-14 10:21:00 +05:00
Abdullah Atta
6e64756725 web: fix Failed to execute 'decode' on 'TextDecoder' error 2022-10-14 10:20:24 +05:00
Abdullah Atta
fc19335a26 core: publish appRefreshRequested event globally 2022-10-13 19:35:32 +05:00
Abdullah Atta
11a3092bac web: make editor title font-size relative to title length 2022-10-13 19:23:48 +05:00
Abdullah Atta
5db1a7b345 editor: allow tabbing inside editor 2022-10-13 19:23:26 +05:00
Abdullah Atta
6116daf9ba editor: disable conversion of 2 single spaced lines into 1 double spaced line 2022-10-13 19:23:05 +05:00
Abdullah Atta
a47c98509d editor: allow converting double spaced lines to single spaced 2022-10-13 19:23:05 +05:00
Abdullah Atta
e1fc116994 core: improve content conflict detection using proper HTML diffing (#1183)
Since HTML is a tree-like language it is futile to compare it character
for character. `html1 === html2` is almost always false. This commit
introduces a simple diffing algorithm that only checks the text inside
the html + a few other attributes to decide whether the 2 HTMLs are
actually different or not. This is obviously not foolproof and it will
ignore everything aesthetic (b, em, strong tags etc.). This is actually
desireable because in our case only the text difference should
warrant a conflict. Everything else can easily be brought back.
Similarly, this also ignores whitespace differences surrouding the
tags.

All in all it'll provide a more reliable alternative to MD5 hashing the
2 HTMLs.
2022-10-13 19:22:32 +05:00
Abdullah Atta
f3fa7fe744 core: update core version to 5.8 2022-10-13 19:18:52 +05:00
Abdullah Atta
0a94ee7c60 core: item should only have a single shortcut
this changes the shortcut ids & deduplicates the old ones so that
there is always only 1 shortcut of a given item (notebook, topic or tag).
2022-10-13 19:18:52 +05:00
Abdullah Atta
0e6150a0f5 core: change db keys to include collection name
This should not affect the items or their server representation.
This change is necessary to allow multiple items with same id
that live in different collections.
For example, shortcuts have the same id as the inner reference they
point to. This was not possible before and would cause an overwrite
of the original value.
2022-10-13 19:18:52 +05:00
Abdullah Atta
c09715d053 core: make item migration fall through all db versions
this was not exactly a bug but it can cause a lot of unintended
behaviour. Previously, you'd have to manually specify which version the
item migration should jump to. This was buggy and poorly designed.
This change makes the item iterate over all the db migrations one by one
automatically.

For example:

An item at version 5.2 will go through:
- 5.3
- 5.4
- and so on
2022-10-13 19:18:52 +05:00
Abdullah Atta
9701a3d660 web: make table row toolbar vertical for compactness 2022-10-13 19:18:33 +05:00
Abdullah Atta
73ed73b2b3 web: improve tag auto suggest 2022-10-12 20:16:26 +05:00
Abdullah Atta
c6201532f2 core: lookup by tag alias 2022-10-12 20:16:26 +05:00
Abdullah Atta
b5ab8e5d3e core: allow free users to assign same 5 tags without limits 2022-10-12 20:16:26 +05:00
Abdullah Atta
74bcd1b27d web: clicking under table should create a new paragraph 2022-10-12 15:16:42 +05:00
Abdullah Atta
d2d269e4ca editor: toggle only the clicked item if it's not selected 2022-10-12 15:16:29 +05:00
ammarahm-ed
595994a495 mobile: add skip signup button on welcome 2022-10-12 14:41:46 +05:00
Abdullah Atta
ee0fb3680a desktop: reduce minimum required macOS version to 10.12.0
This fixes #1180
2022-10-12 14:35:07 +05:00
ammarahm-ed
9d7c2bbe15 mobile: use fixed numColumns value 2022-10-12 13:26:07 +05:00
ammarahm-ed
b975c9c8ca mobile: prevent saving if note content is empty 2022-10-12 13:04:59 +05:00
ammarahm-ed
bc8a336254 mobile: wait before saving note in widget 2022-10-12 13:04:06 +05:00
ammarahm-ed
9934417d07 mobile: disable encrypted backups account downgrade 2022-10-12 10:35:22 +05:00
ammarahm-ed
05f3709a5c mobile: fix app freeze on adding > 3 notebooks 2022-10-12 10:30:43 +05:00
Abdullah Atta
b5843c24d4 editor: do not use shebang to execute build script 2.2.3-android 2022-10-06 13:19:44 +05:00
ammarahm-ed
80cf1f9bb6 mobile: bump version to 2.2.3 2022-10-06 12:25:47 +05:00