Skip to content

Fix : profile social few fixes#432

Open
NITHINSPACETIME wants to merge 3 commits intoRyanYuuki:mainfrom
NITHINSPACETIME:fix-profile-social
Open

Fix : profile social few fixes#432
NITHINSPACETIME wants to merge 3 commits intoRyanYuuki:mainfrom
NITHINSPACETIME:fix-profile-social

Conversation

@NITHINSPACETIME
Copy link
Copy Markdown
Contributor

@NITHINSPACETIME NITHINSPACETIME commented May 3, 2026

image

fixed the issue (shebby mentiond) and avatar cut off fixed ( ig)

Copilot AI review requested due to automatic review settings May 3, 2026 07:41
@NITHINSPACETIME NITHINSPACETIME changed the title Fix : profile social Fix : profile social few fixes May 3, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the AniList-facing profile/social experience by adding a dedicated AniList settings editor, tightening some social interactions around login state, and shifting AniList parsing/query behavior toward userPreferred titles and names.

Changes:

  • Add a new AniList settings screen, model, and GraphQL fetch/update flow, plus entry points from account management and profile actions.
  • Improve profile/social UX with login guards for likes/messages/replies, clearer profile-load messaging, and a long-press list-editor shortcut on activity cards.
  • Update AniList queries and parsers to request/prefer userPreferred titles/names across media, profile, and homepage data.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
lib/widgets/non_widgets/activity_card.dart Adds login guard for likes and a long-press list editor on list activities.
lib/screens/settings/sub_settings/settings_anilist_api.dart New full-screen AniList settings editor UI and save flow.
lib/screens/settings/sub_settings/settings_accounts.dart Adds an AniList Settings entry in the AniList account management sheet.
lib/screens/settings/search/settings_search_metadata.dart Adds search metadata/icon for the new AniList Settings entry.
lib/screens/profile/widgets/user_profile_header.dart Adjusts profile avatar sizing/alignment in the user header.
lib/screens/profile/widgets/user_profile_app_bar.dart Adjusts compact profile avatar sizing/alignment.
lib/screens/profile/widgets/profile_header.dart Adds AniList Settings action to own-profile menus and tweaks avatar alignment.
lib/screens/profile/user_profile_page.dart Improves null-profile messaging and guards message composition behind login.
lib/screens/profile/activity_details_page.dart Guards reply posting and reply likes behind login.
lib/models/Media/relation.dart Prefers userPreferred title when building relation models.
lib/models/Media/media.dart Prefers userPreferred titles across multiple media constructors.
lib/models/Anilist/anilist_user_settings.dart Introduces AniList settings and metadata model serialization.
lib/models/Anilist/anilist_profile.dart Prefers userPreferred names/titles in favorites and stats models.
lib/models/Anilist/anilist_media_user.dart Prefers userPreferred title in tracked media parsing.
lib/controllers/services/anilist/anilist_queries.dart Requests userPreferred in detail-related GraphQL queries.
lib/controllers/services/anilist/anilist_data.dart Requests userPreferred in homepage/manga queries and adds optional auth headers.
lib/controllers/services/anilist/anilist_auth.dart Adds AniList settings fetch/update/cache support and broadens userPreferred query usage.
Comments suppressed due to low confidence (1)

lib/controllers/services/anilist/anilist_auth.dart:42

  • These caches are never cleared on logout, but SettingsAnilistApi reads them immediately before refetching. After signing out and into a different AniList account, the settings screen will briefly show the previous account's bio/preferences and can keep doing so permanently if the refresh fails.
  AnilistUserSettings? cachedSettings;
  AnilistSettingsMetadata? cachedMetadata;

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +59 to +67
final isManga = activity.type == 'MANGA_LIST';
final service = Get.find<ServiceHandler>().onlineService;
final media = Media(
id: activity.mediaId.toString(),
title: activity.mediaTitle ?? 'Unknown',
poster: activity.mediaCoverUrl ?? '',
cover: activity.mediaBannerUrl,
mediaType: isManga ? ItemType.manga : ItemType.anime,
serviceType: Get.find<ServiceHandler>().serviceType.value,
if (mounted) setState(() {});
},
onDelete: (s) async {
final listId = service.currentMedia.value.mediaListId ?? media.id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants