From 4ac5c16fe3194b19a631bdd47bb7fa4e5d8d4f3d Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Wed, 24 Dec 2025 20:52:17 +0000 Subject: [PATCH] Generated by Spark: Oh wow it worked, now restore homepage and make this a tab --- src/App.tsx | 7 +- src/components/GitHubActionsFetcher.tsx | 282 ++++++++++++------------ src/components/Level1.tsx | 51 +++-- 3 files changed, 175 insertions(+), 165 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 4dda59fef..1bf4e8e1f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,12 +17,7 @@ import { initializePackageSystem } from '@/lib/package-loader' import type { User, AppLevel } from '@/lib/level-types' function App() { - return ( - <> - - - - ) + return } function AppOriginal() { diff --git a/src/components/GitHubActionsFetcher.tsx b/src/components/GitHubActionsFetcher.tsx index 50253062a..824a31422 100644 --- a/src/components/GitHubActionsFetcher.tsx +++ b/src/components/GitHubActionsFetcher.tsx @@ -80,150 +80,148 @@ export function GitHubActionsFetcher() { } return ( -
-
-
-
-

GitHub Actions Monitor

-

- Repository: johndoe6345789/metabuilder -

-
- +
+
+
+

GitHub Actions Monitor

+

+ Repository: johndoe6345789/metabuilder +

- - {needsAuth && ( - - - Authentication Note - - This app uses the GitHub API to fetch workflow data. The public API allows anonymous access with rate limits. - - - )} - - {lastFetched && ( - - - Last Fetched - - {lastFetched.toLocaleString()} - - - )} - - {error && ( - - - Error - {error} - - )} - - - - - Workflow Runs - - Open in GitHub - - - - - Recent workflow runs via GitHub REST API - - - - {isLoading ? ( -
- - - - -
- ) : data && data.length > 0 ? ( -
- {data.map((run) => ( - - -
-
-
- {getStatusIcon(run.status, run.conclusion)} -

{run.name}

-
-
- - Branch: - {run.head_branch} - - - Event: - {run.event} - - - Status: - - {run.status === 'completed' ? run.conclusion : run.status} - - -
-
- Updated: {new Date(run.updated_at).toLocaleString()} -
-
- -
-
-
- ))} -
- -
-
- ) : ( -
- No workflow runs found. Click refresh to fetch data. -
- )} -
-
+
+ + {needsAuth && ( + + + Authentication Note + + This app uses the GitHub API to fetch workflow data. The public API allows anonymous access with rate limits. + + + )} + + {lastFetched && ( + + + Last Fetched + + {lastFetched.toLocaleString()} + + + )} + + {error && ( + + + Error + {error} + + )} + + + + + Workflow Runs + + Open in GitHub + + + + + Recent workflow runs via GitHub REST API + + + + {isLoading ? ( +
+ + + + +
+ ) : data && data.length > 0 ? ( +
+ {data.map((run) => ( + + +
+
+
+ {getStatusIcon(run.status, run.conclusion)} +

{run.name}

+
+
+ + Branch: + {run.head_branch} + + + Event: + {run.event} + + + Status: + + {run.status === 'completed' ? run.conclusion : run.status} + + +
+
+ Updated: {new Date(run.updated_at).toLocaleString()} +
+
+ +
+
+
+ ))} +
+ +
+
+ ) : ( +
+ No workflow runs found. Click refresh to fetch data. +
+ )} +
+
) } diff --git a/src/components/Level1.tsx b/src/components/Level1.tsx index ed9633412..eba7f284b 100644 --- a/src/components/Level1.tsx +++ b/src/components/Level1.tsx @@ -7,6 +7,8 @@ import { HeroSection } from './level1/HeroSection' import { FeaturesSection } from './level1/FeaturesSection' import { ContactSection } from './level1/ContactSection' import { AppFooter } from './shared/AppFooter' +import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs' +import { GitHubActionsFetcher } from './GitHubActionsFetcher' interface Level1Props { onNavigate: (level: number) => void @@ -102,25 +104,40 @@ export function Level1({ onNavigate }: Level1Props) {
)} - - +
+ + + Home + GitHub Actions + + + + + -
-
-

About MetaBuilder

-

- MetaBuilder is a revolutionary platform that lets you build entire application stacks - through visual interfaces. From public websites to complex admin panels, everything - is generated from declarative configurations, workflows, and embedded scripts. -

-

- Whether you're a designer who wants to create without code, or a developer who wants - to work at a higher level of abstraction, MetaBuilder adapts to your needs. -

-
-
+
+
+

About MetaBuilder

+

+ MetaBuilder is a revolutionary platform that lets you build entire application stacks + through visual interfaces. From public websites to complex admin panels, everything + is generated from declarative configurations, workflows, and embedded scripts. +

+

+ Whether you're a designer who wants to create without code, or a developer who wants + to work at a higher level of abstraction, MetaBuilder adapts to your needs. +

+
+
- + +
+ + + + +
+