mirror repo of https://github.com/littlequartz/clink. a socket programming assignment for Sistem Terdistribusi
Go to file
Syahdan b94670f138 feat(order-console): add pricing, recent order feed, and responsive layout; extend protocol
Client:
- Add menuItem.Price; show prices in menu and compute totals from server ack
- Track and render recent “[order] …” broadcasts in right column
- Responsive layout with header/body/footer and window size handling
- Listen for server broadcasts after connect; keep last 10 orders
- Parse ORDER ack as “OK|<total>”; display “Total: $<amount>”
- Split view rendering into header/left/right/footer helpers
- Enhance form options to include “Name - $Price”
- Add width/height state; remove fixed 80-col assumption

Server:
- Extend defaultMenu with prices
- Compute total = qty × price; broadcast “[order] … ($xx.xx)”
- Acknowledge ORDER with “OK|<total>” instead of plain “OK”

Proto/UX:
- MENU returns items with price
- ORDER response now includes total for client display
2025-10-16 12:47:38 +07:00
.github/workflows ci: fix artifact path 2025-10-15 13:06:10 +07:00
.gitignore chore: gitignore to ignore dist folder 2025-10-15 20:34:09 +07:00
AGENTS.md feat(order-console): add pricing, recent order feed, and responsive layout; extend protocol 2025-10-16 12:47:38 +07:00
build.sh chore: gitignore to ignore dist folder 2025-10-15 20:34:09 +07:00
go.mod chore: gitignore to ignore dist folder 2025-10-15 20:34:09 +07:00
go.sum chore: gitignore to ignore dist folder 2025-10-15 20:34:09 +07:00
main.go feat(order-console): add pricing, recent order feed, and responsive layout; extend protocol 2025-10-16 12:47:38 +07:00
server.go feat(order-console): add pricing, recent order feed, and responsive layout; extend protocol 2025-10-16 12:47:38 +07:00