2587 Commits

Author SHA1 Message Date
ccefc3c769 NoteHeader: Make it prettier
* Align the header better
* Show the full month name
2019-01-20 13:46:46 +01:00
89d7b724da Travis: Allow the flutter directory to exist 2019-01-18 18:09:38 +01:00
215197ca25 YAML Serializer: Add a test which currently fails
It would be nice to preserve the order of the YAML metadata, but the
YAML package does not currently support that.
2019-01-18 18:06:19 +01:00
33f32ae786 Travis: Cache the flutter repo 2019-01-18 17:53:36 +01:00
7594f139b9 Add travis badge 2019-01-18 17:52:34 +01:00
c18268e46e Hopefully fix Travis 2019-01-18 17:43:58 +01:00
aef0648baa Fix problems spotted by flutter analyze 2019-01-18 17:39:58 +01:00
93d1ddd684 Travis: Clone flutter in a tmp directory
This way when we run flutter analyze, we do not get a huge dump, because
it is analyzing the flutter source code.
2019-01-18 17:38:07 +01:00
6dcd8ba48c Note: Compare via fileName if created is the same
This should make the test pass as the test notes have the same date
time.
2019-01-18 17:36:54 +01:00
cd5078a301 Add a sample travis config 2019-01-18 17:25:31 +01:00
eb45408460 Bump version number 2019-01-18 16:59:20 +01:00
905f501a6f Do not add a 'created' field if it does not exist
It should, but it's fine if it doesn't. It does look a bit strange
since Dart puts the date to Nov 0001, but whatever.
2019-01-18 16:58:06 +01:00
c99fe854a1 Note: Replace 'id' with 'fileName'
It all just makes far more since when each Note has a fileName.

Though we don't save the fileName in the YAML header. It seems quite
redundant to do that.

Another advantage of this is that if we can read any file ending with a
'.md' in a git repo. It doesn't need to be named exactly how we want it,
and we will still save the details correctly.
2019-01-18 16:12:03 +01:00
99392955c9 Note Editing: Show a different message
Also allow us to go back if the note has not been modified. I say note
but I really mean 'journal'. These two words are used interchangably.
2019-01-18 15:45:02 +01:00
652ed6ffe5 File_Storage: Fix tests
I should really be running the tests more often. I'd clearly broken
things and hadn't noticed.
2019-01-18 15:40:30 +01:00
f7e2253f55 Fix serializer tests
* Map equality does not exist in Dart - how sucky!
* We no longer care about the micro-seconds
2019-01-18 15:37:19 +01:00
7ba6f1eb77 Improve VersionNumberButton 2019-01-18 13:54:08 +01:00
7162663cd9 Settings Page: Add the appName + version Number 2019-01-18 13:50:37 +01:00
4fc8201427 Add an empty Settings page 2019-01-18 13:13:13 +01:00
e6648c183e Remove the old snackbar before showing a new one 2019-01-18 12:57:14 +01:00
b322e4806d Disable analytics in debug mode
Sadly we can only do this in Android, there doesn't seem to be a way to
disable it on iOS.

https://github.com/flutter/flutter/issues/21063
2019-01-18 12:30:01 +01:00
d6d68a5a0f OnBoarding: Send analytics on each button press 2019-01-18 12:28:32 +01:00
a88a6d0701 Update .gitignore 2019-01-17 19:03:58 +01:00
cd11d1358f Fix typo 2019-01-17 18:29:35 +01:00
a24837314c OnBoarding: The back button should not result in the app quitting 2019-01-17 18:17:52 +01:00
a2358a84cc Update README.md 2019-01-17 18:01:09 +01:00
8ad6e55587 Add screenshots to the readme 2019-01-17 17:50:02 +01:00
7bb710d9ce Update fastlane metadata
This includes the current screenshots on the Google Play Store. These
are just the first screenshots and can improved quite a bit.
2019-01-17 17:41:32 +01:00
6452edae2f Readme: Add link to Google Play 2019-01-17 17:27:53 +01:00
6875fec1c9 Bump version number 2019-01-17 14:59:57 +01:00
a53df954ba Sync: Allow the git pull to fail
On a new repo, the git pull will fail as there isn't any content. We
really need to improve the overall error handling.
2019-01-17 14:56:46 +01:00
15bb98e852 Git: Slightly better exceptions 2019-01-17 14:56:33 +01:00
c6947b2ba6 Note: Make sure extraProperties is always initialized 2019-01-17 14:55:06 +01:00
3d48ef7419 GitPush: Push all branches
In new repos master doesn't exist.
2019-01-17 14:54:37 +01:00
708c3785a2 OnBoarding:: Do not show 'clone' button untill the key is generated 2019-01-17 14:37:49 +01:00
49e775203f OnBoarding: Fix deploy key page url 2019-01-17 14:37:40 +01:00
370cce523d Journal Entry Header: Show time with leading zeros 2019-01-17 14:16:18 +01:00
197211e490 Main Screen: Put the GitJournal text below the logo
It doesn't fit on my OnePlus5 otherwise, and the only other fix is
making the logo super small.

Though this information which I'm showing - the logo + text, is totally
just filler info. It isn't required, as the user knows which app they
launched.
2019-01-17 14:14:58 +01:00
fa5db149c8 NoteEditor: Increase padding
It feels much better typing when there is more free space, but this
might just be only on my mobile which is kinda big. How do I choose this
value in a screen independent manner?
2019-01-17 14:14:14 +01:00
334dd4b683 OnBoarding Git Url Page: Change the text
This feels much clearer.
2019-01-17 13:43:18 +01:00
aaeea1552c OnBoarding: Add a dots indicator at the bottom
This way we clearly know that we can go back in the onboarding process.
I hope. It definitely looks much better now.
2019-01-17 13:40:07 +01:00
6c07510c4d OnBoarding ssh key screen: Make it prettier
Also add a button for copying the public key. Ideally I would have liked
the text to be selectable but Flutter doesn't have a widget for that,
and it's much easier to just add a button instead -

https://github.com/flutter/flutter/issues/5422
2019-01-17 13:21:03 +01:00
e9da9a6ae8 Android: Improve error checking 2019-01-16 23:55:16 +01:00
f74229dbc7 Fix sshkey custom comment
Custom comments had been implemented but were not working.
2019-01-16 23:37:19 +01:00
4292555286 Pull to sync: Show a snackbar with an error message
The error message is quite basic right now -
"No Connection" or the full error returned to us by the java libraries.
But it's a start!
2019-01-16 23:20:07 +01:00
0aa2b1f4eb OnBoarding: Trim the gitClone url just in case 2019-01-16 22:55:11 +01:00
3d88ed9c05 OnBoarding: Move cloning logic to parent widget
There were a few cases when since we were calling an async function in
initState, which would then call setState, we would get an exception.

Also this way, the entire logic of the onboarding is in one place, and
the individual screens are far far simpler.
2019-01-16 22:47:30 +01:00
f7e67309bd Move onboarding git clone screen to its own file 2019-01-16 22:33:49 +01:00
297aef57f2 Fix the styling in the other onboarding screens 2019-01-16 22:30:24 +01:00
65480a2aa0 Reduce code duplication by introducing an OnBoardingButton 2019-01-16 22:24:48 +01:00