-
Notifications
You must be signed in to change notification settings - Fork 348
Deploy v2.5 of Resonate App #564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
66d9350
6e7444f
74af187
4111cef
2e1165d
bf04839
a90bf39
3036dd3
2615630
02823c9
e97825d
b647361
d6ec72a
2e5be24
b63264e
754e857
154b71f
32e37d6
0d3252b
72950c3
5d88106
eea1ffc
78b190f
153bc41
26f4986
e2738bf
63d299d
511b763
bca7288
c932087
9629b14
f60cc59
64a2178
41d1f14
0d821bb
404b6f0
e196d88
66de19d
08196a3
1e70a5c
eb79067
5096415
c790e1d
ba67c1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,7 @@ | ||
| arb-dir: lib/l10n | ||
| template-arb-file: app_en.arb | ||
| output-localization-file: app_localizations.dart | ||
| supported-locales: | ||
| - en | ||
| - hi | ||
| untranslated-messages-file: untranslated.txt | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,6 +10,8 @@ import 'package:get/get.dart'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:meilisearch/meilisearch.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:resonate/controllers/auth_state_controller.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:resonate/models/chapter.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:resonate/models/live_chapter_attendees_model.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:resonate/models/live_chapter_model.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:resonate/models/resonate_user.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:resonate/models/story.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import 'package:resonate/services/appwrite_service.dart'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -97,6 +99,9 @@ class ExploreStoryController extends GetxController { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| story.chapters = storyChapters; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| story.isLikedByCurrentUser.value = hasUserLiked; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| story.likesCount.value = likes; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| final liveChapter = await fetchLiveChapterForStory(story.storyId); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| story.liveChapter = liveChapter; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isLoadingStoryPage.value = false; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -671,6 +676,34 @@ class ExploreStoryController extends GetxController { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return currentStoryChapters; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Future<LiveChapterModel?> fetchLiveChapterForStory(String storyId) async { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| List<Document> liveStoryDocuments = await databases | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .listDocuments( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| databaseId: storyDatabaseId, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| collectionId: liveChaptersCollectionId, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| queries: [Query.equal('storyId', storyId)], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .then((value) => value.documents); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (liveStoryDocuments.isEmpty) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return null; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| final attendeesDocument = await databases.getDocument( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| databaseId: userDatabaseID, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| collectionId: liveChapterAttendeesCollectionId, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| documentId: liveStoryDocuments.first.data['\$id'], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| final attendeesModel = LiveChapterAttendeesModel.fromJson( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| attendeesDocument.data, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| final liveChapterModel = LiveChapterModel.fromJson( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| liveStoryDocuments.first.data, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ).copyWith(attendees: attendeesModel); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return liveChapterModel; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+691
to
+705
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the document ID when loading attendees.
- final attendeesDocument = await databases.getDocument(
+ final attendeesDocument = await databases.getDocument(
databaseId: userDatabaseID,
collectionId: liveChapterAttendeesCollectionId,
- documentId: liveStoryDocuments.first.data['\$id'],
+ documentId: liveStoryDocuments.first.$id,
);📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Future<bool> checkIfStoryLikedByUser(String storyId) async { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| List<Document> userLikeDocuments = await databases | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .listDocuments( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Gujarati locale in supported-locales configuration.
The PR introduces comprehensive Gujarati localization support (AppLocalizationsGu, app_gu.arb, Info.plist "gu" entry, untranslated.txt "gu" key), but the l10n.yaml configuration only lists "en" and "hi" in supported-locales. This inconsistency will prevent Flutter's localization system from properly generating and resolving Gujarati translations.
Apply this diff to add Gujarati locale support:
supported-locales: - en - hi + - gu🤖 Prompt for AI Agents