Skip to content

Commit

Permalink
✨ Add edit person (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakesMD authored Oct 7, 2024
1 parent cb3a470 commit e27b5e0
Show file tree
Hide file tree
Showing 179 changed files with 2,764 additions and 2,989 deletions.
6 changes: 5 additions & 1 deletion app/lib/app/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,16 @@ class _ChuckleChestAppState extends State<ChuckleChestApp> {
final gemsTable = CGemsTable(supabaseClient: supabaseClient);
final linesTable = CLinesTable(supabaseClient: supabaseClient);
final peopleTable = CPeopleTable(supabaseClient: supabaseClient);
final avatarsTable = CAvatarsTable(supabaseClient: supabaseClient);

platformClient = CPlatformClient();
authClient = CAuthClient(authClient: supabaseClient.auth);
chestClient = CChestClient(chestsTable: chestsTable);
gemClient = CGemClient(gemsTable: gemsTable, linesTable: linesTable);
personClient = CPersonClient(peopleTable: peopleTable);
personClient = CPersonClient(
peopleTable: peopleTable,
avatarsTable: avatarsTable,
);

authRepository = CAuthRepository(
authClient: CAuthClient(authClient: supabaseClient.auth),
Expand Down
2 changes: 1 addition & 1 deletion app/lib/app/guards/collaborator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:developer';
import 'package:auto_route/auto_route.dart';
import 'package:cauth_repository/cauth_repository.dart';
import 'package:ccore/ccore.dart';
import 'package:chuckle_chest/shared/cubit/_cubit.dart';
import 'package:chuckle_chest/shared/_shared.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

/// {@template CCollaboratorGuard}
Expand Down
9 changes: 9 additions & 0 deletions app/lib/app/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:cauth_repository/cauth_repository.dart';
import 'package:cgem_repository/cgem_repository.dart';
import 'package:chuckle_chest/app/guards/_guards.dart';
import 'package:chuckle_chest/pages/_pages.dart';
import 'package:cperson_repository/cperson_repository.dart';
import 'package:flutter/material.dart';

part 'router.gr.dart';
Expand Down Expand Up @@ -56,6 +57,10 @@ class CAppRouter extends _$CAppRouter implements AutoRouteGuard {
page: CCollectionsRoute.page,
initial: true,
),
AutoRoute(
path: 'people',
page: CPeopleRoute.page,
),
AutoRoute(path: 'settings', page: CSettingsRoute.page),
],
),
Expand Down Expand Up @@ -87,6 +92,10 @@ class CAppRouter extends _$CAppRouter implements AutoRouteGuard {
path: 'recently-added',
page: CRecentsCollectionRoute.page,
),
AutoRoute(
path: 'edit-person',
page: CEditPersonRoute.page,
),
],
),
],
Expand Down
75 changes: 75 additions & 0 deletions app/lib/app/router.gr.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions app/lib/localization/arb/intl_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,32 @@
"editGemPage_helperMessage": "Tippe auf etwas, um es zu bearbeiten.",
"editGemPage_title_create": "Gemme erstellen",
"editGemPage_title_edit": "Gemme bearbeiten",
"editPersonPage_banner_message": "Änderungen werden beim nächsten Öffnen der App auf andere Benutzer übertragen.",
"editPersonPage_dateOfBirthTile_title": "Geburtsdatum",
"editPersonPage_editNicknameDialog_title": "Spitzname bearbeiten",
"editPersonPage_nicknameTile_title": "Spitzname",
"editPersonPage_title": "Person bearbeiten",
"gem_restartMessage": "Zum Neustarten ziehen.",
"gem_share_message": "Schau dir diese Gemme auf ChuckleChest an! 😂 {link}",
"gem_share_subject": "Das ist so gut! 😂",
"getStartedPage_createChestButton": "Neue Truhe erstellen",
"getStartedPage_logoutButton": "Ausloggen",
"getStartedPage_title": "Legen wir los!",
"homePage_bottomNav_collections": "Sammlungen",
"homePage_bottomNav_people": "Personen",
"homePage_bottomNav_settings": "Einstellungen",
"ok": "Ok",
"otpVerificationPage_error_invalidToken": "Dieser Code ist ungültig. Bitte versuche es erneut.",
"otpVerificationPage_message": "Bitte gebe den Code ein, den wir dir per E-Mail geschickt haben.",
"otpVerificationPage_title": "Ein-Mal-Code-Bestätigung",
"peoplePage_personItem_age": "{age} {age, plural, =0{Jahre} =1{Jahr} other{Jahre}} alt",
"@peoplePage_personItem_age": {
"placeholders": {
"age": {
"type": "int"
}
}
},
"quoteItem_person": "{nickname} • {age} {age, plural, =0{Jahre} =1{Jahr} other{Jahre}} alt",
"@quoteItem_person": {
"placeholders": {
Expand Down
14 changes: 14 additions & 0 deletions app/lib/localization/arb/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,32 @@
"editGemPage_helperMessage": "Tap anything to edit.",
"editGemPage_title_create": "Create a gem",
"editGemPage_title_edit": "Edit the gem",
"editPersonPage_banner_message": "Changes will propagate to other users next time they open the app.",
"editPersonPage_dateOfBirthTile_title": "Date of birth",
"editPersonPage_editNicknameDialog_title": "Edit nickname",
"editPersonPage_nicknameTile_title": "Nickname",
"editPersonPage_title": "Edit person",
"gem_restartMessage": "Pull to restart.",
"gem_share_message": "Check out this gem on ChuckleChest! 😂 {link}",
"gem_share_subject": "This is so good! 😂",
"getStartedPage_createChestButton": "Create a new chest",
"getStartedPage_logoutButton": "Log out",
"getStartedPage_title": "Let's get started!",
"homePage_bottomNav_collections": "Collections",
"homePage_bottomNav_people": "People",
"homePage_bottomNav_settings": "Settings",
"ok": "OK",
"otpVerificationPage_error_invalidToken": "This pin is invalid. Please try again.",
"otpVerificationPage_message": "Please enter the pin we sent to your inbox.",
"otpVerificationPage_title": "One-Time pin verification",
"peoplePage_personItem_age": "{age} {age, plural, =0{years} =1{year} other{years}} old",
"@peoplePage_personItem_age": {
"placeholders": {
"age": {
"type": "int"
}
}
},
"quoteItem_person": "{nickname} • {age} {age, plural, =0{years} =1{year} other{years}} old",
"@quoteItem_person": {
"placeholders": {
Expand Down
42 changes: 42 additions & 0 deletions app/lib/localization/generated/localizations.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,36 @@ abstract class CAppL10n {
/// **'Edit the gem'**
String get editGemPage_title_edit;

/// No description provided for @editPersonPage_banner_message.
///
/// In en, this message translates to:
/// **'Changes will propagate to other users next time they open the app.'**
String get editPersonPage_banner_message;

/// No description provided for @editPersonPage_dateOfBirthTile_title.
///
/// In en, this message translates to:
/// **'Date of birth'**
String get editPersonPage_dateOfBirthTile_title;

/// No description provided for @editPersonPage_editNicknameDialog_title.
///
/// In en, this message translates to:
/// **'Edit nickname'**
String get editPersonPage_editNicknameDialog_title;

/// No description provided for @editPersonPage_nicknameTile_title.
///
/// In en, this message translates to:
/// **'Nickname'**
String get editPersonPage_nicknameTile_title;

/// No description provided for @editPersonPage_title.
///
/// In en, this message translates to:
/// **'Edit person'**
String get editPersonPage_title;

/// No description provided for @gem_restartMessage.
///
/// In en, this message translates to:
Expand Down Expand Up @@ -263,6 +293,12 @@ abstract class CAppL10n {
/// **'Collections'**
String get homePage_bottomNav_collections;

/// No description provided for @homePage_bottomNav_people.
///
/// In en, this message translates to:
/// **'People'**
String get homePage_bottomNav_people;

/// No description provided for @homePage_bottomNav_settings.
///
/// In en, this message translates to:
Expand Down Expand Up @@ -293,6 +329,12 @@ abstract class CAppL10n {
/// **'One-Time pin verification'**
String get otpVerificationPage_title;

/// No description provided for @peoplePage_personItem_age.
///
/// In en, this message translates to:
/// **'{age} {age, plural, =0{years} =1{year} other{years}} old'**
String peoplePage_personItem_age(int age);

/// No description provided for @quoteItem_person.
///
/// In en, this message translates to:
Expand Down
30 changes: 30 additions & 0 deletions app/lib/localization/generated/localizations_de.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ class CAppL10nDe extends CAppL10n {
@override
String get editGemPage_title_edit => 'Gemme bearbeiten';

@override
String get editPersonPage_banner_message => 'Änderungen werden beim nächsten Öffnen der App auf andere Benutzer übertragen.';

@override
String get editPersonPage_dateOfBirthTile_title => 'Geburtsdatum';

@override
String get editPersonPage_editNicknameDialog_title => 'Spitzname bearbeiten';

@override
String get editPersonPage_nicknameTile_title => 'Spitzname';

@override
String get editPersonPage_title => 'Person bearbeiten';

@override
String get gem_restartMessage => 'Zum Neustarten ziehen.';

Expand All @@ -94,6 +109,9 @@ class CAppL10nDe extends CAppL10n {
@override
String get homePage_bottomNav_collections => 'Sammlungen';

@override
String get homePage_bottomNav_people => 'Personen';

@override
String get homePage_bottomNav_settings => 'Einstellungen';

Expand All @@ -109,6 +127,18 @@ class CAppL10nDe extends CAppL10n {
@override
String get otpVerificationPage_title => 'Ein-Mal-Code-Bestätigung';

@override
String peoplePage_personItem_age(int age) {
String _temp0 = intl.Intl.pluralLogic(
age,
locale: localeName,
other: 'Jahre',
one: 'Jahr',
zero: 'Jahre',
);
return '$age $_temp0 alt';
}

@override
String quoteItem_person(Object nickname, int age) {
String _temp0 = intl.Intl.pluralLogic(
Expand Down
30 changes: 30 additions & 0 deletions app/lib/localization/generated/localizations_en.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ class CAppL10nEn extends CAppL10n {
@override
String get editGemPage_title_edit => 'Edit the gem';

@override
String get editPersonPage_banner_message => 'Changes will propagate to other users next time they open the app.';

@override
String get editPersonPage_dateOfBirthTile_title => 'Date of birth';

@override
String get editPersonPage_editNicknameDialog_title => 'Edit nickname';

@override
String get editPersonPage_nicknameTile_title => 'Nickname';

@override
String get editPersonPage_title => 'Edit person';

@override
String get gem_restartMessage => 'Pull to restart.';

Expand All @@ -94,6 +109,9 @@ class CAppL10nEn extends CAppL10n {
@override
String get homePage_bottomNav_collections => 'Collections';

@override
String get homePage_bottomNav_people => 'People';

@override
String get homePage_bottomNav_settings => 'Settings';

Expand All @@ -109,6 +127,18 @@ class CAppL10nEn extends CAppL10n {
@override
String get otpVerificationPage_title => 'One-Time pin verification';

@override
String peoplePage_personItem_age(int age) {
String _temp0 = intl.Intl.pluralLogic(
age,
locale: localeName,
other: 'years',
one: 'year',
zero: 'years',
);
return '$age $_temp0 old';
}

@override
String quoteItem_person(Object nickname, int age) {
String _temp0 = intl.Intl.pluralLogic(
Expand Down
1 change: 1 addition & 0 deletions app/lib/pages/_pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export 'chest/page.dart';
export 'collections/page.dart';
export 'create_gem/page.dart';
export 'edit_gem/page.dart';
export 'edit_person/page.dart';
export 'gem/page.dart';
export 'get_started/page.dart';
export 'home/page.dart';
Expand Down
Loading

0 comments on commit e27b5e0

Please sign in to comment.