From 343b96a9bbd8de29517b211e25398f332c853b0d Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Sat, 7 Feb 2026 21:13:46 -0700 Subject: [PATCH 1/4] Create rule flow core infrastructure and routing --- .../navigation/ConditionalFooter.tsx | 32 ++++++++++ .../navigation/ConditionalNavigation.tsx | 24 +++++++ .../navigation/TopNav/TopNav.container.tsx | 1 + app/create/[step]/page.tsx | 54 ++++++++++++++++ app/create/context/CreateFlowContext.tsx | 64 +++++++++++++++++++ app/create/layout.tsx | 24 +++++++ app/create/types.ts | 62 ++++++++++++++++++ app/layout.tsx | 16 ++--- 8 files changed, 265 insertions(+), 12 deletions(-) create mode 100644 app/components/navigation/ConditionalFooter.tsx create mode 100644 app/components/navigation/ConditionalNavigation.tsx create mode 100644 app/create/[step]/page.tsx create mode 100644 app/create/context/CreateFlowContext.tsx create mode 100644 app/create/layout.tsx create mode 100644 app/create/types.ts diff --git a/app/components/navigation/ConditionalFooter.tsx b/app/components/navigation/ConditionalFooter.tsx new file mode 100644 index 0000000..48461d5 --- /dev/null +++ b/app/components/navigation/ConditionalFooter.tsx @@ -0,0 +1,32 @@ +"use client"; + +import { memo } from "react"; +import { usePathname } from "next/navigation"; +import dynamic from "next/dynamic"; + +// Code split Footer - below the fold, can be lazy loaded +const Footer = dynamic(() => import("./Footer"), { + loading: () => ( +