From 6f46a85ff3a7b63483c9f62d4ce1df55e8cf7d0d Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Wed, 25 Mar 2026 06:52:22 +0200 Subject: [PATCH] fix(rgi+portal): default sort desc by termen, fix overlaps, tooltip RGI (both pages): - Default sort: Termen descrescator (cel mai in viitor sus) Portal map: - Basemap switcher moved left (right-12) to avoid zoom controls overlap - Selection toolbar moved up (bottom-8) to avoid attribution overlap - Download button has title tooltip on mobile cards Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/(modules)/rgi-test/page.tsx | 2 +- src/app/(portal)/portal/page.tsx | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/app/(modules)/rgi-test/page.tsx b/src/app/(modules)/rgi-test/page.tsx index afee236..967b4ee 100644 --- a/src/app/(modules)/rgi-test/page.tsx +++ b/src/app/(modules)/rgi-test/page.tsx @@ -577,7 +577,7 @@ export default function RgiTestPage() { "solved", ); const [searchQuery, setSearchQuery] = useState(""); - const [sortState, setSortState] = useState(null); + const [sortState, setSortState] = useState({ key: "dueDate", dir: "desc" }); // Column visibility const [visibleCols, setVisibleCols] = useState>( diff --git a/src/app/(portal)/portal/page.tsx b/src/app/(portal)/portal/page.tsx index 82427cf..eeae2b7 100644 --- a/src/app/(portal)/portal/page.tsx +++ b/src/app/(portal)/portal/page.tsx @@ -588,7 +588,7 @@ function RgiContent() { const [downloadingAppPk, setDownloadingAppPk] = useState(null); const [filterMode, setFilterMode] = useState<"all" | "solved" | "confirmed">("solved"); const [searchQuery, setSearchQuery] = useState(""); - const [sortState, setSortState] = useState(null); + const [sortState, setSortState] = useState({ key: "dueDate", dir: "desc" }); const [visibleCols, setVisibleCols] = useState>( () => new Set(ALL_COLUMNS.filter((c) => c.defaultVisible).map((c) => c.key)), @@ -920,6 +920,7 @@ function RgiContent() {