18 Commits

Author SHA1 Message Date
6af3b03210 Add a sync button to the AppBar
This somewhat shows what's going on with the network. It isn't ideal, as
is a bit ugly. But it's a start to show the network status, and what's
going on in the background.
2019-12-26 20:43:12 +01:00
70877438eb Git: Take the folderPath instead of folderName
The Git Api was strange and took a foldeName and it would only allow you
to access git operations in a particular path. This has now been fixed,
and now it can operate in any path.

This was the first step to moving the git api into its own library.
2019-12-20 20:40:00 +01:00
5b8fc6342a Connect the AppState to the Folders
Now when adding/editing/removing a note, it gets modified from the
directory it was present in. There is no longer a just a plain list of
all notes, but always a tree of notes, which are inside Folders.
2019-12-04 15:33:30 +01:00
10d65cd6fb Rename NoteFolder -> NotesFolder 2019-12-04 15:33:27 +01:00
464b7512e9 Move Note and NoteFolder class into a core folder 2019-12-04 14:18:11 +01:00
56ccf00260 FolderListing: Show the actual folders
Also don't load hidden folders
2019-12-04 00:35:29 +01:00
7ba8faa57f Remove the entire concept of a subFolder
When configuring the Git Repo server, we could optionally track one folder
in the root git repo, instead of just the root folder. This was
specifically to address my use case where I have my journals in a
sub-directory. The setup screen was super ugly, though.

Since now I'm in the process of adding folder support because of #18, I
can remove this hack. It simplifies the code a lot.
2019-12-01 12:04:45 +01:00
5d69dd9de2 AppState: Remove isLoadingFromDisk
It isn't actually used anywhere. I want to simplify this as much as
possible, as I want the note loading to be as lazy as possible.
2019-10-20 00:54:34 +01:00
69003cf0ac Rename package from journal -> gitjournal
It's about time.
2019-10-07 19:30:50 +02:00
c144f14816 Avoid saving hasJournalEntries
It can be a simple getter
2019-10-04 04:37:41 +02:00
3d8aa2ad70 AppState: Move loading/saving to where the data lies 2019-10-04 04:35:02 +02:00
b32724021a Fix const error 2019-03-05 23:56:47 +01:00
03e46ce8cd Allow notes to be stored inside a sub-folder in a git repo 2019-02-14 12:59:43 +01:00
882c4eb024 GitSetup: Add a screen to choose a subFolder
This is only shows if there are subFolders with '.md' files. This
feature is super important for me as it allows me to finally dogfood
this app and use it

This patch just adds the screen, but the subFolder selection
currently doesn't do anything.
2019-02-14 12:04:21 +01:00
c819f49afe Add a very basic onBoardingScreen 2019-02-14 01:44:57 +01:00
6fea27e0ca Show +1 notification badge after user has made a journal entry 2019-02-14 01:11:35 +01:00
519de8fcff Remove onboarding screen
For now just create a local git repo and commit all the changes over
there, we're going to allow the user to first see the app and use it
however they want, and later connect it to a remote git repo.

This commit breaks the app, as the on-boarding screen is no longer
connected so you cannot push to a remote app.
2019-01-21 13:43:33 +01:00
a5830ccbc4 Load the journal list after onboarding 2019-01-10 13:03:00 +01:00