1325 Commits

Author SHA1 Message Date
e9742b249c Checklist Editor: Give focus to newly added item after clickin on add 2020-02-11 17:48:28 +01:00
743958e4b3 Checklist Editor: Allow clicking on "Add Item" text
in order to add another item.
2020-02-11 17:28:27 +01:00
709ad4ccb8 Do not run tests in parallel
They occasionally fail if we run them in parallel - not sure why.
2020-02-11 17:22:15 +01:00
c7981606bf Checklist: Do not add extra \n while parsing
Now the checklist editor is finally somewhat usable.
2020-02-11 17:21:32 +01:00
380434368d Checklist Test: Remove modified field
When running it on the CI, the timezone is not the same and this causes
some problems.
2020-02-10 18:21:33 +01:00
4c23c28671 checklist: Improve test 2020-02-10 17:27:14 +01:00
fe7d370233 Checklist: Replace reorder icon
It's still not the icon we want, but it's the closest there is.
2020-02-10 17:11:56 +01:00
1cd0b967de Checklist: Let items be re-ordered 2020-02-10 17:10:54 +01:00
dbbe8589c6 Checklists: Allow items to be removed 2020-02-10 17:02:45 +01:00
8bebe91bc0 Checklist: Allow adding new items
It's not perfect as we don't maintain focus, but it's a great start.
2020-02-10 16:45:20 +01:00
9f5f7c39eb Remove the todo editor toggle
I anyway accidentally set it to true.
2020-02-10 16:17:50 +01:00
fd791a6597 Hookup the checklist editor properly
It's not perfect as one cannot remove items or add new ones. But it's a
start.
2020-02-10 16:16:11 +01:00
f9cc724c16 Remove poc
Merged into Checklist and ChecklistItem
2020-02-10 16:04:10 +01:00
9373988054 Checklist: Implement serialization back into Note 2020-02-10 16:03:48 +01:00
b98a42543e Add a Checklist class 2020-02-10 15:44:08 +01:00
4903a95421 PoC: Modify the checklist
Yes! Even this works. Now with this one can quite easily build a more
simple checklist support.
2020-02-09 23:51:49 +01:00
5bd29f7cdf PoC TaskList: Render nodes back to markdown with [X] 2020-02-09 23:47:36 +01:00
3b183d2fa8 Add a PoC for parsing markdown to a checklist 2020-02-09 23:21:22 +01:00
4a93850c22 Rename todo editor to Checklist editor
With todos - we could get feature requests for more advanced stuff such
as due dates and all. For now I just want simple checklist support.
2020-02-09 22:55:48 +01:00
9e730914a3 Bump version 2020-02-09 22:43:33 +01:00
1d0cf3ab6d Save the selected sorting mode 2020-02-09 22:41:16 +01:00
e0f03d703e Allow remote sync frequency to be controller
For now the only 2 options are - automaitic and manual.

I rather name it "Automatic" instead of "After each change" as that way
I can choose to do it more frequently, if desired.

Fixes #8
2020-02-09 22:23:39 +01:00
9c02f1d8ac Allow the sorting mode to be toggled 2020-02-09 19:37:10 +01:00
9290d9421e Revert "[Feat] add date to trailing widget in journal listing"
This reverts commit 8f76b4d96089c4a9313a7bf15d40278afee9a6e0.

I want to make another release and this substantially changes the
existing behaviour - I thought it would be fine, but it's proving to be
challenging.

Problems -
* Many notes do not have a title and the fileName is just too ugly to
show to the user when it is an ISO8601 timestamp.
2020-02-09 19:13:46 +01:00
7fd2546334 Add as NotesFolderReadOnly interface
This simplifies the implementation of VirtualNotesFolder and
NotesFolder.
2020-02-09 19:11:01 +01:00
313aace7fb JournalListingScreen: Convert to stateful widget
This way we avoid re-sorting the list each time we render it.
2020-02-09 18:56:13 +01:00
2bc1c0aea8 Fix SortedNotes folder and enable it again 2020-02-09 18:53:56 +01:00
57a309a63e SortedNotesFolder: ensure reverse sort 2020-02-09 18:17:14 +01:00
a97bdd8f92 Add a VirtualNotesFolder
Also disable the SortedNotesFolder - it's buggy.

This simplifies using a JournalList as one doesn't need to pick between
a list of notes / notesfolder.
2020-02-09 18:08:57 +01:00
be23f944b7 JournalList: Show the notes sorted
We're using a new SortesNotesFolder class. This way we don't continously
re-sort the notes.

And in the future we will be able to toggle the notes sorting method.
2020-02-09 17:38:51 +01:00
20f8d7f7fe NoteEditor: Improve modified check
If the only modification is the addition of a 'modified' tag, then we
shouldn't count it as modified.

I'm not too fond of this logic.
2020-02-09 17:34:12 +01:00
49192026a7 NotesFolder: Do not allow changes in the folderPath
Otherwise the NotesFolder can reach an inconsistent state.
2020-02-09 17:08:31 +01:00
1741fbf458 GitHub: Use http authentication header
Passing the oauth token via the query parameter has been deprecated and
will be removed on the 1st of July.
2020-02-09 16:32:35 +01:00
cfb2703414 SearchDelegate: Remove it when pressing 'x'
Usually 'x' just clears the query, but if there is no query it is
strange that nothing happens on pressing it.
2020-02-09 16:32:35 +01:00
5ae288a3f6 Remove Flushbar
With a FAB, flushbar's snackbar is just too difficult to press. We're
reverting to the classic Scaffold and making sure we're calling it with
the correct context.

https://github.com/AndreHaueisen/flushbar/issues/64
2020-02-09 16:32:35 +01:00
937d12d5d8 Host Setup: Wrap back button in SafeArea
Otherwise the notch intefers with it.
2020-02-09 16:32:35 +01:00
0c0fd17543 syncNotes: Catch the exception outside the StateContainer
The StateContainer doesn't have access to the snackbar.
2020-02-09 16:32:35 +01:00
8f76b4d960 [Feat] add date to trailing widget in journal listing 2020-02-06 17:03:32 +01:00
3d12c833d3 Revert "Deletes Note.compareTo"
This reverts commit 6cf5454f7940c9aee65279c4635f84b04f9ec700.

Having this compareTo makes testing easier.
2020-02-06 11:52:27 +01:00
6cf5454f79 Deletes Note.compareTo
Notes should no longer have a default comparison method. Since sorting
will soon be configurable (and is currently disabled), lets just remove
this method.
2020-02-06 01:53:16 +01:00
4bfd04fa2d Simplify code 2020-02-06 01:46:46 +01:00
1c8c17fb47 JournalList: Do not show a removal animation if dismissed
Otherwise we show an animation twice, and it is quite jarring.
2020-02-06 01:39:55 +01:00
36543b51d5 Remove unused code 2020-02-06 01:32:55 +01:00
143a1d95c7 First iteration of animating the JournalList
Now on adding / removing elements, the list is animated. It looks
slightly better.
2020-02-06 01:29:30 +01:00
9d29710d59 NotesFolder: Implement more fine grained notifications 2020-02-06 01:28:50 +01:00
55b05926c1 Log why the note was modified
We are getting bug reports about the modified tag being changed even
when the note hasn't been modified.
2020-02-06 00:48:56 +01:00
670a0ff12d Remove NoteFSEntity - It's easier to just keep Notes/Folders separate 2020-02-02 16:02:41 +01:00
2711f1c4c9 Add a NotesFolderNotifier
This also implements the ChangeNotifier, but additional provides more
fine grained notifications. We neeed this in order to animate the list
of notes / folders when they change.
2020-02-01 13:20:29 +01:00
c91abc9010 Bump version 2020-01-31 23:33:16 +01:00
36076f355b Update screenshots 2020-01-31 23:30:53 +01:00