86 Commits

Author SHA1 Message Date
d6e2f09a72 Move all settings code to its own folder
Jumping around between the widgets / screens and outside is bit
confusing. Also this way, I can add the stories right here.
2021-06-05 12:23:28 +02:00
30b9a850d4 Move utils file to utils folder 2021-06-04 18:59:58 +02:00
b76fe9e27a null safety++ 2021-06-02 09:07:29 +02:00
813b4c8436 Move analytics code to its own folder 2021-04-26 09:06:51 +02:00
d008f0d982 First version of dart migrate
Most of the files haven't been migrated. Lets work on this bit by bit
2021-04-10 22:18:35 +02:00
ea8b32608c Make MultiRepos Pro only 2021-02-23 10:08:24 +01:00
b5d5705f82 Hookup the Repository Manager to the AppDrawer
This makes multi repo support somewhat work. We still have some problems
with the old state not being clearer which I cannot seem to figure out.
2021-02-19 09:53:30 +01:00
130f2fe9a0 Rename Repository => GitJournalRepo
Repository is too vague of a word and it gets me confused with the Git
Repository. Also shorterned Repository to Repo. It's easier to read and
write.
2021-02-15 22:28:53 +01:00
a92f5532b8 Remove unused variable
It's not very easy to understand but the state is maintained by the
animation controller
2021-02-12 15:37:02 +01:00
bff9162858 RepoList: Use a better curve
This makes the entire animation look so much better.
2021-02-04 17:30:43 +01:00
07b6c6e099 Repo Selector: Fix animation
Urgh. This took way too long.
2021-02-04 17:13:06 +01:00
7d259715cf RepoList Animations: We don't need multiple animation controllers 2021-02-04 17:03:30 +01:00
c0d26fd1fb AppDrawer: Animate repo list
When it is hidden / visible. The animation isn't perfect as the slide
animation seems to go in a differet speed than the size one. I'm not
sure what is going on.
2021-02-04 16:46:02 +01:00
2e9be69c7c AppDrawer: Show repo list
This is just a first attempt and all the values are hardcoded. This
needs lots more work.
2021-02-04 15:37:24 +01:00
c8cb04f6e5 fix import order 2020-12-11 20:21:52 +01:00
b754c79639 Move AppDrawerHeader to its own file 2020-11-30 21:53:58 +01:00
909803aa8e Add an experimental Login page
Code adapted from https://github.com/TheAlphamerc/flutter_login_signup
2020-11-18 16:25:39 +01:00
ab1e8ad4af Emails: Add proMode and expiry date 2020-11-07 17:39:57 +01:00
071f15b067 Bug Report: Send logs for today and yesterday 2020-11-07 15:31:16 +01: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
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
fe08834259 Split Settings into AppSettings and Settings
This way I can eventually change Settings into RepoSettings without
breaking anything.
2020-09-25 00:33:54 +02:00
f30c52f595 Move all persistent state from AppState to Settings
This way all the persistant state of the app is managed from the same
place. It makes everything much easier. Also, it's required for when
GitJournal supports multiple repositories.
2020-09-24 23:45:37 +02:00
f7adeafe7d First iteration of the Graph View
I'm testing this with the Foam documentation. This has revealed a number
of bugs in our link resolver - most of which have now been fixed.

The graph layouting is not being done as this is so incredibly slow.

This has been added as an experimental feature.
2020-09-14 17:47:26 +02:00
96bbef436b Add a dark mode switcher in the App Drawer
Inspired by Telegram, though our animation is not as fancy.

Related to #121
2020-09-04 02:21:22 +02:00
d05e88ef89 Add an indicator in the AppDrawer for Pro Mode 2020-08-20 10:59:32 +02:00
b82b5ee658 PurchaseScreen Analytics: Record with new format 2020-08-10 15:32:39 +02:00
5f6c9f2f97 Make App Drawer strings translatable 2020-08-10 10:34:03 +02:00
1379fcfb0b AppDrawer: Use enum Events instead of strings
It's easier when all the events are declared in one place. This patch
gets us one step closer to that.
2020-08-09 02:10:39 +02:00
9d55b449d3 Settings: Access it through the Provider
Make it a ChageNotifier and try to access it through the Provider
instead of like a global variable. This way, the state is better
managed and it'll be easier to split out Settings into smaller classes.
2020-08-09 01:29:22 +02:00
2396b34b75 Allow the FS view to be experimentaly enabled 2020-07-26 19:05:47 +02:00
998da3e94c AppDrawer: Add hidden options to move between repos
This commit doesn't do anything, but it took me way way too long to
implement this basic UI. It's commented out for now.
2020-07-24 16:31:43 +02:00
9d00fdac06 Use import_sorter
flutter pub run import_sorter:main --no-comments

The code feels much cleaner
2020-07-24 12:43:28 +02:00
5d7f616c6e const++ 2020-07-21 10:46:03 +02:00
267ecb7499 Implement a very basic file system view
This will show all the files and not just the "notes". This way the user
can easily figure out why a file isn't included in the list of notes.

It's currently disabled by default as it clearly needs a lot more work.
2020-06-10 00:54:15 +02:00
2a35ea7c38 BugReport: Send bug reports with new logs
Earlier we used to call 'adb logcat' and get all the logs and send
those. This didn't work on iOS and we wouldn't get all the logs even in
android at times as the logcat buffer can be unreliable.

Since now we log all the messages to a file, we can just send that file.
The disadvtange is that we only get Dart level logs, and not iOS or Java
or NDK or our C libraries logs.

I should really dump libgit2 ASAP.
2020-05-31 02:42:58 +02:00
5c04bf204e Add Tags sidebar
Fixes #114

This was there because I couldn't figure out how to configure Billing in
iOS, now that it is done, I can have the pro mode in iOS as well.
2020-05-14 16:09:22 +02:00
faf561f104 Allow configuring the Home Screen
It can either be the Folders view or the All Notes view.
2020-05-08 19:30:53 +02:00
cc45894a07 Simplify page transition code
This way each time we can just use pushNamed instead of having to
construct the MaterialPageRoute each time.
2020-05-08 17:53:59 +02:00
cc8d7d24f9 Update flutter_email_sender 2020-05-08 16:56:07 +02:00
b2d0cf44ab Stop using deprecated TextStyle properties 2020-05-08 10:55:00 +02:00
d724dfb8ad Implement basic IAP support for Android
It's very ugly, but it works.
2020-04-10 12:58:21 +02:00
20a5ad8043 AppDrawer: Only show Pro Mode button if we aren't in Pro Mode 2020-04-08 14:18:47 +02:00
49f4e334dc Add a very basic purchase screen
Along with a 'Go Pro' option in the sidebar. This is extremely ugly and
is therefore disabled by default right now.
2020-04-06 19:26:09 +02:00
c322691614 ios: Fix report bug button
We don't have logs on ios
2020-04-02 17:17:32 +02:00
86ae88bae0 AppDrawer: Highlight the current selected route 2020-03-21 00:27:26 +01:00
48f4d52c40 AppDrawer: Change header to "All Notes" 2020-03-12 01:40:55 +01:00
3a3ec76529 StateContainer: Use Provider
This way we can avoid listening for changes in many places.
2020-02-11 19:10:34 +01:00
ce9a72676b Fix Folders navigation
Clicking on Folders in AppBar when inside a Folder wouldn't take you
back to the Folder Listing.
2019-12-22 15:38:04 +01:00