<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guess-market/ui-desktop/src/main/resources/market/guess/ui, branch master</title>
<subtitle>definitely not polymarket
</subtitle>
<id>https://git.sartin.in/guess-market/atom?h=master</id>
<link rel='self' href='https://git.sartin.in/guess-market/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/'/>
<updated>2026-10-11T16:28:30Z</updated>
<entry>
<title>ui-fx: move the JavaFX UI into a module that sees only the api</title>
<updated>2026-10-11T16:28:30Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-10-11T16:28:04Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb'/>
<id>urn:sha1:3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb</id>
<content type='text'>

Exercise 3 asks for a new desktop client that reuses the Exercise 2
screens, and the course asks that clients depend on the DTO contract,
never on the engine. ui-desktop mixed both: its views and controllers
only talk to the api interfaces, but AppView and AppState each had a
convenience constructor that built a ServiceEngine, which tied every UI
class to the service module.

Move the screens, controllers, components, FXML, skins and fonts into
a new ui-fx module that depends on api alone. Packages are unchanged,
so FXML controller names and resource paths keep working as they are.
ui-desktop keeps only the Exercise 2 app: Launcher, App, which now
builds the ServiceEngine and passes its contexts in, and ServiceEngine
itself. The Exercise 3 client can then reuse ui-fx with remote
contexts and never put the engine on its classpath. The build proves
the split: ui-fx compiles with nothing but api visible.

Tests move with the code they cover. AppStateTest drives the real
engine, so it stays in ui-desktop.


</content>
</entry>
<entry>
<title>ui-desktop: build the JavaFX market UI on top of the service</title>
<updated>2026-09-09T07:05:12Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-09-09T07:05:12Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=f23c20c1c66b39fb1f49307e08e8593fa708e026'/>
<id>urn:sha1:f23c20c1c66b39fb1f49307e08e8593fa708e026</id>
<content type='text'>
Replace the placeholder hello-world window with a working desktop
client for the guess market.

ServiceEngine wires the in-memory repositories, XML loader, risk,
matching, fulfillment and settlement contexts together, and AppState
exposes their results as observable JavaFX state for the views to bind
to. The FXML views have an events tab and a users tab. The events tab
lists events with mechanism and commission filters, and shows each
event's price chart, order book ladder, trade history and participants.
The users tab shows each user's ledger and positions, and lets them
place buy and sell orders. Dialogs cover loading an XML file (in a
background task), creating an event and resolving one.

Bundle a CSS theme and Nerd Font faces so the UI looks the same on
every machine. Teach build.sh to copy each module's src/main/resources
into its class output, since FXML, CSS and fonts are loaded from the
classpath at runtime.
</content>
</entry>
</feed>
