Skip to content

Build prototype hex crawl backend and frontend#1

Open
wvaske wants to merge 6 commits into
mainfrom
codex/design-web-app-for-dd-hex-crawl
Open

Build prototype hex crawl backend and frontend#1
wvaske wants to merge 6 commits into
mainfrom
codex/design-web-app-for-dd-hex-crawl

Conversation

@wvaske
Copy link
Copy Markdown
Owner

@wvaske wvaske commented Nov 7, 2025

Summary

  • implement the Phoenix backend with Absinthe GraphQL schema, Phoenix Channels, Oban worker stub, and in-memory state seeded with a demo campaign
  • scaffold the SvelteKit frontend that renders DM and player map views with MapLibre tiles, GraphQL data fetching, and websocket updates via Phoenix channels
  • add docker-compose orchestration, Dockerfiles, and updated documentation covering setup requirements and known limitations

Testing

  • mix format
  • mix deps.get (fails: 403 Forbidden from hex.pm in restricted environment)
  • npm install --package-lock-only (fails: 403 Forbidden from npm registry in restricted environment)

Codex Task

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +200 to +202
$: if (map) {
updateSources();
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Map view never updates after initial render

The reactive block that refreshes the MapLibre sources only references map, so it executes exactly once when the map instance is created and never again. Subsequent updates to mapDetail—for example when the DM reveals hexes, moves players, or switches to another map—do not trigger updateSources (or re-run fitBounds), leaving the displayed map permanently stale. Consider making the reactive block depend on mapDetail as well (e.g. $: if (map && mapDetail) { updateSources(); fitBounds(); }) so realtime or navigation changes propagate to the rendered layers.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant