Commit Graph

628 Commits

Author SHA1 Message Date
thecodrr
fc75aed605 ui: minor fixes 2020-04-25 12:58:03 +05:00
thecodrr
76df635dde ui: hide back button from editor 2020-04-25 11:06:01 +05:00
Abdullah Atta
07f025d0c9 Merge pull request #10 from streetwriters/responsive
UI for mobile
2020-04-23 14:14:29 +05:00
thecodrr
1290948aa7 fix: resolve all warnings 2020-04-23 14:13:22 +05:00
thecodrr
fc1eda6fd3 navigation: auto close side menu on navigation 2020-04-23 14:12:35 +05:00
thecodrr
c4bda64f32 ui: make dialogs look nice on mobile 2020-04-23 14:12:20 +05:00
thecodrr
6ae5b1bc2a editor: make responsive for mobile 2020-04-23 14:07:04 +05:00
thecodrr
788c1b3107 navigator: add titles back to navigator routes 2020-04-23 13:03:33 +05:00
thecodrr
ece4bc6c5c Merge branch 'responsive' of https://github.com/streetwriters/notesnook-web into responsive 2020-04-23 13:00:35 +05:00
thecodrr
51e5111ce6 editor: do not reopen last session on mobile 2020-04-23 13:00:05 +05:00
thecodrr
4e8be190c6 ui: scale down font size for mobile 2020-04-21 15:26:08 +05:00
thecodrr
21507e1a46 ui: fix side menu button margins and position 2020-04-21 14:00:34 +05:00
thecodrr
4810c33b9a icons: use menu instead of hamburger for Menu icon 2020-04-21 13:57:25 +05:00
thecodrr
4df5e302e4 ui: animate side menu opening and closing 2020-04-21 13:56:07 +05:00
thecodrr
f23b68db33 ui: no title for navigator route 2020-04-21 13:15:24 +05:00
thecodrr
a803eeaf08 fix: add title to navigator route 2020-04-21 13:13:19 +05:00
thecodrr
ae45abdb96 Merge remote-tracking branch 'origin/master' into responsive 2020-04-21 13:12:55 +05:00
thecodrr
deaecda502 feat: impl permanent delete in multi select trash 2020-04-21 13:03:25 +05:00
thecodrr
78f0d6e0ce fix: multi items move to trash 2020-04-21 12:52:44 +05:00
thecodrr
c9866fe6c7 fix: crash when an item was removed from Virtuouso
This was a pesky bug. Basically the `props.items.length` did not get updated which resulted in the `index` being always one greater than actual. Since `index[out-of-range]` is `undefined` in JS, the app crashed as it could not find any prop. Very pesky. Fixed it however.
2020-04-21 12:42:58 +05:00
thecodrr
7c00a281e4 chore: update notesnook-core 2020-04-21 12:33:29 +05:00
thecodrr
9094da0805 hotfix: crash when moving an item to trash
This should probably be investigated more and fixed properly. Seems like a core issue to me.
2020-04-21 12:01:15 +05:00
thecodrr
84ba34955d refactor: formatting and some other stuff 2020-04-21 12:00:06 +05:00
thecodrr
1807afaa0f fix: send proper context when opening topic from topic label on notebooks 2020-04-21 11:54:12 +05:00
thecodrr
b40d1a4440 ui: fix topic labels on notebook foreground
These appeared black on blue when they should be white on blue. We use `static` color for it as it remains the same in all themes.
2020-04-21 11:52:11 +05:00
thecodrr
8a9e83fc6b fix: save opened note id in local storage 2020-04-21 11:46:22 +05:00
thecodrr
848def4104 ui: fix text font sizes 2020-04-21 11:43:40 +05:00
thecodrr
5aca5adb0b feat: fragment route component into smaller components
This improves rendering performance especially during selection mode toggling.
2020-04-21 11:36:09 +05:00
thecodrr
0040fd5650 fix: multi select causing crash 2020-04-21 11:18:55 +05:00
thecodrr
42dcfc4ad4 ui: increase menu width 2020-04-21 10:56:43 +05:00
thecodrr
32a68d69c9 Revert "feat: lazy load all routes"
This reverts commit 6c094a43ab.

Because Suspense doesn't work that well with persistence. Don't know why. And besides, it gives a bad user experience.
2020-04-20 13:30:23 +05:00
thecodrr
6fad89bc21 ci: install babel-loader v8.1.0 dependency
The ZEIT deployment fails if we do not specify a babel-loader explicitly
2020-04-20 13:07:57 +05:00
thecodrr
a5702648d3 ui: show nothing in Suspense fallback
In my opinion blank is better than "Loading..." when navigating. Maybe we can rotate a spinner or something but I guess, blank is most lightweight for now.
2020-04-20 13:03:13 +05:00
thecodrr
6c094a43ab feat: lazy load all routes 2020-04-20 12:51:59 +05:00
thecodrr
b468dc0763 navigation: persist history as well
previously we were only persisting the last route but this caused the back button to disappear when the page was refreshed. Hence, I have added history persistence as well.

This can probably be optimized a little bit more.

Known Issue: JSON.stringify doesn't preserve the route component so we have to retrieve it manually using `this.getRoute(key).component`.
2020-04-20 12:39:39 +05:00
thecodrr
aa905e20b9 ui: adjust default button font size 2020-04-20 12:30:34 +05:00
thecodrr
5492a92f02 navigation: force navigate on load 2020-04-20 12:29:16 +05:00
Abdullah Atta
f0f209e1f6 ci: use script/ci.sh to handle ssh keys 2020-04-20 12:06:02 +05:00
Abdullah Atta
f9310f9cd3 ci: use script/ci.sh to handle ssh keys 2020-04-20 12:04:20 +05:00
thecodrr
d5be859530 navigation: add default routes for settings & tag navigators
After the nested navigation refactor, all routes with their own navigators require a `default` option that configures which route to load on startup.
2020-04-20 11:24:07 +05:00
thecodrr
7c0b7d3b5e navigation: simplify nested navigation 2020-04-20 11:20:42 +05:00
thecodrr
a57db4b590 fix: resolve all warnings 2020-04-19 14:16:58 +05:00
thecodrr
a7b568d108 refactor: cleanup context logic 2020-04-19 14:16:01 +05:00
thecodrr
0933a34a41 ci: use ssh url for notes-core 2020-04-19 13:25:41 +05:00
thecodrr
b4520d2a0d perf: reduce libsodium dep size 2020-04-19 13:23:32 +05:00
alihamuh
014146982e fix: fixed note taking in menus 2020-04-19 12:34:27 +05:00
thecodrr
c7dd6b5d49 chore: add missing packages 2020-04-17 12:52:55 +05:00
thecodrr
d69d11b0e0 ui: fix cursor not changing to pointer in menu 2020-04-16 14:18:00 +05:00
thecodrr
db1b58e597 fix: crash when perm removing item from trash 2020-04-16 14:15:24 +05:00
thecodrr
4760b706b1 fix: pin/unpin causing a crash 2020-04-16 14:10:17 +05:00