From 7d0e49c647d67b373cac0e9663482056fb667d8d Mon Sep 17 00:00:00 2001 From: Gabry848 Date: Sat, 16 May 2026 11:54:47 +0200 Subject: [PATCH 1/6] feat: add global task search entry point --- src/locales/en.json | 18 ++++++++++ src/locales/it.json | 21 +++++++++++- src/navigation/screens/Categories.tsx | 49 +++++++++++++++++---------- 3 files changed, 69 insertions(+), 19 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index e2bfd99..a861f99 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -570,6 +570,19 @@ "friday": "Fri", "saturday": "Sat", "sunday": "Sun" + }, + "commitmentsOf": "Events for", + "loadingEvents": "Loading events...", + "noEventsForDate": "No events for this date", + "syncing": "Sync...", + "defaultCategory": "Calendar", + "errors": { + "title": "Error", + "completeFailed": "Unable to complete the task. Please try again.", + "reopenFailed": "Unable to reopen the task. Please try again.", + "editFailed": "Unable to edit the task. Please try again.", + "warningTitle": "Warning", + "localSaveWarning": "Task added locally but error saving to server." } }, "calendar20": { @@ -598,6 +611,11 @@ "categories": "Categories", "showAll": "Show all", "settings": "Settings" + }, + "loadMore": "Load more", + "duration": { + "hour": "1 hour", + "hours": "{{count}} hours" } }, "statistics": { diff --git a/src/locales/it.json b/src/locales/it.json index de25566..19aa20e 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -571,6 +571,19 @@ "friday": "Ven", "saturday": "Sab", "sunday": "Dom" + }, + "commitmentsOf": "Impegni del", + "loadingEvents": "Caricamento impegni...", + "noEventsForDate": "Nessun impegno per questa data", + "syncing": "Sincronizzazione...", + "defaultCategory": "Calendario", + "errors": { + "title": "Errore", + "completeFailed": "Impossibile completare il task. Riprova.", + "reopenFailed": "Impossibile riaprire il task. Riprova.", + "editFailed": "Impossibile modificare il task. Riprova.", + "warningTitle": "Attenzione", + "localSaveWarning": "Task aggiunto localmente ma errore nel salvataggio sul server." } }, "calendar20": { @@ -597,7 +610,13 @@ "drawer": { "views": "Viste", "categories": "Categorie", - "showAll": "Mostra tutto" + "showAll": "Mostra tutto", + "settings": "Impostazioni" + }, + "loadMore": "Carica altri", + "duration": { + "hour": "1 ora", + "hours": "{{count}} ore" } }, "statistics": { diff --git a/src/navigation/screens/Categories.tsx b/src/navigation/screens/Categories.tsx index b3237d1..002e3ee 100644 --- a/src/navigation/screens/Categories.tsx +++ b/src/navigation/screens/Categories.tsx @@ -10,7 +10,6 @@ import { StatusBar } from 'expo-status-bar'; import { useFocusEffect } from "@react-navigation/native"; import CategoryList from "../../components/Category/CategoryList"; import AddCategoryButton from "../../components/Category/AddCategoryButton"; -import SearchTasksButton from "../../components/UI/SearchTasksButton"; import GlobalTaskSearch from "../../components/Task/GlobalTaskSearch"; import { useTranslation } from "react-i18next"; import { TaskCacheService } from "../../services/TaskCacheService"; @@ -20,6 +19,7 @@ import { ScreenContainer, ScreenHeader, } from "../../components/UI/foundation"; +import { MaterialIcons } from "@expo/vector-icons"; export default function Categories() { const { t } = useTranslation(); @@ -69,7 +69,20 @@ export default function Categories() { - + + + + )} + /> - - - @@ -113,17 +120,23 @@ const styles = StyleSheet.create({ scrollContent: { flexGrow: 1, }, - searchContainer: { - flexDirection: "row", + searchIconButton: { + width: 36, + height: 36, + borderRadius: 18, + backgroundColor: "#ffffff", + borderWidth: 1, + borderColor: "#e1e5e9", + justifyContent: "center", alignItems: "center", - paddingHorizontal: 16, - marginVertical: 8, - }, - searchButton: { - flex: 1, - marginHorizontal: 0, // Override default margin - marginRight: 10, - marginVertical: 0, // Override default margin + shadowColor: "#000", + shadowOffset: { + width: 0, + height: 2, + }, + shadowOpacity: 0.04, + shadowRadius: 4, + elevation: 1, }, reloadButton: { width: 44, From 61fc37a9c2fb8784ec7f180e5c57af109a63160d Mon Sep 17 00:00:00 2001 From: Gabry848 Date: Sat, 16 May 2026 11:55:14 +0200 Subject: [PATCH 2/6] feat: polish global search header From 93552d6119327d8a238dd0533550449fae68010d Mon Sep 17 00:00:00 2001 From: Gabry848 Date: Sat, 16 May 2026 11:58:56 +0200 Subject: [PATCH 3/6] feat: polish global search header From 86a1b7e16b16549fdbf222c3f8b59339531404b1 Mon Sep 17 00:00:00 2001 From: Gabry848 Date: Sat, 16 May 2026 11:59:16 +0200 Subject: [PATCH 4/6] feat: polish global search header From 3ed9519dc78d2cc5d922758757a0b1c7307ab47e Mon Sep 17 00:00:00 2001 From: Gabry848 Date: Sat, 16 May 2026 11:59:41 +0200 Subject: [PATCH 5/6] feat: polish global search header From 05ee58b0efc026027eb46aa0f92b9bd3dfc6115c Mon Sep 17 00:00:00 2001 From: Gabry848 Date: Sat, 16 May 2026 12:00:16 +0200 Subject: [PATCH 6/6] feat: polish global search header --- src/components/Task/GlobalTaskSearch.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/Task/GlobalTaskSearch.tsx b/src/components/Task/GlobalTaskSearch.tsx index c50411f..cd7bda6 100644 --- a/src/components/Task/GlobalTaskSearch.tsx +++ b/src/components/Task/GlobalTaskSearch.tsx @@ -275,6 +275,7 @@ const styles = StyleSheet.create({ backgroundColor: "#ffffff", }, header: { + position: "relative", paddingTop: 60, // Per lo spazio della status bar paddingHorizontal: 16, paddingBottom: 16, @@ -282,6 +283,16 @@ const styles = StyleSheet.create({ borderBottomWidth: 1, borderBottomColor: "#e1e5e9", }, + dragHandle: { + position: "absolute", + top: 32, + alignSelf: "center", + width: 44, + height: 4, + borderRadius: 2, + backgroundColor: "#d1d5db", + marginBottom: 12, + }, headerTop: { flexDirection: "row", justifyContent: "space-between", @@ -290,7 +301,7 @@ const styles = StyleSheet.create({ }, title: { fontSize: 28, - fontWeight: "200", + fontWeight: "700", color: "#000000", fontFamily: "System", letterSpacing: -1.5, @@ -303,14 +314,6 @@ const styles = StyleSheet.create({ padding: 8, marginLeft: 8, }, - statsContainer: { - marginTop: 12, - }, - statsText: { - fontSize: 14, - color: "#666666", - fontFamily: "System", - }, content: { flex: 1, },