Commit Graph

171 Commits

Author SHA1 Message Date
9fde2a100c Generated by Spark: Load more of UI from JSON declarations and break up large components into atomic and create hooks as needed 2026-01-17 12:35:17 +00:00
55114937a7 Generated by Spark: Load more of UI from JSON declarations and break up large components into atomic and create hooks as needed 2026-01-17 12:30:47 +00:00
cd4164deb8 Generated by Spark: Load more of UI from JSON declarations and break up large components into atomic and create hooks as needed 2026-01-17 12:07:39 +00:00
9ca2f9ce44 Edited Spark 2026-01-17 12:04:07 +00:00
944e164deb Generated by Spark: Load more of UI from JSON declarations and break up large components into atomic and create hooks as needed 2026-01-17 12:01:34 +00:00
165c8d3847 Edited Spark 2026-01-17 11:57:11 +00:00
1819e3d598 Generated by Spark: Convert remaining pages (Lambdas, Styling, Flask API) to JSON-driven configuration 2026-01-17 11:55:55 +00:00
c1653ac226 Edited Spark 2026-01-17 11:49:01 +00:00
83dd57f259 Generated by Spark: Convert more pages to JSON-driven configuration (Models, Components, Workflows) 2026-01-17 11:46:36 +00:00
c27eb6d3de Edited Spark 2026-01-17 11:38:55 +00:00
3ae07db657 Generated by Spark: Load more of UI from JSON declarations and break up large components into atomic and create hooks as needed 2026-01-17 11:38:28 +00:00
19a44c4010 Generated by Spark: Create composite components in schema editor 2026-01-17 11:27:03 +00:00
eb7660864d Generated by Spark: Fix all reported errors. 2026-01-17 11:16:56 +00:00
d84c221e6e Generated by Spark: Add data source binding UI to connect components to KV storage and computed values 2026-01-17 11:10:54 +00:00
9b9f0da541 Generated by Spark: Build a visual schema editor to create JSON UI configs through drag-and-drop 2026-01-17 11:03:10 +00:00
ac6afd9961 Generated by Spark: Load more of UI from JSON declarations and break up large components into atomic and create hooks as needed 2026-01-17 10:49:03 +00:00
35f8e9ef52 Edited Spark 2026-01-17 10:38:07 +00:00
5ae19c0b9c Generated by Spark: Load more of UI from JSON declarations and break up large components into atomic and create hooks as needed 2026-01-17 10:37:34 +00:00
72d2576880 Edited Spark 2026-01-17 10:26:52 +00:00
1176959d4a Generated by Spark: Load more of UI from JSON declarations 2026-01-17 10:22:57 +00:00
eb895f70f5 Generated by Spark: Add workflow filtering by status (success, failed, running) 2026-01-17 10:06:37 +00:00
be1f1d0959 Generated by Spark: Display build status badges for specific workflows or branches 2026-01-17 10:03:05 +00:00
d159c5e8c7 Generated by Spark: Github build status information on dashboard - https://github.com/johndoe6345789/low-code-react-app-b/actions 2026-01-17 09:56:58 +00:00
f6108cd08e Generated by Spark: Fix all reported errors. 2026-01-17 09:52:30 +00:00
602b10c6f3 Generated by Spark: Lazy-load chart libraries (recharts, d3) to reduce bundle size further 2026-01-17 09:49:05 +00:00
6fa92030d2 Generated by Spark: Optimize bundle size further by lazy-loading heavy components like Monaco Editor 2026-01-17 09:44:43 +00:00
4ab59a509f Generated by Spark: Fix all reported errors. 2026-01-17 09:40:28 +00:00
23dfc2b92e Generated by Spark: Add hover-based preloading for instant page navigation 2026-01-17 09:34:11 +00:00
bdcb4e2f0b Generated by Spark: Enable React Router mode for 52% smaller bundle and 50% faster load times 2026-01-17 09:29:20 +00:00
017d0c9b31 Generated by Spark: Add route-based code splitting with React Router for even better performance 2026-01-17 09:23:25 +00:00
a06ba3e22e Generated by Spark: Optimize bundle size with code splitting and dynamic imports 2026-01-17 09:16:57 +00:00
b684f0a515 Generated by Spark: Fix all reported errors. 2026-01-17 09:11:13 +00:00
ac1d411385 Merge pull request #11 from johndoe6345789/copilot/fix-missing-module-declarations
Implement @github/spark package source and build pipeline
2026-01-17 09:04:39 +00:00
copilot-swe-agent[bot]
65f9f8191c Address code review feedback: improve type safety and documentation
- Added specific return types for LLM functions
- Added LLMChatResponse interface for type safety
- Enhanced plugin documentation with TODO comments
- Clarified intended functionality and future extension points
- Rebuilt package with improvements

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 09:00:42 +00:00
copilot-swe-agent[bot]
6fb37377a0 Add built dist folder for @github/spark workspace package
- Updated .gitignore to allow dist folders in workspace packages
- Added complete built output from packages/spark-tools/dist/
- Includes all TypeScript declarations and JavaScript bundles
- Ensures package is ready for consumption by main project

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 08:58:43 +00:00
copilot-swe-agent[bot]
6a80789b62 Create complete source implementation for @github/spark package
- Added full implementations in packages/spark-tools/src/
- Created hooks/index.ts with complete useKV hook implementation
- Created lib/spark-runtime.ts with KV storage, LLM, and user services
- Created lib/spark.ts for spark runtime initialization
- Created sparkVitePlugin.ts for Vite integration
- Created vitePhosphorIconProxyPlugin.ts for icon optimization
- Added rollup.config.ts for building the package
- Added tsconfig.json for TypeScript configuration
- Successfully built the package with all exports
- All TypeScript compilation errors resolved
- Main project build completes successfully

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 08:57:30 +00:00
copilot-swe-agent[bot]
48135a172b Initial plan for fixing TypeScript compilation errors
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 08:52:41 +00:00
copilot-swe-agent[bot]
67171d8932 Initial plan 2026-01-17 08:48:47 +00:00
77b10732f1 Merge pull request #10 from johndoe6345789/copilot/take-a-look-jemison-mercantile
Fix Docker build workspace protocol error
2026-01-17 08:46:48 +00:00
copilot-swe-agent[bot]
9bc215d466 Optimize Docker layer caching while fixing workspace issue
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 02:09:21 +00:00
copilot-swe-agent[bot]
95f5f2f7ce Fix Docker build workspace dependency issue
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 02:08:21 +00:00
1e55abc644 Generated by Spark: Fix all reported errors. 2026-01-17 02:05:41 +00:00
da8532dd11 Generated by Spark: I see loading screen, which is fine but we need really good console.log trace logging so i can trace the initialisation flow 2026-01-17 02:03:46 +00:00
d15d527473 Generated by Spark: ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx:1 Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
(index):5  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
console.ts:4 FileSyncerContext: Established connection to file syncer
console.ts:4 FileSyncerContext: FileSyncer client created and connected
console.ts:4 FileSyncerContext: Codespaces file syncer started
console.ts:4 FileSyncerContext: Established connection to file syncer
console.ts:4 FileSyncerContext: FileSyncer client created and connected
console.ts:4 FileSyncerContext: Codespaces file syncer started
console.ts:4 connected to the Codespace
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:10  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@vite/client net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@vite/client:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:32  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/workspaces/spark-template/packages/spark-tools/dist/heartbeat.js net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/workspaces/spark-template/packages/spark-tools/dist/heartbeat.js:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:37  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:5  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:10  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@vite/client net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:32  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/workspaces/spark-template/packages/spark-tools/dist/heartbeat.js net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:37  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:5  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:10  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@vite/client net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:32  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/workspaces/spark-template/packages/spark-tools/dist/heartbeat.js net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:37  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:5  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh net::ERR_ABORTED 502 (Bad Gateway)
2026-01-17 01:55:35 +00:00
50a0a67b7d Generated by Spark: You have two separate classes of problems in that console dump:
1.	a browser security warning about an iframe sandbox configuration, and
	2.	a Codespaces/Vite dev-server reachability failure (the repeated 502 Bad Gateway), plus some resource-type mistakes (JS being loaded as CSS).

⸻

1) The iframe sandbox warning (what it really means)

“An iframe which has both allow-scripts and allow-same-origin … can escape its sandboxing.”

This warning is essentially telling you: if the framed content can run JS and is treated as same-origin, it can usually undo most of the sandbox’s value (e.g., by navigating itself, rewriting content, interacting with storage in ways you likely didn’t intend). It’s commonly summarized as “don’t combine these unless you fully trust what’s inside.”  

Practical fix
	•	If the iframe is meant to display untrusted or semi-trusted content:
	•	Remove allow-same-origin (best default).
	•	Keep sandbox minimal and only add what you truly need.
	•	If the iframe must be same-origin for functionality (hard requirement):
	•	Remove allow-scripts and switch to safer communication patterns (postMessage from a trusted wrapper, server-side rendering, etc.), or accept that you are no longer getting meaningful sandbox isolation.

In short: pick one: scripts or same-origin, not both, unless you’re intentionally relaxing security.

⸻

2) The Vite/Codespaces failure: repeated 502 Bad Gateway

These lines are the key:
	•	GET https://…-5000.app.github.dev/@vite/client net::ERR_ABORTED 502 (Bad Gateway)
	•	same for /@react-refresh, /src/main.tsx, etc.

In Codespaces, a 502 at the forwarded URL typically means: the Codespaces reverse proxy cannot reach a server listening on that port, or the server is listening only on localhost and not on the external interface.  

What to check/fix (high-probability)
	1.	Is Vite actually running on port 5000?
	•	Vite defaults to 5173, not 5000.
	•	If your Codespaces URL ends with -5000.app.github.dev, your preview is targeting port 5000 specifically.
	•	Either:
	•	forward/open the port Vite is actually using (likely 5173), or
	•	configure Vite to run on 5000.
	2.	Bind Vite to all interfaces
	•	In Codespaces you typically need Vite to listen on 0.0.0.0 (or host: true in Vite config).
	•	Otherwise it binds to 127.0.0.1 and the proxy can’t reach it, producing 502s.  
	3.	Ports tab sanity
	•	Confirm the port is listed and forwarded.
	•	If it’s missing, the server isn’t listening or Codespaces didn’t detect it.
	•	If you’ve rebuilt the Codespace, sometimes toggling/stopping forwarding and re-forwarding helps; otherwise recreate as a last resort.  

⸻

3) “Refused to apply style … MIME type (‘text/javascript’) … not a supported stylesheet”

That message means the browser tried to treat a resource as CSS but the server said it’s JavaScript.

Common causes:
	•	A <link rel="stylesheet" href="…"> is pointing at a .js (or a Vite endpoint like @vite/client).
	•	A rewrite/proxy rule is returning the app HTML/JS for a CSS URL (often happens when the dev server isn’t reachable, or fallback routing is misconfigured).
	•	Your dev server is down (ties back to the 502s), and the proxy is returning something unexpected for asset URLs.

Given you also have 502s for Vite endpoints, fix the dev-server reachability first; many MIME-type errors disappear once assets are served by the correct server.

⸻

Fast triage sequence (minimal effort, maximum signal)
	1.	Open the Ports panel in Codespaces and verify which port your dev server is actually listening on (5173 vs 5000).
	2.	In the terminal, ensure the dev server is started and bound externally:
	•	If you’re using Vite defaults, open the forwarded URL for 5173 (not 5000).
	•	If you must use 5000, configure Vite to run on 5000 and bind to 0.0.0.0.
	3.	Reload the preview URL and confirm /@vite/client returns JS (200), not 502.
	4.	Only then chase any remaining MIME-type/style issues by inspecting index.html for incorrect <link rel="stylesheet"> references.

⸻

If you paste (a) your vite.config.* and (b) the exact command you run in Codespaces to start the dev server, I can tell you precisely which single change will eliminate the 502s (port mismatch vs bind address vs both).
2026-01-17 01:46:44 +00:00
3b4f2cd165 Edited Spark 2026-01-17 01:46:00 +00:00
copilot-swe-agent[bot]
b530a0fed5 Initial plan 2026-01-17 01:05:53 +00:00
274060aba3 Merge pull request #8 from johndoe6345789/copilot/fix-npm-unsupported-protocol-error
Fix npm ci workspace protocol error by implementing @github/spark package
2026-01-17 01:02:06 +00:00
copilot-swe-agent[bot]
d2df1ce4ee Fix KV storage clear() to sync with localStorage
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 00:58:11 +00:00
copilot-swe-agent[bot]
3c16bcc9a7 Add regenerated package-lock.json with workspace dependencies
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 00:56:44 +00:00