294 Commits

Author SHA1 Message Date
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
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
b3ea9c9565 Avoid using deprecated autovalidate 2020-10-02 16:17:05 +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
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
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
f3715bd3c8 Markdown DarkTheme: Make the checkboxes lighter
This entire way of styling the markdown badly needs to be re-done from
scratch.
2020-09-23 02:18:47 +02:00
3e785cbc97 NoteViewer: Fix translation string lookup 2020-09-22 23:26:49 +02:00
3a7f730489 Fix blockquote background color
The entire theme of the markdown viewer really needs to be improved.
2020-09-15 00:35:57 +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
2404475074 HighlightedText: Ensure max lines is being followed
This results in the highlighted text not always being visible. I'm not
sure how to fix that, it seems rather complex.
2020-09-14 12:36:48 +02:00
c94ff85804 Overhaul Link parsing
We were mixing up header links with wiki links and the alt text. It was
a bit messy. We currently do not support linking to a particular part of
a note. Nor do we support wiki links as link references.

Fixes APP-A0
2020-09-14 12:20:15 +02:00
984fc6864e Make all remaining strings translatable 2020-09-08 23:01:39 +02:00
461a887514 log completePurchase errors
This payment stuff is quite complicated!
2020-09-07 22:36:45 +02:00
1fff957c8b PurchaseWidget: Mark the strings as translatable
Also show a dialog to a user so they don't keep trying to click again
and again.
2020-09-07 21:46:03 +02:00
c229b7c2e8 PurchaseWidget: Log the exceptions 2020-09-07 21:43:40 +02:00
618ae071b9 PurchaseScreen: Center align the text
For smaller screens
2020-09-07 21:38:47 +02:00
35f76ebe4c StandardView/JournalView: Implement search highlighting
Fixes #14
2020-09-07 17:48:21 +02:00
d81b2ac3ab HighlightText: Show the actual term
Not what we are searching for.

This is going to get really messy when I implement proper searching
which takes accents and text normalization into account.
2020-09-07 17:40:42 +02:00
cbc75e45e9 NoteTile: Also Highlight the title if it matches
Related to #14
2020-09-07 17:38:37 +02:00
49dee11a26 Move Note Delete dialog to its own file
+ translate
2020-09-07 16:24:52 +02:00
fac2826800 Implement the scaffolding for search highlighting
Still need to implement the actual highlighting part
2020-09-05 16:14:16 +02:00
a2ffdaabc7 Search: Make string translatable 2020-09-05 16:10:07 +02:00
fa075c25e0 FolderView: Implement selecting a note
This is disabled for now, untill I expose the actions which should be
performed when selecting a note.
2020-09-05 15:53:26 +02:00
16fae264de PurchaseWidget: Make sure it is still mounted before calling callback
Fixes APP-B1
2020-09-05 12:50:31 +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
53b4d643fb Move ScrollViewWithoutAnimation to its own file 2020-09-03 21:50:23 +02:00
33e947a49e MarkdownToolbar: Add some FIXMEs 2020-09-03 19:47:19 +02:00
9db05bb7d8 PurchaseWidget: Handle when it fails to load options
Fixes APP-AY
2020-09-03 11:55:43 +02:00
40b5afdb7b IAP Verify Fail: Report it to Sentry
Not as analytics. This should typically never be happening.
2020-09-03 08:30:17 +02:00
9ec33842bc MarkdownToolbar: Remove old block tag
If a text starts with '# ' and we click on the '- ' button, it should
remove the old tag '#' and replace it with '- '. Before this it would
have done something like this '- #'
2020-09-02 00:00:53 +02:00
fefe354e83 MarkdownToolbar: Navigate across multiple lines properly 2020-09-01 23:32:14 +02:00
4596e11ab4 PurchaseScreen: Make all strings translatable 2020-09-01 10:48:05 +02:00
588f1db263 PurchaseScreen: Change the text
* Call it a Monthly Subscription - as that is exactly what it is
2020-09-01 10:38:19 +02:00
4c324a1194 IAP: Ignore user cancelled errors 2020-09-01 10:30:09 +02:00
b3bdb8657c Handle IAP of products
We were only handling subscriptions properly
2020-09-01 10:29:50 +02:00
822607ba18 Add extra logs 2020-09-01 09:18:16 +02:00
3bcbe5a71d IAP: Do not consume the purchase
Otherwise it will not show up when querying past purchases
2020-09-01 09:17:33 +02:00
b35db2a343 IAP: Exit after an error
Do not try to consume the purchase
2020-09-01 08:51:37 +02:00
7a23915686 Clarify the the Monthly Purchase option text
Clearly show how much they would need to pay in order for it to convert
into a normal One Time Purchase.
2020-08-31 18:00:07 +02:00
957638d8a1 Change yearly subscription to 'One Time Purchase'
I could have a yearly subscription as well, but the screen is confusing
enough as it is. Also, by next year - I should have the Stripe
Integration running and I can possibly avoid the extra 30%.
2020-08-31 17:28:08 +02:00
b6f9c27bf1 PurchaseScreen: Change text of yearly to "Purchase"
Instead of "Subscribe". Maybe this will help.
2020-08-21 11:37:02 +02:00
d05e88ef89 Add an indicator in the AppDrawer for Pro Mode 2020-08-20 10:59:32 +02:00
6ba0f3974a NoteEditor: Pass it the parentFolder
A note has a parent which is the physical folder it is inside, and a
parent folder which it is being displayed inside. It's useful to have
the latter as that can be used to display the next note - in the case of
the Journal Editor, and open the graph view as well.
2020-08-20 10:42:39 +02:00
518ae9d4ef First Iteration of Yearly Purchase 2020-08-20 09:32:40 +02:00
732c547cef PurchaseSlider: Make it prettier
It now appears as a triangle which is getting filled up. It no longer
lets you click on it, but we have buttons on the side for that.
2020-08-19 17:24:56 +02:00
7d88ef0399 Add a YearlyPurchaseWidget - disabled for now
Abstract out the PurchaseWidget and use it for both monthly and yearly
purchases. The yearly purchases hasn't been enabled so far, as the IAPs
still need to be approved on iOS and the PageView widget I was using to
switch between the two options isn't giving me what I want.
2020-08-19 16:39:42 +02:00
f4ab547fd5 Change default purchase amount 2020-08-19 12:31:27 +02:00
6f3eff20e8 Remove sku_monthly_min 2020-08-19 12:29:54 +02:00