Skip to content

Afsan workpace#20

Merged
syed-reza98 merged 8 commits into
mainfrom
afsan-workpace
May 4, 2026
Merged

Afsan workpace#20
syed-reza98 merged 8 commits into
mainfrom
afsan-workpace

Conversation

@afsan123

@afsan123 afsan123 commented May 4, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

anamchowdhury and others added 8 commits May 3, 2026 18:27
…gle Fonts while streamlining project-wide theme dependencies.
Comment out the hardcoded org.gradle.java.home entry in android/gradle.properties so the build no longer forces the Android Studio JBR path. This lets the system or configured toolchain determine the JDK (avoiding issues with unsupported JDK versions) while keeping other Gradle settings unchanged.
@syed-reza98
syed-reza98 marked this pull request as ready for review May 4, 2026 16:48
Copilot AI review requested due to automatic review settings May 4, 2026 16:48
@syed-reza98
syed-reza98 merged commit 4bb501d into main May 4, 2026
6 checks passed
@syed-reza98
syed-reza98 deleted the afsan-workpace branch May 4, 2026 16:49
@syed-reza98
syed-reza98 restored the afsan-workpace branch May 4, 2026 16:49

Copilot AI left a comment

Copy link
Copy Markdown

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 updates PetSphere’s UI/theming (Market, Discovery, Adoption Center, branding) and adds matchmaking/discovery behavior to support a 7‑day discovery cooldown after a breeding request is rejected.

Changes:

  • Add rejected_at to match_requests and implement a 7‑day rejection cooldown in discovery/matching logic.
  • Refactor Discovery to support a per-tab “browsing pet” and introduce new filter modes (Same Breed / Nearby).
  • Redesign Marketplace/ProductCard UI and refresh AppTheme tokens; remove the legacy Material3 theme file.

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
supabase/migrations/20260503160000_match_requests_rejected_at.sql Adds rejected_at column and backfills for existing rejected requests.
lib/widgets/common/petfolio_widgets.dart Minor formatting/whitespace cleanup.
lib/widgets/brand_logo.dart Updates brand text rendering and variants; adds theme/font dependencies.
lib/views/pet_profile_screen.dart Formatting + improved error SnackBar when sending match requests fails.
lib/views/marketplace_screen.dart Major Marketplace UI refactor to slivers, new header/search/cart components.
lib/views/home_screen.dart Minor formatting changes.
lib/views/discovery_screen.dart Discovery UI redesign, new filter modes, and integration with browsing-pet provider.
lib/views/components/product_card.dart ProductCard redesigned; simplified styling and typography updates.
lib/views/adoption_center_screen.dart Replaces grid with swipe-card adoption experience (mock data).
lib/theme/app_theme.dart Updates brand palette and Material 3 theme configuration/shadows.
lib/theme/app_theme_v2_material3.dart Deleted legacy theme implementation.
lib/repositories/notification_repository.dart Fixes notification insert payload to use actual variables.
lib/repositories/match_repository.dart Adds cooldown logic, new discovery query exclusions, and returns match_request id on like.
lib/models/pet_health_extended_models.dart Uses alert color for overdue medication status.
lib/controllers/match_controller.dart Adds discovery browsing pet provider + handles new match repository API.
android/gradle.properties Comments out machine-specific org.gradle.java.home.
.gitignore Adds ignore for /android/gradle.properties and removes duplicate entries.
.cursor/settings.json Clears Cursor plugin settings.

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

Comment on lines +419 to +423
if (filterType != null &&
filterType != 'nearby' &&
filterType != pet.animalType) {
filterType = null;
}
Comment on lines +91 to +97
Container(
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: cs.primary,
borderRadius: BorderRadius.circular(12),
),
child: const Icon(Icons.tune_rounded, color: Colors.white, size: 24),
Comment on lines +57 to +66
Center(
child: product.images.isNotEmpty
? CachedNetworkImage(
imageUrl: product.images[0],
fit: BoxFit.cover,
width: double.infinity,
height: double.infinity,
)
: Icon(Icons.pets_rounded, color: colorScheme.primary.withAlpha(50), size: 40),
),
Comment on lines +3 to +4
import '../theme/app_theme.dart';
import 'package:google_fonts/google_fonts.dart';
Comment on lines +254 to +268
IconButton(
icon: const Icon(Icons.shopping_bag_outlined),
onPressed: () => context.push('/cart'),
),
if (count > 0)
Positioned(
right: 8,
top: 8,
child: Container(
padding: const EdgeInsets.all(4),
decoration: BoxDecoration(color: cs.primary, shape: BoxShape.circle),
child: Text(
'$count',
style: const TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.bold),
),
Comment on lines +212 to +214
if (index >= marketState.products.length) {
return const Center(child: CircularProgressIndicator());
}
@afsan123
afsan123 deleted the afsan-workpace branch May 10, 2026 18:36
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.

4 participants