Task 2e96585c: Definitions list and edit sheet (#198)

This commit was merged in pull request #198.
This commit is contained in:
2026-09-23 21:26:27 -04:00
parent dbe873eb2a
commit 33d8e0d2ac
9 changed files with 2385 additions and 1 deletions
+4 -1
View File
@@ -1,5 +1,6 @@
import { useState } from "react";
import "./App.css";
import DefinitionsTab from "./definitions/DefinitionsTab";
import TodayTab from "./today/TodayTab";
const TABS = [
@@ -15,7 +16,7 @@ export default function App() {
const [active, setActive] = useState<TabId>("today");
// Built screens own their header (ADMIN-SPEC §1); the generic shell header
// stays for placeholder tabs and is visually hidden otherwise.
const hasScreen = active === "today";
const hasScreen = active === "today" || active === "tasks";
return (
<div className="admin-shell">
@@ -30,6 +31,8 @@ export default function App() {
>
{active === "today" ? (
<TodayTab />
) : active === "tasks" ? (
<DefinitionsTab />
) : (
<p className="admin-placeholder">
{TABS.find((tab) => tab.id === active)?.label} placeholder — screens