551 Commits

Author SHA1 Message Date
5571fdb65e Use time.dart
I'm sacrificing const code for readability. So maybe I'll lose a bit of
performance, but this is so much easier to read.
2020-11-10 19:07:09 +01:00
3aaa397021 Fix reseting the git host 2020-11-10 18:11:26 +01:00
420de6ee4c Do not call setState if unmounted
Fixes APP-GV
2020-11-10 00:40:21 +01:00
9e71f3295c Fix unnecessary listen 2020-11-09 12:56:20 +01:00
7fc6847933 Remote Settings: Display the git host 2020-11-09 12:55:54 +01:00
aaf96c82d1 Convert IgnoreReason to an enum 2020-11-09 12:10:38 +01:00
a90541df59 resetGitHost: Save the new folder in the settings
Otherwise when we restart the app the old repo is still used.
2020-11-08 10:44:20 +01:00
c2ae07bf5c Remove custom email regexp
Use the EmailValidator package instead
2020-11-07 15:52:39 +01:00
85d21a62e5 Avoid logging note data 2020-11-07 15:32:36 +01:00
245ec8a53b Debug Screen: Add a button to copy messages to the clipboard 2020-11-07 15:13:06 +01:00
a76e32d8d3 Disable Scroll to Refresh when sync mode set to Manual 2020-10-23 14:14:02 +02:00
9ed9744306 Android: Change Settings text to "Store Repo Externally"
The earlier mechanism was a bit confusing.
2020-10-23 13:52:49 +02:00
43206219da Merge AppState into Repository
The 'AppState' was more of a Repository state, and it's easier if it
lives inside the Repository class.
2020-10-23 02:01:45 +02:00
770394a8f9 Rename StateContainer to Respository 2020-10-23 01:38:47 +02:00
bc06efc446 Create new note when clicking on non existing Wiki Link
Fixes #240
2020-10-22 23:57:53 +02:00
eac7ff3c63 Auto save the note when the App loses focus 2020-10-22 15:11:48 +02:00
f81b2ed167 NoteEditor Discard Changes: Do a git checkout on the file
This way it will go back to the exact original version. Our Note loading
and saving sometimes changes the yaml metadata order.

Also, this allows us to autosave the note file.
2020-10-22 14:57:12 +02:00
35ed7f616e CustomKeys: Allow an ssh password to be provided
Fixes #227
2020-10-22 14:35:17 +02:00
e3a4844f0e GitRemoteSettings -> Let a custom SSH key be provided
Just like during the GitHost Setup.
2020-10-22 14:22:00 +02:00
00c4a07d72 Note Backlinks is clearly not experimental anymore 2020-10-21 22:32:34 +02:00
d1214b8c1b Android Store Externally: Do not give the users a choice of a folder
It's a bit confusing as we create a 'GitJournal' folder then. Lets just
always save it in the same location for now.
2020-10-21 17:07:46 +02:00
018dd4ca36 Fix reset repo 2020-10-21 04:29:01 +02:00
9f53115616 ios: Add iCloud capability
I cannot see the GitJournal app's data in my iCloud, but I believe maybe
my app needs to go through the app review process.
2020-10-19 20:01:36 +02:00
98c92a3fe1 Handle new version of git_bindings
This changes the way the SSH keys are managed, they are no longer
managed by the git_bindings plugin and are instead just passed as
parameters. They are now saved in shared_prefs. This allows us to easily
have multiple ssh keys.

It also allows us to store the ssh keys in a more secure storage
location in the future.
2020-10-19 14:52:24 +02:00
bad1a03812 Implement moving the Git Repo to a folder accessible by other apps
This doesn't seem to move it to the SD card, but it does move it to a
public location. This is an Android specific feature.

Not sure if this is allowed with Android 11

Related to #99
Fixes #154
2020-10-17 12:24:06 +02:00
fd74a86abf Remove the whole local/remoteConfigured settings
We now infer this by checking if the directory exists, and by reading
the git config. It's a bit slower, but it's a far better method. I can
add a cache later, if it turns out to be too slow.
2020-10-16 15:13:34 +02:00
09fdcc3012 Generate the SSH keys via Dart
The more dart code we use, the easier it will be to port to other
platforms.
2020-10-15 12:30:35 +02:00
540078c413 Improve repo migrations
Earlier we had one folder 'journal_local', when the remote would be
setup a new folder called 'journal' would be created, and each all the
files would be copied over. This meant the local history was being
destroyed.

Now, we only have 1 folder 'journal', and on 'cloning', we add the url
as a remote, and do a git fetch + merge.

This simplifies everything drastically, and opens the door for multiple
remotes.
2020-10-15 12:18:47 +02:00
8dbab76011 GraphView comments 2020-10-12 18:21:33 +02:00
044592b92d Allow Journal Entries to have their own file naming scheme
Adding an individual setting is becoming way too complex now.
2020-10-12 18:21:26 +02:00
0e4bf34843 Settings Bottom Menu Bar: Make the preview a bit bigger
On my super small iphone screen it doesn't look great.
2020-10-12 18:05:52 +02:00
aa48753f10 Add listen:false when getting some providers 2020-10-12 17:40:22 +02:00
d3a0d4fcfa External Storage: Use ext_storage package
This actually gives the top level directory in Android, as I want.
2020-10-09 10:55:45 +02:00
cdfa7d690a Add a setting to store the repo in the external storage
This is Android only, and for now it is disabled as I'm not sure why I
cannot access the "general" root directory.
2020-10-09 10:43:16 +02:00
9499cea164 Remove Settings global
Stop it being a singleton. This means it needs to be passed around a
lot. This sucks, but it's how it should be. I shouldn't be using a
global variable to get around this.

This is needed as Settings will soon become repo specific when we
support multiple repos.

This breaks saving the settings in a file, that feature was toggled off
anyway. It needs to be thought over again.
2020-10-09 00:59:19 +02:00
17b276b9f6 Add a comment on the HomeScreen
It took me some time to figure out why I had written it this way.
2020-10-05 13:09:57 +02:00
06cfe27154 Make the bottom menu bar settings prettier
We now show how the bottom menu bar will look inside the settings. This
is so much nicer. Later, I can add more options to configure exactly
what icons are visible and what they do.
2020-10-05 13:08:50 +02:00
62bea50506 Allow the bottom menu bar to be hidden
Fixes #261

The settings page for this is quite ugly right now, but the feature
works. I can improve its look another time.
2020-10-05 12:25:57 +02:00
cca83ffd4a Move metadata configuration features from Pro to Basic
Configuring how the metadata should be saved really seems like more of a
basic feature as it allows you test GitJournal's compatibility with your
favorite desktop client or for static website generation.
2020-10-05 11:47:09 +02:00
b3ea9c9565 Avoid using deprecated autovalidate 2020-10-02 16:17:05 +02:00
bb19321c8b Send AppFirstOpen Analytics event
Again, this is sent by firebase, but I want to be able to replace
firebase pretty soon.
2020-09-30 11:27:49 +02:00
75d48fbfc6 Integration Test: Show the sorting settings and view Options
Also add far more existing notes for the screenshots.
2020-09-28 12:11:05 +02:00
dfbdb5c50c Fix flutter analyze 2020-09-28 00:49:59 +02:00
48b9b4d642 GraphView: Dispose the Graph correctly 2020-09-28 00:48:18 +02:00
dc4e18156c GraphView: Fix dragging the nodes
This was much simpler than expected.
2020-09-28 00:38:57 +02:00
4d586d85ae Avoid modifying the InteractiveViewer at all
Just import it with a different prefix
2020-09-28 00:17:55 +02:00
40349b5660 Add missing trailing commas
How did this file ever even get saved?
2020-09-28 00:09:49 +02:00
43269bbe53 Add lots of listen: false when using Provider
Provider version 4 has an assert which fires if used incorrectly.
2020-09-28 00:09:14 +02:00
4b3f1669f5 Stop caching the gitBaseDir
It makes the entire code base far more complicated and the round trip to
get the directory really isn't that much. This is a massive
micro-optimization for very little benefit.
2020-09-26 18:52:28 +02:00
a422b09fce GraphView: Allow scaling out far more
This way we can see allmost the entire graph.
2020-09-26 06:17:44 +02:00