Commit 8002e5f
Feature/Edit Note make Fullscreen (sillsdev#850)
* Remake edit notes popup into a fullscreen editor.
- Added CheckIcon and DeleteIcon for saving and deleting notes
- Added a route in /notes/+page.svelte to the edit route
* Allow navigation from modal to full-screen editor in NoteDialog
Fixed issue with adding new note
* Removed vite.config.js.timestamp files and made small changes to /notes/edit/+page.js
* Fixing Adding Notes and Back Navigation for Edits
Modify NoteDialog.svelte and note.ts to handle create notes better; implement history.back in /note/edit/[noteid]/+page.svelte
* Necessary Final Adjustments and Cleanup
Cleanup in /notes/edit/[noteid]/+page.svelte and+page.js, and static folder
* Developed temporary fix on Add Notes Feature
Temporary fix to navigate directly to adding a new note and see an 'Add Note' title; requires additional fixes
* Create new path for adding notes
A new path called 'routes/notes/new' is created to handle the functionality of adding a new note properly so that it does not get saved in the database until the save button is selected
* Cleanup and Fix textSelectionToolBar
Removes unnecessary code and comments, and makes it so the textselection only leads to creating a new note
* Remove async from functions
* Focus textarea when new note page starts
* Fix errors from rebase
- Remove double-import, likely added by sloppy merging
- Remove NoteDialog content fragment to work with Modal's children
snippet
- Comment out cancel button that makes use of editing variable
- Make tabMenuActive a $state variable
* Convert ${base} to getRoute in goto statements
Fix the references in notes infrastructure to `goto` that do not use
hash-based routing.
* Fix navbar use in notes editor to use snippets
The notes editor in `src/routes/notes/edit/[noteid]/+page.svelte` and
`src/routes/notes/new/+page.svelte` used the old slots configuration
inside the Navbar element. This is incompatible with the current
implementation of Navbar. This commit fixes these pages to use snippets instead.
* Add the verse reference to fullscreen note editor
This change adds the verse reference for a note to the fullscreen
editor.
This prevents the user from being confused about what note is being changed.
* Fix missing function error on `#/notes` page.
Notes `+page.svelte` did not properly assign the `menuaction` property
to the CardMenu.
Prettier fixes to `CheckIcon` and `DeleteIcon`.
Resolve sveltecheck complaints in `notes/edit/+page.svelte` and
`notes/new/+page.svelte` concerning `textarea`.
* Adopt standard sveltekit error handling in `/note`
Accept coderabbit's suggestion and use correct svelte error handling
methods, as per https://svelte.dev/docs/kit/errors.
Also add fallback for reference text.
* Fix incorrect font for notedialog heading.
The heading text of the NoteDialog previously did not use the correct
font face. It also did not set the font size.
This commit tells it to use the body font face and size.
* Remove `notes/new/` page, move creation to `edit`.
The `notes/new/` and `notes/edit` pages were almost entirely duplicates
of each other.
This change refactors `notes/edit` to allow using the noteid `new`
to create a note.
The `createNote` function has been moved appropriately and the
`deleteNote` function updated to only delete existing notes.
This commit also removes `notes/new` as obsolete.
* Corect too-wide center text in notes navbar.
This commit makes the divider and reference text disappear on mobile
devices, using tailwind's `hidden` and `sm:` features.
The notes reference will still appear on tablets and desktop devices,
but it will not collide anymore on mobile.
* Remove commented-out code from NoteDialog
* Fix: Replace `goto` with `gotoRoute` in notes page
* Remove unused dependencies in NoteDialog
Remove unused imports (`goto`, `base`, `addNote`, `editNote`,
`getRoute`) from NoteDialog.
Replace `goto` and `getRoute` with `gotoRoute`.
* Remove old TODO in NoteDialog.
* Replace goto and getRoute in TextSelectionToolbar.
Use gotoRoute instead.
* Fix formatting
---------
Co-authored-by: Reilly Krause <reikwork@gmail.com>
Co-authored-by: Chris Hubbard <chris@thehubbards.org>1 parent 6c1ef4a commit 8002e5f
11 files changed
Lines changed: 186 additions & 63 deletions
File tree
- src
- lib
- components
- data
- icons
- routes/notes
- edit/[noteid]
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
| 15 | + | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | | - | |
| 20 | + | |
23 | 21 | | |
24 | | - | |
25 | | - | |
| 22 | + | |
26 | 23 | | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
32 | | - | |
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
36 | | - | |
| 31 | + | |
37 | 32 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 33 | + | |
52 | 34 | | |
53 | 35 | | |
54 | 36 | | |
55 | 37 | | |
56 | 38 | | |
57 | 39 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
61 | 45 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
71 | 50 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
76 | 54 | | |
77 | 55 | | |
78 | 56 | | |
| |||
84 | 62 | | |
85 | 63 | | |
86 | 64 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 65 | | |
96 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 21 | + | |
32 | 22 | | |
33 | 23 | | |
34 | 24 | | |
| |||
39 | 29 | | |
40 | 30 | | |
41 | 31 | | |
| 32 | + | |
42 | 33 | | |
43 | 34 | | |
44 | 35 | | |
| |||
226 | 217 | | |
227 | 218 | | |
228 | 219 | | |
229 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
230 | 224 | | |
231 | 225 | | |
232 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments