ui: adds initial local ui/apn work#281
Draft
lePereT wants to merge 2 commits into
Draft
Conversation
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.
What type of PR is this? (check all applicable)
Description
WIP local UI integration for devicecode.
This adds a self-standing fallback local UI to devicecode while the full Vue/Tailwind local UI continues to be updated in its separate repository. It also adds the initial API and service seams needed by that UI, including a curated local UI bootstrap model and prototype APN management mediated by the GSM service.
Changes included:
www/local UI so devicecode can be run and tested without the external UI bundle.GET /api/local-ui/bootstrap, returning a curated retained-state model for the local UI./eventsSSE stream rather than recreating the old/event-statsmodel.GET /api/gsm/apns/customandPUT /api/gsm/apns/customas UI-facing routes./api/gsm/apns/customreturning full APN records for prototype admin-network use.GET /api/diagnosticsresponse, pending a later diagnostics service pass.fibers.coxpcallin UI HTTP paths that may touch yielding operations, fixing Lua 5.1 yield-safety failures not seen under LuaJIT.This deliberately avoids a full GSM service modernisation. The APN work is a bounded transitional bridge so that UI no longer edits config or talks directly to HAL. A later GSM migration should move the service to the current
service-architecture.mdidioms, includingconfig_watch, dependency gating, request ownership and explicit backpressure.Related Issues, Tickets & Documents
Relevant documents:
docs/service-architecture.mddocs/devhost/local-ui-demo.mdManual test
Manual test description
All relevant integration/devhost and unit tests pass under LuaJIT.
Manual devhost smoke test:
Then opened:
and checked:
The demo serves the fallback UI, returns a curated bootstrap model, exercises the APN route through UI → GSM → fake HAL control-store, and returns the expected diagnostics stub.
Added tests?
Added coverage includes:
PUT/GETchecks through the real HTTP path;Added to documentation?
Added devhost documentation for the local UI demo under: