Phase 3: Angular 21 PWA shell#2
Open
amtocbot-droid wants to merge 1 commit intousers/krk/20260315_phase2_backendfrom
Open
Phase 3: Angular 21 PWA shell#2amtocbot-droid wants to merge 1 commit intousers/krk/20260315_phase2_backendfrom
amtocbot-droid wants to merge 1 commit intousers/krk/20260315_phase2_backendfrom
Conversation
Angular 21 standalone PWA foundation: Config & Bootstrap: - app.config.ts: provideRouter (input binding + view transitions), provideHttpClient (authTokenInterceptor), provideAuth (OIDC → Keycloak with PKCE + silent renew), provideServiceWorker - app.routes.ts: lazy-loaded feature routes, authGuard on shell Core: - AuthService: signals-based isAuthenticated, userData, roles, isAdmin/isOperator computed signals; wraps angular-auth-oidc-client - authGuard / roleGuard: functional guards (adminGuard, operatorGuard) - authTokenInterceptor: attaches JWT Bearer to /api and /hubs requests - AuthCallbackComponent: handles OIDC redirect - SignalrService: hub connection factory with withAutomaticReconnect, typed on<T>() Observable, reconnecting signal for UI banner - ShellComponent: mat-sidenav shell + reconnect banner - SidebarComponent: nav items with routerLinkActive - TopbarComponent: menu toggle + user dropdown + logout Shared: - StatusBadgeComponent: color-coded status badge (running/stopped/starting/error) - ConfirmDialogComponent: reusable confirm dialog Features: - DashboardComponent: live instance list with stats via toSignal + HttpClient - Route stubs for instances, models, kanban, chat (implementation in phases 4-8) Infrastructure: - multi-stage Dockerfile: node:22 build → nginx:1.27 serve - nginx.conf: SPA routing, asset caching, gzip - ngsw-config.json: app-shell prefetch, API freshness strategy - proxy.conf.json: dev proxy /api and /hubs to :8080 - environments: dev (localhost) + production (amtocbot.com) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Test plan
npm install && ng serve→ app loads at :4200ng build --configuration productionsucceeds🤖 Generated with Claude Code