Commit Graph

89 Commits

Author SHA1 Message Date
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
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
31859acc4a Generated by Spark: Fix all reported errors. 2026-01-16 17:48:59 +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
0845a93842 Generated by Spark: Fix all reported errors. 2026-01-16 16:52:20 +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
7f1f37ba93 Generated by Spark: The arrows are super jank and dont work too well, probably needs rework. Can a 3rd party lib help? 2026-01-16 16:14:21 +00:00
4b88bcb093 Generated by Spark: Thought there would be like little nodes on the side that I can click and drag to another cloud - like n8n 2026-01-16 16:09:20 +00:00
2a42c42edd Generated by Spark: Would be nice if I could connect ideas together like UML 2026-01-16 16:02:24 +00:00
ec31222a25 Generated by Spark: Idea cloud dialog should probably be double click 2026-01-16 15:56:54 +00:00
5fc144f31f Generated by Spark: Feature Idea Cloud should be closer to Miro - its a bit rigid / wooden right now 2026-01-16 15:54:57 +00:00
0f5ffb87cb Generated by Spark: Load feature component trees from json, make monolithic components atomic. 2026-01-16 15:49:21 +00:00