62 Commits

Author SHA1 Message Date
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
2ba5b52f8d Move fetch application logs to its own plugin
Maybe it will be useful to others. This way we're also closer to
removing almost all java / objective-c custom code.
2019-12-21 18:17:14 +01:00
591ba30762 Fix flutter analyze 2019-12-11 21:48:46 +01:00
073e76bcba AppDrawer: Try to highlight the selected route
This looks okayish in normal mode, but looks very ugly in dark mode, so
I'm not enabling this. But I don't want to discard this experiment, so
here I am committing this code.
2019-12-06 20:31:32 +01:00
82cfa72897 AppDrawer: Fix clicking on "Folders" when "Folders" is selected
This is a horrible hack, and I should figure out how to make custom
named route transitions work.
2019-12-06 20:30:50 +01:00
0a7f00af7b Stop overwriting the default divider color
It can be configured from the theme if I want it to be different. The
light grey actually seems fine, for now.
2019-12-06 20:12:00 +01:00
0b161a9df4 Transition to Folders page with a fade
It's at the same hierarchy as 'Notes' and we shouldn't have a bottom to
top transition.
2019-12-06 12:11:39 +01:00
a39ed51abf Divider: Use the theme color 2019-12-05 18:07:40 +01:00
0b8dcaf8f6 AppDrawer: Minor refactor 2019-12-05 17:34:43 +01:00
a504435eca Add const 2019-12-05 17:23:19 +01:00
07ad503348 AppDrawer: Go back to the main route without stacking
The routing would be confusing otherwise
2019-12-05 17:22:31 +01:00
4682896592 AppDrawer: Add a divider between some elements
This clearly groups them together.
2019-12-05 17:19:22 +01:00
ca2102a8b0 Expose the Folders view
This adds a new 'Folders' screen which shows you all your folders and
lets you manage the notes inside them. It currently doesn't allow you to
add or remove Folders, though.

This nearly addresses #18
2019-12-04 15:33:30 +01:00
ffc0af12a3 Enable prefer_const_constructors 2019-10-20 01:11:53 +01:00
1d67e82304 Feedback/Bugs: Use @gitjournal.io email addresses 2019-10-19 15:43:28 +01:00
aea6f40940 Feedback: Always encode the URI properly
Encoding the URI may work on Android, but it's safter to always just
encode it, specially if we ever add a '&' in the body.
2019-10-19 11:49:05 +01:00
13d5e39c85 Feedback: Send platform name in the email 2019-10-19 11:48:14 +01:00
edb1f88a0f ios Review: Allow it to work on ios9+
Also provide the app id so it works on any version!
2019-10-10 12:28:28 +02:00
57eb00a583 ios Feedback: Spaces must be properly encoded
We ideally should use the same method in both the bug report and
feedback, however, bug reports require an attachment, and then plugin
being used doesn't work if an email client is not installed.

https://github.com/flutter/flutter/issues/10032
2019-10-09 20:49:37 +02:00
69003cf0ac Rename package from journal -> gitjournal
It's about time.
2019-10-07 19:30:50 +02:00
2606dd1a05 DrawerHeader: Use highlight color for header background
It's nearly the same color in a light theme, but in a dark theme it
looks way better.
2019-07-29 00:46:29 +02:00
b9cd8696c2 AppDrawer Feedback: Add the Platform
This way we know if the feedback comes from ios or Android
2019-06-17 17:39:09 +02:00
9051d1e7dc Add a 'Report Bug' button
This also attaches the entire 'adb logcat' in Android. This way, we can
hopefully get useful info about why something is not working.

This currently breaks the build as we need to migrate to Android X
2019-05-20 14:35:27 +02:00
689e783bb3 AppDrawer: Send event per button
This way we can track how many % of the users started the git hosting
setup and did not complete it.
2019-05-19 19:01:11 +02:00
c085475d9b Feedback: Send us the version number of the app 2019-02-15 13:13:35 +01:00