aboutsummaryrefslogtreecommitdiffstats
path: root/ui-client
Commit message (Collapse)AuthorAgeFilesLines
* ui: add chat drawer to the desktop client 3.0Kostya2026-10-153-3/+65
| | | | | | | | | | | | | | ServerClient fetches new chat lines on the same one-second poll as the market and hands them over separately from market changes. The shared UI gets a chat icon in the status bar, beside the eject button, shown only against a server. It opens a drawer above the status bar with everyone's lines and a field to send one, laid over the content so the window keeps its size. While the drawer is closed the icon counts unread lines. A line the server refuses is reported in the drawer itself.
* ui-client: test a whole event lifecycle across several clients Kostya2026-10-141-0/+66
| | | | | | | | | One user uploads and opens an event, four others deposit and buy at the same time, and the first settles it. Check the payout, that the event's contract ends empty and that the users' balances still add up to what was deposited.
* ui-client: add login window Kostya2026-10-133-14/+142
| | | | | | | | | | | Ask for the server address and a user name before opening the market, and show the server's reason when it refuses (name taken, unreachable). The request runs off the JavaFX thread so a dead server cannot freeze the window. --server= and --user= now only prefill the form.
* ui-client: add desktop client that talks to the server Kostya2026-10-137-0/+499
New module for the Ex3 desktop app. It reuses the ui-fx views and depends on the api only, never on the engine. ServerClient owns the OkHttp session and the last snapshot pulled from /api/sync. RemoteCatalogContext, RemoteGuessMarketContext and RemoteAccountContext implement the api interfaces on top of it: reads are answered from the snapshot, so AppState never waits on the network, and writes go over HTTP and pull a fresh snapshot before returning. A daemon thread polls once a second with blocking calls and refreshes AppState through Platform.runLater only when the server's version moved. AppState reselects the event and user by id, so a refresh keeps the selection. Server and user name come from --server= and --user= until the login screen exists.