From 5d873f78c7e0298717e1dd53aa1a0280f2d2b377 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Sun, 14 Sep 2025 00:42:20 +1000 Subject: [PATCH 1/3] Improve mobile UX for roadmaps dashboard --- apps/web/components/roadmap/RoadmapBoard.tsx | 6 +- apps/web/components/roadmap/RoadmapColumn.tsx | 2 +- .../components/roadmap/RoadmapItemModal.tsx | 216 +++++++++--------- .../pages/[page_id]/roadmap/[board_id].tsx | 4 - 4 files changed, 118 insertions(+), 110 deletions(-) diff --git a/apps/web/components/roadmap/RoadmapBoard.tsx b/apps/web/components/roadmap/RoadmapBoard.tsx index 46ae0c8..bb5566b 100644 --- a/apps/web/components/roadmap/RoadmapBoard.tsx +++ b/apps/web/components/roadmap/RoadmapBoard.tsx @@ -47,10 +47,10 @@ export default function RoadmapBoard({ return ( <> -
-
+
+
{columns.map((column) => ( diff --git a/apps/web/components/roadmap/RoadmapColumn.tsx b/apps/web/components/roadmap/RoadmapColumn.tsx index be3f41a..e00cd93 100644 --- a/apps/web/components/roadmap/RoadmapColumn.tsx +++ b/apps/web/components/roadmap/RoadmapColumn.tsx @@ -45,7 +45,7 @@ export default function RoadmapColumn({ }: RoadmapColumnProps) { return (
- + -
+
+ {/* Desktop Close Button */} - -
- {formErrors.general && ( -
-
- {formErrors.general} -
-
- )} - {formErrors.title && ( -
-
- {formErrors.title} + + {/* Mobile Header with Close Button */} +
+

+ {editingItem ? "Edit Item" : "Create Item"} +

+ +
+
+ + {formErrors.general && ( +
+
+ {formErrors.general} +
-
- )} - -
-
+ )} -
-
- - setItemForm((prev) => ({ - ...prev, - title: e.target.value, - })) - } - className="w-full text-xl font-semibold leading-6 text-gray-900 dark:text-gray-100 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md px-3 py-2 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 focus:outline-none mb-6" - placeholder="Enter item title..." - /> - + {formErrors.title && ( +
+
+ {formErrors.title} +
-
+ )} -
- {categories.length > 0 && ( -
- - Category - - setItemForm((prev) => ({ ...prev, - category_id: e.target.value, + title: e.target.value, })) } - className="text-sm rounded-md border-gray-300 dark:border-gray-600 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 dark:bg-gray-700 dark:text-gray-300" - > - - {categories.map((category) => ( - - ))} - + className="w-full text-xl font-semibold leading-6 text-gray-900 dark:text-gray-100 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md px-3 py-2 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 focus:outline-none mb-6" + placeholder="Enter item title..." + /> +
- )} - -
- - Board - - - {board.title} -
-
- - + {/* Right side - Metadata */} +
+ {categories.length > 0 && ( +
+ + Category + + +
+ )} + +
+ + Board + + + {board.title} + +
+ +
+ + +
-
- + +
diff --git a/apps/web/pages/pages/[page_id]/roadmap/[board_id].tsx b/apps/web/pages/pages/[page_id]/roadmap/[board_id].tsx index 899d84d..9e2d0c1 100644 --- a/apps/web/pages/pages/[page_id]/roadmap/[board_id].tsx +++ b/apps/web/pages/pages/[page_id]/roadmap/[board_id].tsx @@ -121,10 +121,6 @@ export default function RoadmapBoardDetails({ Private
)} - - - {board.description || "No description"} -
} showBackButton={true} From 3a27db5ce4d7f44f651c3dc7859e75426cc544b9 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Sun, 14 Sep 2025 00:48:56 +1000 Subject: [PATCH 2/3] Fix padding --- apps/web/components/roadmap/RoadmapBoard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/roadmap/RoadmapBoard.tsx b/apps/web/components/roadmap/RoadmapBoard.tsx index bb5566b..80fe6dd 100644 --- a/apps/web/components/roadmap/RoadmapBoard.tsx +++ b/apps/web/components/roadmap/RoadmapBoard.tsx @@ -50,7 +50,7 @@ export default function RoadmapBoard({
{columns.map((column) => ( From e53ac070f7d4a901e7e3f7a88b1fcfd2fcf95bb8 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Sun, 14 Sep 2025 00:52:13 +1000 Subject: [PATCH 3/3] Fix hover buttons on mobile --- apps/web/components/roadmap/RoadmapItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/roadmap/RoadmapItem.tsx b/apps/web/components/roadmap/RoadmapItem.tsx index 002ed7a..380b235 100644 --- a/apps/web/components/roadmap/RoadmapItem.tsx +++ b/apps/web/components/roadmap/RoadmapItem.tsx @@ -50,7 +50,7 @@ export default function RoadmapItem({ )}
-
+