Skip to content

glacez-webapp-ui

Lane: UI · Repo: glacez/glacez-webapp-ui · Editing rules: Glacez/Webapps/glacez-webapp-ui/AGENTS.md

The end-user application: portfolio, positions, strategies, transactions, market, connections, AI reports, profile, notifications, onboarding.

The screen-level design knowledge — primitives, archetypes and conventions — lives in the UI section; this page covers what the service is.

Shape

Vaadin Flow 25.3.x server-side UI (React 19 for the Pro components), Java 25, Spring Boot 4.1. Talks to glacez-soa-webservice only — no other SOA URL exists in the repo. 41 routes, all inside MainLayout except the layout-free /home.

How those routes are shaped — the shared primitives, the eleven screen archetypes each with a canonical class to copy, and the conventions that keep them coherent — lives in the UI design system, not here.

Domain packages repeat one shape: <domain>/{grid,component,form,chart}, with list views plural (strategies, transactions, positions) and detail views singular with an optional path param (strategy/:strategyID?, position/:positionID?).

Data

Owns nothing. Every read and write goes through a webservice/<domain>/ proxy that wraps the Feign interface from the webservice-api-v1 artifact, supplies the authenticated user, and turns FeignException into a notification.

The two transaction screens are different write paths: add-transaction records history a user already made (and stops at the ledger), add-trade sends a live limit order to a venue. See Transaction lifecycle.

Two caching layers, deliberately separate: a fixed registry of cache names (a @Cacheable naming anything else silently does nothing) and a set of glacez.cache.evic.* millisecond values feeding @Scheduled evictors. They are not 1:1 and do not need to be.

Real-time updates

backend event → glacez.events.fanout → per-pod queue → EventPushConsumer
  → EventBroadcaster → ui.access(...) → badge + browser notification

Each replica gets its own non-durable queue keyed by HOSTNAME, so every pod sees every event. A background event mutating the UI must go through ui.access(...). The app keeps a local mirror of the pushed payload on purpose: the webapp never depends on glacez-lib-*.

Security

Keycloak OIDC client (glacez-app), authorities from realm_access.roles and resource_access.glacez-app.roles only — a role granted on another Keycloak client is invisible here. CSRF stays on except for framework-internal requests. Session timeout 12 h. Static assets need their own public matcher or they redirect to Keycloak.

Jobs

None. Everything is user-driven; the only timers are cache eviction and the badge-poll safety net.