255 Commits

Author SHA1 Message Date
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
e449ed4261 NoteBacklinks Summary: Use the LinkResolver
The link resolution algorithm is complex and we shouldn't be using the
adhoc method.

Fixes APP-4V
2020-08-19 12:29:50 +02:00
7936cc70b8 Analytics: Make all events into enums
No more random strings
2020-08-17 15:29:38 +02:00
fb2ca11d84 MarkdownToolbar: Add buttons for creating lists 2020-08-15 18:06:06 +02:00
88328902f4 MarkdownToolbar: Add a vertical divider to group items
The buttons for moving between words shouldn't be grouped together with
the formatting buttons.
2020-08-15 12:49:33 +02:00
87eb0c5419 MarkdownToolbar: Make the header icon bolder
Ideally, we should just use the FontAwesome icons for each of these
instead of relying on the normal font.
2020-08-15 12:41:14 +02:00
850e9c7826 MarkdownToolBar: Make bold work with newlines 2020-08-15 12:36:13 +02:00
2c8bf8d5ae Make the MarkdownToolbar prettier 2020-08-15 12:29:37 +02:00
22985ea500 MarkdownToolbar: Implement navigation between words 2020-08-15 11:58:39 +02:00
745d59e570 MarkdownToolbar: Add buttons to navigate between words 2020-08-14 22:00:34 +02:00
440ee96639 MarkdownToolbar: Bold: Add more tests 2020-08-14 21:21:08 +02:00
c6d5ebc0b2 MarkdownToolbar: Add tests for surrounding the current word with ** 2020-08-14 21:17:29 +02:00
46269dd94a Implementing controlling of the sorting order
The dialog looks quite ugly right now, but at least everything works. I
can work on making it prettier after this.
2020-08-14 19:17:38 +02:00
2fcdfa0d6c Note Backlinks: Use the linkResolver
The backlinks should use the same algorithm for determining the links as
is used when clicking on a link.
2020-08-14 16:44:54 +02:00
5066a2a729 IAP: Always enable pending purchases 2020-08-14 16:08:13 +02:00
c38f823ae3 MarkdownToolBar: Test h1 removal
And fix cursor position after removing of the header
2020-08-13 01:14:06 +02:00
d4b201f7ef MarkdownToolbar: Replace current line
Add a few more tests
2020-08-13 00:44:12 +02:00
f3ad0144c5 Add a test for MarkdownToolbar's replace current line
The logic is non trivial
2020-08-13 00:29:17 +02:00
c7a956c5bf Give MarkdownToolBar to TextEditingController
Instead of handling every single callback.
2020-08-13 00:12:25 +02:00
a6ebcdfda6 Move MarkdownToolbar to its own file 2020-08-13 00:07:56 +02:00
c6e4cf3d8a Note's parent shouldn't even be null 2020-08-12 19:20:36 +02:00
990efc8f7b Add a 'Restore Purchase' button
Instead of doing it automatically,

Fixes #211
2020-08-12 19:05:58 +02:00
199b9682bc PurchaseSlider: Get the largest amount as well 2020-08-12 18:50:28 +02:00
21447a09e0 PurchaseSlider: Fix it
It was a bit wonky
2020-08-12 18:50:10 +02:00
0c467e6b01 Move LinkResolving code to its own class
It has become sufficiently complex that a number of edge cases need to
be tested.
2020-08-10 23:49:09 +02:00
228631b395 Remove unused import 2020-08-10 21:13:57 +02:00
3e2306801b Add a test for the markdown node parsing
This way we will clearly know when the Markdown parsing fails because of
bugs in the markdown package.
2020-08-10 21:04:13 +02:00
39944c247e Remove annoying debug messages 2020-08-10 20:31:46 +02:00
17dff46660 Remove wikilink duplicate regexp 2020-08-10 20:31:46 +02:00
706c086525 Make sure ProOverlay is only used with Pro features 2020-08-10 16:07:10 +02:00
c048ead8a9 Log every feature and how we reach the purchase page
We now have a list of all the features that are implemented, and we can
use that to show a kind of feature list which can be used to -

1. Move away from app rental model
2. Showcase a feature list; see WorkingCopy
2020-08-10 16:05:26 +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
2bc9e8deaf More removals of Settings.instance 2020-08-09 01:59:07 +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
a98b99dcb5 refactor: Move SortingOrderSelector into its own widget
Also translate it
2020-07-31 21:39:27 +02:00
8e8c11c5ef FolderView: Refactor NewNoteNavBar into its own widget 2020-07-31 20:47:18 +02:00
b85f9028fe Half implement Note selection in a FolderView
This allows you to long press on a note and select it, thereby allowing
you to perform actions on it, without opening the note.

This is disabled for note, as it isn't completely implemented. I'm not
sure how to pass down the informatin on which Note is selected.
2020-07-31 20:36:20 +02:00
2ef2ccdf23 Editors: Allow the title to be edited even when YAML is disabled 2020-07-29 16:27:15 +02:00