Skip to content

Commit b7f69db

Browse files
authored
Merge pull request #498 from OpenPecha/feature/remove-legacy-plan-metadata
Feature/remove legacy plan metadata
2 parents 269001a + fbf2e2c commit b7f69db

22 files changed

Lines changed: 159 additions & 2013 deletions

lib/core/config/app_feature_flags.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ class AppFeatureFlags {
55
/// When true, the app shows only the Coming Soon page.
66
/// Set to false to restore normal app behavior.
77
static const bool kComingSoonMode = false;
8-
static const bool kSchedulePlanNotifications = true;
98
}

lib/core/storage/plan_metadata_store.dart

Lines changed: 0 additions & 141 deletions
This file was deleted.

lib/core/storage/special_plan_started_at_store.dart

Lines changed: 0 additions & 78 deletions
This file was deleted.

lib/core/storage/storage_keys.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ class StorageKeys {
7171
/// once (UUID) and persisted for the lifetime of the install.
7272
static const String pushDeviceId = 'push_device_id';
7373

74-
// Special-plan (ITCC and similar) keys — hardcoded per-day content series.
75-
/// Per-plan startedAt prefix. Full key: `special_plan_started_at_<planId>` → ISO8601 string.
76-
static const String specialPlanStartedAtPrefix = 'special_plan_started_at_';
77-
78-
// General plan duration-based notification keys — all other enrolled plans.
79-
/// Per-plan startedAt prefix. Full key: `plan_started_at_<planId>` → ISO8601 string.
80-
static const String planStartedAtPrefix = 'plan_started_at_';
81-
/// Per-plan totalDays prefix. Full key: `plan_total_days_<planId>` → int.
82-
static const String planTotalDaysPrefix = 'plan_total_days_';
83-
8474
// ========== FEATURES ==========
8575
/// Profile data JSON
8676
static const String profileData = 'profile_data';

lib/features/auth/presentation/providers/auth_notifier.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import 'dart:convert';
55
import 'package:flutter/foundation.dart';
66
import 'package:flutter_pecha/core/error/failures.dart';
77
import 'package:flutter_pecha/core/network/connectivity_service.dart';
8-
import 'package:flutter_pecha/core/storage/plan_metadata_store.dart';
9-
import 'package:flutter_pecha/core/storage/special_plan_started_at_store.dart';
108
import 'package:flutter_pecha/core/storage/storage_keys.dart';
119
import 'package:flutter_pecha/core/utils/app_logger.dart';
1210
import 'package:flutter_pecha/features/notifications/data/services/routine_notification_service.dart';
@@ -486,11 +484,6 @@ class AuthNotifier extends StateNotifier<AuthState> {
486484
// Clear any pending deep-link route so a stale destination doesn't survive logout.
487485
ref.read(pendingRouteProvider.notifier).state = null;
488486

489-
// Clear notification caches so a different user signing in does not
490-
// inherit the prior user's day index or "already shown" flags.
491-
await SpecialPlanStartedAtStore.clearAll();
492-
await PlanMetadataStore.clearAll();
493-
494487
// Cancel every pending notification so a different signing-in user
495488
// does not inherit this user's schedule.
496489
try {

lib/features/connect/presentation/widgets/discover_groups_section.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class DiscoverGroupsSection extends StatelessWidget {
1515
});
1616

1717
final List<GroupProfile> groups;
18-
final int total;
1918

2019
static const double _tileSize = 72;
2120

0 commit comments

Comments
 (0)