<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guess-market/ui-fx/src/main/resources/market/guess, 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-fx: list the account's ledger entries on the Users tab</title>
<updated>2026-10-14T14:52:45Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-10-14T14:52:19Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=6968a0105ad521d7b86b15555f8f627094a59725'/>
<id>urn:sha1:6968a0105ad521d7b86b15555f8f627094a59725</id>
<content type='text'>

Ex3 asks that a user can see every row of their account as it changes,
one row per action. The entries already reach the client in LedgerDTO
but were only drawn as the balance chart.

Add an Account activity table under the trade panel: time, type,
details, amount and balance after, newest first.


</content>
</entry>
<entry>
<title>ui-fx: give labels without a colour class the ink colour</title>
<updated>2026-10-14T11:27:10Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-10-14T11:26:44Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=1de283bd86ac1367f4c2c91a0417859c91b676ce'/>
<id>urn:sha1:1de283bd86ac1367f4c2c91a0417859c91b676ce</id>
<content type='text'>

Some table cells (option and shares in the trade history, YES and NO in
the participation table) carry no colour class. JavaFX then derives the
text colour from -fx-background, which the transparent scroll panes set
to transparent, and on the light skins that came out white on white.

Set a default label colour, placed first so that every existing
single-class colour rule still overrides it.


</content>
</entry>
<entry>
<title>ui-fx: support running as one logged-in user of a server</title>
<updated>2026-10-13T10:15:15Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-10-13T10:14:50Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=c0e134981cb494f12c72fbbd3e5c4de513327520'/>
<id>urn:sha1:c0e134981cb494f12c72fbbd3e5c4de513327520</id>
<content type='text'>

The shared UI assumed the whole market was local: it showed nothing
until a file was loaded, let the user act as anyone in the list and
offered to create events by hand. None of that holds for a client of a
shared server.

AppState and AppView now take an optional session user. When it is set:

- the tabs show from the start, since other users' events are there
  whether or not we loaded a file ourselves;
- the acting user is fixed, and the user list becomes a directory of
  the other users with their balance and role;
- the buttons that create events are hidden, and the Users tab gets a
  Deposit Funds button with a small dialog;
- loading a file skips the two-second pause Ex2 asked for.

Without a session user everything behaves as before.

Also keep the event's Trade and Close buttons from collapsing to an
ellipsis when the description is long.


</content>
</entry>
<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>
</feed>
