remove mobile demo routes
This commit is contained in:
@@ -16,20 +16,16 @@ export type MobileFlowScreen =
|
||||
| "work-unit-detail";
|
||||
|
||||
interface MobileFlowPageProps {
|
||||
publicDemo?: boolean;
|
||||
screen: MobileFlowScreen;
|
||||
}
|
||||
|
||||
export const MobileFlowPage = ({
|
||||
publicDemo = false,
|
||||
screen,
|
||||
}: MobileFlowPageProps) => {
|
||||
export const MobileFlowPage = ({ screen }: MobileFlowPageProps) => {
|
||||
const navigate = useNavigate();
|
||||
const workspace = useMobileWorkspace();
|
||||
const homePath = publicDemo ? "/design" : "/";
|
||||
const workPath = publicDemo ? "/design/work" : "/work";
|
||||
const chatPath = publicDemo ? "/design/chat" : "/chat";
|
||||
const detailPath = publicDemo ? "/design/work/flow-08" : "/work/flow-08";
|
||||
const homePath = "/";
|
||||
const workPath = "/work";
|
||||
const chatPath = "/chat";
|
||||
const detailPath = "/work/flow-08";
|
||||
|
||||
const handleOpenUnit = () => {
|
||||
if (screen === "work-list" && !workspace.expanded) {
|
||||
|
||||
@@ -16,10 +16,4 @@ export default [
|
||||
route("dashboard", "./routes/app/dashboard/page.tsx"),
|
||||
route("todos", "./routes/app/todos/page.tsx"),
|
||||
]),
|
||||
route("design", "./routes/design/layout.tsx", [
|
||||
index("./routes/design/page.tsx"),
|
||||
route("chat", "./routes/design/chat/page.tsx"),
|
||||
route("work", "./routes/design/work/page.tsx"),
|
||||
route("work/:workUnitId", "./routes/design/work-unit/page.tsx"),
|
||||
]),
|
||||
] satisfies RouteConfig;
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { MobileFlowPage } from "@/components/mobile-workspace/mobile-flow-page";
|
||||
|
||||
import type { Route } from "./+types/page";
|
||||
|
||||
export const meta = (_args: Route.MetaArgs) => [
|
||||
{ title: "Chat | Zopu" },
|
||||
{ content: "Chat with Zopu", name: "description" },
|
||||
];
|
||||
|
||||
export default function PublicMobileChatPage() {
|
||||
return <MobileFlowPage publicDemo screen="assistant-chat" />;
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import { Outlet } from "react-router";
|
||||
|
||||
export default function DesignLayout() {
|
||||
return (
|
||||
<div className="min-h-svh bg-[#11110f]">
|
||||
<Outlet />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
import { MobileFlowPage } from "@/components/mobile-workspace/mobile-flow-page";
|
||||
|
||||
import type { Route } from "./+types/page";
|
||||
|
||||
export const meta = (_args: Route.MetaArgs) => [
|
||||
{ title: "Zopu" },
|
||||
{
|
||||
content: "Review active work and open the next action",
|
||||
name: "description",
|
||||
},
|
||||
];
|
||||
|
||||
export default function PublicMobileHomePage() {
|
||||
return <MobileFlowPage publicDemo screen="home" />;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
import { MobileFlowPage } from "@/components/mobile-workspace/mobile-flow-page";
|
||||
|
||||
import type { Route } from "./+types/page";
|
||||
|
||||
export const meta = (_args: Route.MetaArgs) => [
|
||||
{ title: "Work unit | Zopu" },
|
||||
{
|
||||
content: "Review the state, next milestone, and activity for a work unit",
|
||||
name: "description",
|
||||
},
|
||||
];
|
||||
|
||||
export default function PublicMobileWorkUnitPage() {
|
||||
return <MobileFlowPage publicDemo screen="work-unit-detail" />;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
import { MobileFlowPage } from "@/components/mobile-workspace/mobile-flow-page";
|
||||
|
||||
import type { Route } from "./+types/page";
|
||||
|
||||
export const meta = (_args: Route.MetaArgs) => [
|
||||
{ title: "Active work | Zopu" },
|
||||
{
|
||||
content: "Browse active work and expand a work unit in place",
|
||||
name: "description",
|
||||
},
|
||||
];
|
||||
|
||||
export default function PublicMobileWorkPage() {
|
||||
return <MobileFlowPage publicDemo screen="work-list" />;
|
||||
}
|
||||
Reference in New Issue
Block a user