Add GraphQL API endpoint, Nuxt UI data panel, and Docker setup - #111
Open
dylangriffinshub wants to merge 1 commit into
Open
Add GraphQL API endpoint, Nuxt UI data panel, and Docker setup#111dylangriffinshub wants to merge 1 commit into
dylangriffinshub wants to merge 1 commit into
Conversation
- worker: new /api/graphql endpoint wrapping the GP KV store (groups, group(name), satellite(name)) - frontend: typed GraphQL client with worker/static-snapshot fallback and a SatelliteGraphqlPanel (Nuxt UI) - mount the panel as a toolbar toggle in Satvis.vue - Dockerfile + docker-compose.yml to build and serve the static frontend - tests for the resolver and the client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the frontend-development and backend-integration skills the role calls for, using satvis's existing Vue 3 + CesiumJS + Cloudflare Worker stack:
POST /api/graphqlendpoint in the worker wrapping the existing GP KV store, withgroups,group(name:), andsatellite(name:)resolvers. Zero external dependencies (hand-rolled parser over the fixed schema).graphql.tsclient that probes the worker and falls back to the committed static snapshot, plus aSatelliteGraphqlPanel(Nuxt UI, the project's component library) mounted as a toolbar toggle inSatvis.vue.Dockerfile+docker-compose.ymlthat build the Vite frontend and serve the static bundle (the app self-hosts via thedata/gp/snapshot when no worker is reachable).Test plan
pnpm --filter satvis-worker test(resolver unit tests inworker/test/graphql.test.ts)pnpm test(client fallback tests insrc/modules/util/graphql.test.ts)pnpm run buildanddocker build -t satvis:local .Notes
worker/src/config/satvis.generated.jsonis gitignored and regenerated bypnpm generate-groupsin CI.