Commit Graph

89 Commits

Author SHA1 Message Date
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
1819e3d598 Generated by Spark: Convert remaining pages (Lambdas, Styling, Flask API) to JSON-driven configuration 2026-01-17 11:55:55 +00:00
83dd57f259 Generated by Spark: Convert more pages to JSON-driven configuration (Models, Components, Workflows) 2026-01-17 11:46:36 +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
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
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
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
39fc59ce10 Generated by Spark: getting masses of bad gateway 2026-01-16 19:26:53 +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
09e069b968 Generated by Spark: oh thats silly, it wants to go to correct connection point but it does a bait and switch by adding another then not linking it correctly. I still like the idea of adding another connection point but it couldnt fix its mapping after. 2026-01-16 17:57:40 +00:00
eb46c35082 Generated by Spark: Its not bad but when I click from top to bottom: fine. then when i do vice versa, arrow points wrong way 2026-01-16 17:53:49 +00:00
c390727763 Generated by Spark: Fix all reported errors. 2026-01-16 17:44:36 +00:00
a4ab812087 Edited Spark 2026-01-16 17:39:42 +00:00
587fec221e Generated by Spark: Fix all reported errors. 2026-01-16 17:37:20 +00:00
7219348956 Edited Spark 2026-01-16 17:36:46 +00:00
0adf8bfff0 Generated by Spark: To cope with the 1:1 mapping, we can add more connection points as needed, always ensure theres a spare blank one. 2026-01-16 17:36:30 +00:00
20fa67c988 Generated by Spark: wow maybe its the remapper causing issue, is ee something different then it changes 2026-01-16 17:31:18 +00:00
9858038178 Generated by Spark: aww this is frustrating, a blue arrow still manages to stem from same connection point 2026-01-16 17:24:45 +00:00
0290900947 Generated by Spark: Delete connection types --> one to one mapping only. One dot only has one arrow at both from and to. 2026-01-16 17:22:02 +00:00
70588e7ad1 Generated by Spark: Still same issue, find a way for you to test it before completing change 2026-01-16 17:03:33 +00:00
972d626063 Generated by Spark: two purple arrows come from same spot 2026-01-16 16:57:41 +00:00
971ec69b89 Generated by Spark: Fix all reported errors. 2026-01-16 16:54:03 +00:00
22188071b0 Generated by Spark: It's still allowing >1 arrow per connection point, maybe it should autoremap, should be 1:1 contention on both sides, should also save changes to database 2026-01-16 16:50:58 +00:00
3a487cbabe Generated by Spark: It's still allowing >1 arrow per connection point, maybe it should autoremap, should be 1:1 contention on both sides 2026-01-16 16:47:33 +00:00
008292e7f0 Generated by Spark: It's still allowing >1 arrow per connection point, maybe it should autoremap 2026-01-16 16:45:25 +00:00
f1c95bfc54 Generated by Spark: It's still allowing >1 arrow per connection point, maybe it should autoremap 2026-01-16 16:37:55 +00:00
eef9eca13c Generated by Spark: Allow grouping related ideas with colored borders or containers 2026-01-16 16:35:26 +00:00
577d286a45 Generated by Spark: 1 connection spot = 1 arrow allows us to easily move the arrow elsewhere 2026-01-16 16:28:49 +00:00
2c9f912206 Generated by Spark: Probably wise not to reuse the same point for arrows, 1 connection spot = 1 arrow 2026-01-16 16:26:58 +00:00
eaaef200ca Generated by Spark: 1. says ideas connected, but no new arrow appears. 2. I should be able to remap them by dragging an existing arrow elsewhere. 2026-01-16 16:23:52 +00:00
e6de9678a6 Generated by Spark: Its close but the line doesnt stay there, it should be a arrow with good contrast 2026-01-16 16:18:37 +00:00