Skip to content

Commit

Permalink
chore: added additional TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
SethCohen committed Mar 26, 2023
1 parent 5bd4e7e commit f960452
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/pages/dictionary_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class DictionaryPage extends StatefulWidget {
class _DictionaryPageState extends State<DictionaryPage> {
@override
Widget build(BuildContext context) {
// TODO get all cards from lessons collection and allow the user to search for a word
// TODO create dictionary page
// TODO add searching functionality
return const Center(child: CircularProgressIndicator());
}
}
2 changes: 2 additions & 0 deletions src/lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class _HomePageState extends State<HomePage> {

@override
Widget build(BuildContext context) {
// TODO restyle Tabs to have proper on hover and on select icon colours

return SafeArea(
child: DefaultTabController(
length: 5,
Expand Down
2 changes: 2 additions & 0 deletions src/lib/pages/landing_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import '../providers/google_provider.dart';
class LandingPage extends StatelessWidget {
const LandingPage({Key? key}) : super(key: key);

// TODO clean up code

@override
Widget build(BuildContext context) => Stack(children: [
SvgPicture.asset(
Expand Down
2 changes: 2 additions & 0 deletions src/lib/pages/profile_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class ProfilePage extends StatefulWidget {
}

class _ProfilePageState extends State<ProfilePage> {
// TODO restyle with Streaks on side

@override
Widget build(BuildContext context) {
return ListView(
Expand Down
3 changes: 3 additions & 0 deletions src/lib/providers/data_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ class DataProvider extends ChangeNotifier {
Future<void> updateCardProgress(FlashcardModel flashcard, int quality) async {
Sm sm = Sm();

// TODO update user lastLearnt timestamp in Firestore
// TODO increment user streak value in Firestore if last streak timestamp was 1 day ago else reset streakt to 1

// Gets card progress for the current user
final card = await FirebaseFirestore.instance
.collection('users')
Expand Down
3 changes: 2 additions & 1 deletion src/lib/widgets/page_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ class PageManager extends StatelessWidget {
),
);

// TODO update user's lastLogin, lastLearnt, streak data in firestore
// TODO update user's lastLogin to current timestamp
// TODO reset user's streak to 0 if last login was more than 24 hours ago
}

0 comments on commit f960452

Please sign in to comment.