1325 Commits

Author SHA1 Message Date
2f9f8b3e73 Add a Compact View
Fixes #66
2020-03-05 19:24:20 +01:00
9ff33f51ce Remove unused imports 2020-03-05 19:15:41 +01:00
8e9b23982c Add support for a simpler filename format
Also make this the default when one doesn't have a title.

This is important as now the filename is far more visible with the new
standard view.
2020-03-05 19:14:27 +01:00
c87e6c7884 Standard Folder View: Align the title with the time correctly
As suggested by the docs it's better to use a Row and align it based on
the baseline.
2020-03-05 19:03:05 +01:00
f31e42ecef StandardView: Add date to trailing widget
Patch adapted from Ivan's pull request
- https://github.com/GitJournal/GitJournal/pull/59

It had to be reverted earlier as it was breaking functionality. But now
it works perfectly.
2020-03-05 18:54:34 +01:00
702c97c9dd Add a JournalView and allow it to be switched 2020-03-05 18:47:12 +01:00
846dda252e Split the Standard Folder View
This way its code can more easily be shared
2020-03-05 18:23:33 +01:00
db901e51ea Bump version number 2020-03-05 02:12:56 +01:00
b25ed00830 Add the concept of a FolderView
For now we just have the StandardView which is the same as it was
previously.
2020-03-05 02:10:27 +01:00
6d3b093499 Rename JournalListingScreen to FolderView 2020-03-05 01:48:50 +01:00
e1d19fc8c2 Optimize building of the NotesCache 2020-03-05 01:36:58 +01:00
cdd214c102 Let the notesCache be toggleable
It might be the cause of a massive slowdown for one particular user. I'm
still leaving it enabled for now, but I want to be able to easily
disable it.
2020-03-05 01:02:16 +01:00
5682e8abf9 ios: Flip ITSAppUsesNonExemptEncryption 2020-03-05 00:49:21 +01:00
7aee2e34bc Make sure note modifications are stored
Also bump the version. This is a very important bug fix.
2020-03-03 14:45:56 +01:00
0fc40da55b JournalEditor: Avoid crashing if note has no creation date
In the future when we improve the git itegration that will never happen,
but for now, it's what we have.
2020-03-02 19:57:26 +01:00
3640176f8d Remove Android debuggable
Fails to build with it
2020-03-02 18:12:23 +01:00
c07c076a67 Bump version 2020-03-02 17:41:07 +01:00
3bbf8e3abc Android: Always mark it as debuggable
I see no downside of shipping it this way, and since this app is
currently targetted more towards developers, they can provide better bug
reports.
2020-03-02 17:38:29 +01:00
c65ec96da2 Fix bug when you have less than 10 notes
Fixes #73
2020-03-02 17:37:47 +01:00
de2553c31f Mark new notes as Loaded 2020-03-01 17:14:01 +01:00
5ec3af70a6 More comprehensive setup analytics 2020-03-01 15:28:56 +01:00
a0e3e50b4a HostSetup: Track if using GitHub/GitLab/other 2020-03-01 15:21:30 +01:00
44d916138d Bump version 2020-03-01 14:55:40 +01:00
31262e5f7d Add some debug messages 2020-03-01 14:53:11 +01:00
51b95bb7e0 SortedNotesFolder: Ignore sorting order for unloaded notes 2020-03-01 14:52:27 +01:00
c90189e55b Note: Do not try to generate the summary if not loaded 2020-03-01 14:28:10 +01:00
b5f7a24b1f Use filename comparison when both Notes don't have modified/created 2020-03-01 14:19:26 +01:00
b199e4ef74 Simplify the sorting the presentation
Now we don't try to be smart and guess the sorting.

The problem was what to do when we don't have the modified/created
value. In those cases we were trying to use the fileLastModifed, but
that could get quite tricky and it wasn't obvious to the user what was
going on.

From now on - if it doesn't have a modified field, it just goes to the
end.
2020-03-01 14:17:06 +01:00
ec11f09b2e More thorough checking for if a Note has been modified 2020-03-01 14:08:04 +01:00
3ed246310e Centralize sorting code 2020-03-01 13:50:39 +01:00
7bdcd5dd82 Moving SortingMode into its own file 2020-03-01 13:42:09 +01:00
d50f772468 Only have one SortingMode class
It doesn't make sense to duplicate it.
2020-03-01 13:40:16 +01:00
6d69217cae JournalList: Show the filename as the title when no metadata is allowed
Fixes #72
2020-03-01 13:14:13 +01:00
78d7e6cef0 Integrate the NotesCache
It doesn't make any difference as -

1. The sort order shown our SortedNotesFolder is different
2. Rebuilds of the tree affect everything. Even the elements which
should be in the correct place.
2020-02-28 14:55:52 +01:00
2de1d17ee1 SortedNotesFolder: if created/modified not present it goes in the end 2020-02-28 14:55:11 +01:00
215dfc2cec NotesCache: Add a simple way to build the cache 2020-02-28 14:29:07 +01:00
cbacfa31e3 First attempt of creating a NotesCache
This is just for optimizing the loading of the Notes in the correct
order. I want to avoid the notes appearing and disappearing in a strange
order when loading. It gives a bad first impression.

This cache isn't integrated, it's only half done.
2020-02-28 14:17:37 +01:00
020c65e132 Minor cleanup 2020-02-28 14:16:05 +01:00
e65fbdbc71 Add experimental Journal Editor
It removes the title and displays the journal header. This provides a
much better experience for writing a journal.
2020-02-28 12:47:53 +01:00
e1a06a439c NoteViewer: Simplify code 2020-02-28 12:42:37 +01:00
dae3d1aec9 Remove the FAB
Fixes #58

I've tried adding a black space under the FAB, but that just reduces the
available vertical space while typing. This does reduce the usability
for small notes, as clicking on the FAB is much easier than clicking on
top-right back button or clicking the back button twice on Android.
2020-02-28 12:34:56 +01:00
a49876e3ee Remove the title editor if it cannot be stored
It just makes it confusing for the user otherwise.
2020-02-19 23:00:52 +01:00
d5176041be Fix flutter analyze 2020-02-19 22:48:04 +01:00
0fdc38b9da Bump version 2020-02-19 18:19:58 +01:00
6c7606efd3 KeyEditor: Do not let Next work until valid values are provided 2020-02-19 18:17:08 +01:00
12e16f83e5 KeyEditors: Remove code duplication 2020-02-19 18:06:59 +01:00
844089917a KeyEditors: Add basic validation 2020-02-19 18:02:53 +01:00
0813429bb8 ChecklistEditor: Support autofocus for new notes 2020-02-19 17:04:53 +01:00
f6c64507c4 ChecklistEditor: Do not manually destroy the focus nodes
The focus node will dispose themselves
2020-02-19 17:04:17 +01:00
d137fb83cf Add experimental support for not saving the yaml header
Fixes #19

This is experimental as it changes the whole concept of a Note - We have
till now always assumed that a Note can have attached metadata. With
this, there is no longer any metadata. So other parts of the application
need to start reacting accordingly. For example the Mardkown Editor
should not allow you to modify the title.

This also makes it easier to implement '.txt' file support.
2020-02-18 22:29:16 +01:00