Unconventional radar chart banner

Unconventional radar chart

2 devlogs
1h 1m 6s

My first project that will go into my portfolio. Its also my first vibe coded one. Its dedicated to a game that i like to play in roblox

abdurahmansharif.uk

Devlog #2 โ€“ URL & State Persistence Fix
๐Ÿ“… Date: 07/01/2026
โฑ Time Spent: 33 minutes
๐Ÿง  Focus: State loading, URL parameters, and persistence


โœ… What I Worked On

  • Diagnosed an issue where URL/state loading always reverted to the first ability/level (Illumination 1.5)
  • Investigated interaction between URL params, localStorage, and initialization logic

๐Ÿ” Changes & Fixes

  • Relaxed option validation in URL and localStorage loaders
  • Ensured loaders return explicit booleans to prevent unintended fallbacks
  • Fixed race/overwrite issues by preventing populateLevels from auto-calling updateChart during initialization
  • Introduced a triggerUpdate flag so URL parameters and saved preferences can set the correct level before updates occur
  • Removed temporary debug logging after confirming the fix

๐Ÿž Bug Details

  • Issue: State always reset to default ability/level on load
  • Cause: Initialization order caused updateChart to overwrite URL/localStorage values
  • Status: Fixed

๐Ÿงช What I Learned

  • Why initialization order matters in state-driven UIs
  • How returning explicit booleans can prevent silent fallback logic
  • How to debug race conditions in client-side state loading

โญ Next Steps

  • Add basic tests for URL/state loading
  • Harden validation logic without breaking persistence

๐Ÿ›  Tooling Notes

  • Used GitHub Copilot prompts extensively to reason through the bug and validate fixes
Attachment
0
abdurahmansharif.uk

Committed previous work.
Ran into multiple issues while testing the site.
Fixed problems including HTML conflicts and broken image paths.
Problem was denoted by the leading trailing slash, server responded with 404 error
Verified that images now load correctly on both local live server and GitHub Pages deployment.

Attachment
0