Commit Graph

119 Commits

Author SHA1 Message Date
b8168ded76 Generated by Spark: Ensure / route is wired up with some JSON config. 2026-01-17 12:54:05 +00:00
8d5f87d8be Generated by Spark: Fix all reported errors. 2026-01-17 12:49:33 +00:00
afe2bf1724 Generated by Spark: Fix all reported errors. 2026-01-17 12:45:11 +00:00
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
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
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
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
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
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
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
ad39354a8e Generated by Spark: Add preview button to toolbar 2026-01-17 00:12:23 +00:00
128d2ae6f4 Generated by Spark: Got weird problem - Publish to https://low-code-react-app-b--johndoe6345789.github.app/ works fine but preview just shows Purple dot and loading.. + white page 2026-01-17 00:07:35 +00:00
90e3cb9c4d Generated by Spark: Create seed data templates for different project types (e-commerce, blog, dashboard) 2026-01-16 23:57:29 +00:00
d2e29363f5 Generated by Spark: Now just use said json data as seed data and load it all from database 2026-01-16 23:45:29 +00:00
838abcb618 Generated by Spark: Add props configuration to pages.json for dynamic component props 2026-01-16 23:30:20 +00:00
5bb96235e0 Generated by Spark: Oh wow I clicked publish and it works. Can we make better use of the new declarative system? 2026-01-16 23:18:26 +00:00
3ade27138b Generated by Spark: Fix all reported errors. 2026-01-16 23:11:17 +00:00
bedd4c1e94 Generated by Spark: getting masses of bad gateway 2026-01-16 20:13:32 +00:00
39fc59ce10 Generated by Spark: getting masses of bad gateway 2026-01-16 19:26:53 +00:00
0ae5ad1951 Generated by Spark: Fix blockers preventing page from loading / implement missing functionality 2026-01-16 19:20:48 +00:00
8d568fbdbb Generated by Spark: Fix blockers preventing page from loading / implement missing functionality 2026-01-16 19:16:07 +00:00
c5e486859f Generated by Spark: Too risky making changes without refactoring now. Create hook library, All components <150LOC. Consider orchestrating pages using json. JSON can describe actions, hooks, component tree, seed data you name it. 2026-01-16 19:04:10 +00:00
e29e8b7361 Generated by Spark: Too risky making changes without refactoring now. Create hook library, All components <150LOC. Consider orchestrating pages using json. JSON can describe actions, hooks, component tree, seed data you name it. 2026-01-16 18:49:21 +00:00
84de7766c8 Generated by Spark: Too risky making changes without refactoring now. Create hook library, All components <150LOC. Consider orchestrating pages using json. 2026-01-16 18:19:27 +00:00
ba3dcf538a Generated by Spark: Too risky making changes without refactoring now. Create hook library, All components <150LOC. 2026-01-16 18:11:41 +00:00
c81277fadd Generated by Spark: Fix all reported errors. 2026-01-16 18:03:22 +00:00
5f5b4b9e3c Edited Spark 2026-01-16 18:02:25 +00:00
37213c5534 Generated by Spark: only show 1 connection point or number of arrows + 1 connection point 2026-01-16 18:02:17 +00:00