<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guess-market/ui-client/src/main/java, branch 3.0</title>
<subtitle>definitely not polymarket
</subtitle>
<id>https://git.sartin.in/guess-market/atom?h=3.0</id>
<link rel='self' href='https://git.sartin.in/guess-market/atom?h=3.0'/>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/'/>
<updated>2026-10-15T12:18:55Z</updated>
<entry>
<title>ui: add chat drawer to the desktop client</title>
<updated>2026-10-15T12:18:55Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-10-15T12:18:30Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=c67d5ff663b876a15a3831f5a2b564c4002e99b6'/>
<id>urn:sha1:c67d5ff663b876a15a3831f5a2b564c4002e99b6</id>
<content type='text'>

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.


</content>
</entry>
<entry>
<title>ui-client: add login window</title>
<updated>2026-10-13T13:08:55Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-10-13T13:08:27Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=4edb27d378e8b79931ef6a6abebfda66f894d538'/>
<id>urn:sha1:4edb27d378e8b79931ef6a6abebfda66f894d538</id>
<content type='text'>

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.


</content>
</entry>
<entry>
<title>ui-client: add desktop client that talks to the server</title>
<updated>2026-10-13T07:42:40Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-10-13T07:42:15Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=a8bc9dce528abb6340315f7daa61ad76be4a8739'/>
<id>urn:sha1:a8bc9dce528abb6340315f7daa61ad76be4a8739</id>
<content type='text'>

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.


</content>
</entry>
</feed>
