Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[auth] Update coach screen

Neeraj Guptafb4f5c209528
diff --git a/auth/lib/l10n/arb/app_en.arb b/auth/lib/l10n/arb/app_en.arb
index 50340de103..78f111d6a9 100644
--- a/auth/lib/l10n/arb/app_en.arb
+++ b/auth/lib/l10n/arb/app_en.arb
@@ -155,7 +155,8 @@
"leaveFamily": "Leave family",
"leaveFamilyMessage": "Are you sure that you want to leave the family plan?",
"inFamilyPlanMessage": "You are on a family plan!",
- "swipeHint": "Swipe left to edit or remove codes",
+ "hintForMobile": "Long press on a code to edit or remove.",
+ "hintForDesktop": "Right click on a code to edit or remove.",
"scan": "Scan",
"scanACode": "Scan a code",
"verify": "Verify",
diff --git a/auth/lib/services/preference_service.dart b/auth/lib/services/preference_service.dart
index 6da91465ea..ba43e69be3 100644
--- a/auth/lib/services/preference_service.dart
+++ b/auth/lib/services/preference_service.dart
@@ -9,7 +9,7 @@ class PreferenceService {
late final SharedPreferences _prefs;
- static const kHasShownCoachMarkKey = "has_shown_coach_mark";
+ static const kHasShownCoachMarkKey = "has_shown_coach_mark_v2";
static const kShouldShowLargeIconsKey = "should_show_large_icons";
static const kShouldHideCodesKey = "should_hide_codes";
static const kShouldAutoFocusOnSearchBar = "should_auto_focus_on_search_bar";
diff --git a/auth/lib/ui/home/coach_mark_widget.dart b/auth/lib/ui/home/coach_mark_widget.dart
index b14e97a25b..9234aa7074 100644
--- a/auth/lib/ui/home/coach_mark_widget.dart
+++ b/auth/lib/ui/home/coach_mark_widget.dart
@@ -4,6 +4,8 @@ import 'package:ente_auth/core/event_bus.dart';
import 'package:ente_auth/events/codes_updated_event.dart';
import 'package:ente_auth/l10n/l10n.dart';
import 'package:ente_auth/services/preference_service.dart';
+import 'package:ente_auth/utils/platform_util.dart';
+import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class CoachMarkWidget extends StatelessWidget {
@@ -33,14 +35,16 @@ class CoachMarkWidget extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(
- Icons.swipe_left,
+ Icons.info_outline,
size: 42,
),
const SizedBox(
height: 24,
),
Text(
- l10n.swipeHint,
+ PlatformUtil.isDesktop()
+ ? l10n.hintForDesktop
+ : l10n.hintForMobile,
style: Theme.of(context).textTheme.titleLarge,
),
const SizedBox(