7f8801cbe5
fix: AutoCompletion Widget: Some range checking
...
This is one of the most common errors in Sentry. Hopefully this will fix
it.
2024-08-24 16:06:24 +02:00
e2c1363224
Remove unused code + deps
...
Both this calendar view and this history screen need a lot of work to
get them to a place where they can be shipped, and there are no plans of
doing that.
2024-08-17 00:47:41 +02:00
f672c3eb55
flutter fix deprecations
2024-08-13 18:13:04 +02:00
c5e9cc7821
Bump to flutter 3.19.6
...
We have a newer version of Flutter out, but I prefer to wait a few
months before all the relevant packages upgrade, as I'm already getting
tons of errors.
2024-05-15 07:45:10 +02:00
3dce1cb122
Upgrade sdk version
...
This way we can use the new Dart 3 features.
2023-12-22 21:23:45 +01:00
7fd1c99287
Use Provider's context.read/watch
...
Instead of the legacy Provider.of. Less scope of bugs this way and the
code is so much nicer to read.
2023-12-06 08:20:40 +01:00
833dcd3294
Improve code readability
2023-12-06 08:20:40 +01:00
88d5cf8713
Upgrade deps + flutter
...
* Also remove dart_code_metrics
2023-11-25 00:51:25 +01:00
657721adc6
Update dart-git and stop using the Result class
...
Instead we're going to move back to standard exceptions.
Using a custom Result class has created far far more problems
- The Stacktraces aren't always right
- Sometimes one forgets to check the Result error
- All other exception throwing code needing to be converted to Results
- Non idiomatic Dart code
I think it's better to just go back to exceptions. They have their
problems, but overall, I think it's a better approach.
2023-11-24 14:03:30 +01:00
83c689d668
NoteEditorSelector -> NoteEditorSelectionDialog
...
Also add it to WidgetBook
2023-02-21 16:08:21 +01:00
536f909bba
Fix bug where saving new note can create duplicate files
2023-02-16 13:43:33 +01:00
2de590aa63
Fixed bug where the delete button inside an editor wouldn't work due to the note having a reset oid
2023-02-16 13:25:16 +01:00
ea8cd35261
Fix deprecated methods
2023-02-09 16:00:29 +01:00
ca98da4029
Update deps and fix linting issues
2023-01-20 16:14:08 +01:00
d164562b54
Make sure the rootFolder says "Root Folder"
...
Instead of some empty text
2023-01-20 12:52:06 +01:00
d6abbbb9b5
Remove the entire concept of Features
...
GitJournal is no longer going to be a product where it's paid per
feature. Instead it'll just be a paid one time thing.
2023-01-19 18:21:37 +01:00
3f478bab53
Another removal of easy_localization
2022-11-27 19:18:13 +01:00
6d453ee62a
Rename app_localization_context to l10n
...
It's easier to enter and this file now contains far more things
2022-11-27 17:52:03 +01:00
48ab9669c8
Convert more cases to use the ARB
2022-11-27 17:46:45 +01:00
6f2ce4a6b5
Port more uses of LocaleKeys to new translation system
2022-11-27 17:42:26 +01:00
a1e562b5d8
Translate a few more fields
2022-11-21 03:12:02 +01:00
b925da7a47
Use the generated localization instead of easy_localization
...
Not everywhere, but a large part of the code base.
This way, hot reloading will also reload the strings which makes for
such a better developer experience.
2022-11-19 03:02:01 +01:00
ae9228f65e
Use super.key
...
Makes the code a bit more readable.
2022-08-25 11:32:25 +02:00
dfbbac5a27
Bump flutter_login
...
This required bump font awesome as well.
2022-06-29 12:12:18 +02:00
2661eda3da
Editor: Buffer all async actions
...
This isn't a perfect fix, but it should fix all the issues with the
double notes.
2022-06-24 17:12:27 +02:00
7c1f92df88
Run dart fix --apply
2022-06-07 11:30:06 +02:00
92e73c414d
Move core Note classes into a separate file
...
I'm trying to get ride of this huge 'Note' class, and have it be quite
dumb. The idea is that we'll have separate Note subclasses - TxtNote,
MdNote, etc
2022-04-24 13:09:14 +02:00
e6140fe80a
Add a test for sharing an image to GitJournal
...
I cannot seem to get this to work. Async code in tests is problematic.
Related to #611
2022-03-18 16:45:13 +01:00
dc5763de6a
Add a test for testing sharing some text
2022-03-18 16:33:52 +01:00
51a2b09332
Write a test for heading being deleted
...
This test passes :(
https://github.com/GitJournal/GitJournal/issues/579
On the plus side, I've learnt a lot about widget testing.
2022-03-01 17:10:47 +01:00
6ca914fc9a
Add a Widget test to Rename an existing Note
...
This is unfortunately failing.
2022-02-25 12:42:01 +01:00
61c0052e2d
Fix using note's title as filename
...
Also added a full end-to-end test which uses the NoteEditor and types
some text + saves the note. This has taken more than an hour, but is
going to be very useful to improve GitJournal's reliability.
Fixes #604
2022-02-24 14:26:25 +01:00
0a085e78e7
MdYamlDoc: Make it immutable
2022-01-27 15:17:56 +01:00
3ede4634a3
StatefulWidget: Mark internal variables are private
2022-01-27 12:38:57 +01:00
dca9064b80
NoteEditor: Ensure only state variables are modified in setState
...
I'm trying to use the convention where all internal variables start with
an _
2022-01-27 12:22:43 +01:00
afd7690611
Use fast_immutable_collections instead of Kt
...
It's much more intuitive to use, and is way more performant.
2022-01-27 12:13:34 +01:00
3841cdcab9
Note.tags: Use an compile time immutable set
2022-01-27 11:52:43 +01:00
c56da852b6
Add more specialized snackbox functions
...
It's easier to control how the errors look this way.
2022-01-27 10:26:23 +01:00
c9a031dd29
moveNote: Add test + fix
...
Fixes #590
2022-01-26 12:01:47 +01:00
3a4606b836
Image: Handle FS exceptions
2022-01-25 14:23:37 +01:00
6e75ce434c
Image: Insert markup at cursor position
...
Also optimize this a bit + add tests
2022-01-25 14:15:47 +01:00
901e4b5cb9
Avoid importing dart_git's Result class
...
It's easier to see where all dart_git is used this way, and this result
class should be refactored into its own package anyway.
2022-01-22 10:11:45 +01:00
2e2e371c25
Repository.addNote: Allow it to fail
2022-01-21 21:54:38 +01:00
da5346e0f4
Repository.updateNote: Handle failures
...
We were silently ignoring them before.
2022-01-21 21:44:01 +01:00
c72f020620
NoteEditor: Handle the case when the rename fails
...
This should never happen, but in the event that it does.
2022-01-21 21:31:54 +01:00
f5ef08fd09
Repository.rename: Fail if the destination exists
2022-01-21 21:29:11 +01:00
abbfbba961
Add a high level test for renaming a Note
...
Now that GitJournal is following a redux style, writing tests for the
domain logic is much easier.
2022-01-21 16:27:48 +01:00
9249dd1246
Add convenience method to reset the Oid
2022-01-21 16:12:24 +01:00
dcfa272a45
Editors: Simplify having to clear the Note's oid
2022-01-20 13:02:34 +01:00
e28c319406
Ensure all editors reset the note's oid
2022-01-20 12:29:13 +01:00