16 Commits

Author SHA1 Message Date
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
e206c64d2f Get this to run with flutter 3.13.1 2023-08-27 16:41:42 +02:00
c2b2f73c60 LocalizationDelegates: The context is not used 2023-01-20 13:27:39 +01:00
c06ca11d01 Convert a few more setting classes to GjSetting
Just 5 more left.
2022-11-27 19:27:03 +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
532e5b1d59 Fix Editor tests 2022-11-20 19:54:34 +01:00
b177c10755 Add an automated test for creating a new note with extra metadata
It works. Weird.

Related to #634
2022-06-10 11:36:43 +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
66ab69c638 NoteEditor: Add a test to ensure the note is not modified on editing
This is passing, and trying it out manually, I cannot seem to reproduce
it.

Related to #615
2022-03-22 11:25:06 +01:00
cdc520c610 Move ChangeNotifiers to their own file 2022-03-18 15:46:58 +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
d3d63ff426 Improve rename test 2022-02-28 14:06:01 +01:00
ea221941e0 Fix renaming a note test 2022-02-28 14:02:59 +01:00
6ca914fc9a Add a Widget test to Rename an existing Note
This is unfortunately failing.
2022-02-25 12:42:01 +01:00
2ad85eda1c Add missing REUSE header
This really needs a proper vscode plugin.
2022-02-24 14:36:30 +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