Conversation
|
Haven't reviewed the files yet, but I do have a note before starting. Please try to use conventional commit messages going forward. Use this reference document as necessary, ask questions if you need to: Conventional Commits Website. The same goes for PR titles. |
test/widget_test.dart
Outdated
There was a problem hiding this comment.
Remove the changes made to this file, this falls outside of your scope.
There was a problem hiding this comment.
Remove the changes made to this file, this falls outside of your scope.
There was a problem hiding this comment.
Remove the changes made to this file, this falls outside of your scope.
There was a problem hiding this comment.
Remove this file so we don't have merge conflicts later.
There was a problem hiding this comment.
Remove the changes made to this file, this falls outside of your scope. This was already implemented by Germaine.
There was a problem hiding this comment.
Remove this file to avoid merge conflicts later.
There was a problem hiding this comment.
Remove this file to avoid merge conflicts later.
|
Also, please ref issues that your commits are tackling, or if the entire PR is to close an issue, ref that in the header please. |
|
I have just reviewed all of the code, here are few high-level things that need to be addressed before this can be merged:
|
| Future<void> deleteCard(String cardId) async { | ||
| final index = _cards.indexWhere((c) => c.cardID == cardId); | ||
| if (index != -1) { | ||
| _cards[index].isDeleted = true; |
There was a problem hiding this comment.
This will be a compile error. Flashcard fields are final. Use copyWith() instead.
| Future<void> deleteDeck(String deckId) async { | ||
| final index = _decks.indexWhere((d) => d.deckID == deckId); | ||
| if (index != -1) { | ||
| _decks[index] = _decks[index].copyWith(isDeleted: true, deckName: ''); |
There was a problem hiding this comment.
Why is deckName being cleared on delete? Soft deleting should only mark it as isDeleted which you are doing, it shouldn't destroy data.
| }; | ||
| } | ||
|
|
||
| Flashcard _applyBasicScheduling(Flashcard card, Rating rating) { |
There was a problem hiding this comment.
This reimplements scheduling that already exists in FsrsService. Use the existing service instead of hardcoding intervals.
2c39c9e to
65430dc
Compare
No description provided.