interactive intro to open social

polish: minor ux and code quality improvements #7

open
opened by zzstoatzz.io

miscellaneous improvements#

collection of smaller issues that would improve code quality and ux:

1. no shared constants#

magic strings repeated across files:

  • api endpoints (https://public.api.bsky.app/xrpc/...)
  • local storage keys (atme_did, atme_onboarding_seen, atme_atmosphere)
  • namespace splitting logic

2. missing error handling#

several places with silent failures:

  • app.js:29-36 catches and continues silently
  • login.js:94-96 silent continue on fetch failure
  • could show user feedback when discovery fails

3. responsive sizing magic numbers#

lots of hardcoded sizing throughout:

  • app.js:183 radius calculations
  • templates.rs clamp() functions everywhere
  • could be more systematic

4. no typescript#

vanilla js is fine, but means:

  • no type safety
  • no autocomplete
  • easier to introduce bugs

priority#

low - these are polish items, not blockers

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xbtmt2zjwlrfegqvch7fboei/sh.tangled.repo.issue/1760151729319098