forked from unimatrix/web
5 KiB
5 KiB
CHOAM Exchange — handoff notes (18 October 2026)
Completion update — supersedes the old pre-deployment checklist below
- Website: 40 clearly labelled fictional offers, all five planets and six categories, working sidebar/select/tile filters, search (including category and planet names), sorting, pagination and retry. Demo offers never show a purchase command. A valid empty live market remains empty. Matching responsive CSS is implemented; mobile planet controls no longer inherit absolute navigation positioning. Planet artwork is in external CSS to comply with the production Content Security Policy.
- In-game: DuneEss 1.0.2 compiles. Replaced the broken exchange class with holder-based faction menus, buy/reclaim confirmation screens, all-items/admin browsing, actual faction identity (including Ordos), item payload preservation and inventory-space checks. A locked SQL transaction handles payment/credit/stock; final-item purchase deletes the row without violating the positive-quantity constraint. Offline/local fallback wallets cannot trade.
- Verification: 12 passing Java tests (8 SQL transaction tests and 4 GUI/security tests); 37 website tests pass. Desktop filters/pagination and 390px mobile layout/menu verified in a browser. SQL tests use H2 PostgreSQL mode; live PostgreSQL/Paper/Velocity/Geyser staging is not claimed.
- Source is developed on a separate
exchange-completionGitHub branch for review; main is not overwritten. Website publication uses the existing Sites project and public audience, separate from GitHub. - Read
../DuneEss/EXCHANGE.mdfor commands, configuration, legacy schema migration, payload support and remaining server-thread/crash-boundary limitations. Installing the built JAR and configuring the production database/HTTPS read-only bridge require server access; no game server or database has been changed in this task. - The original notes below are historical. CSS, all-world handling, sidebar handling, demo labels and local build/tests are completed. Publishing result and source commit are recorded in the completion response.
Goal
Match the existing Project Dune website at https://project-dune.bonnystoat9.chatgpt.site rather than a new design. Preserve the original horizontal illustrated menu, PROJECT DUNE wordmark, Cormorant Garamond / Manrope typography, dark teal (#10201f / #142a28), gold (#d5ab63), parchment (#f5eddd), and Minecraft Arrakis imagery. Use the latest approved exchange mockup as inspiration only.
Current repository
Source: https://github.com/unimatrixgit/mcdune
website/web/index.htmlandwebsite/web/styles.css: actual website reference.website/web/exchange.html: redesigned CHOAM hero, world tiles, search, filters, sidebar, demo banner, listing grid. Commitb2a82f92efc00ef4251684332b8734b6cf2d7f91.website/web/exchange-market.js: client-side filters, pagination, live API attempt, and eight sample listings if API unavailable. Commit86591e0af80ea486418bae38ae33a8b36f801ddf.website/web/exchange-market.css: existing styling; verify latest CSS commit before merge. The HTML redesign changed selectors and requires matching styles for.exchange-content,.category-links,.market-heading,.demo-banner,.choam-hero-foot, and six world tiles.website/worker/exchange-api.mjs: read-only proxy; requires secureEXCHANGE_LISTINGS_URLandEXCHANGE_READ_TOKENenvironment variables. No live SQL marketplace is connected.website/worker/runtime.mjs: routes/api/exchange/*to exchange API.
Work needed before deployment
- Check
exchange-market.cssagainst latestexchange.htmland finish responsive desktop/mobile styles. - In
exchange-market.js, world tile click handling must also handledata-planet="all". Category sidebar buttonsdata-categorymust set the category selector and re-render. Avoid treating mock listing IDs as real purchases. - Mark all mock listings DEMO / non-purchasable. Do not imply the database is connected.
- Test:
cd website && node scripts/build.mjs && node --test tests/*.test.mjs. Inspect the built page in a browser, especially mobile nav, image paths and filters. - Commit any fixes, review/merge via the team's preferred workflow. Changes committed directly to
mainare not a fork or PR. - Publishing is separate from GitHub:
.openai/hosting.jsonandwebsite/README.mddescribe the Sites workflow. The GitHub Actions build job only builds/tests/uploads an artifact; it does not deploy to the chatgpt.site domain. Publish via the authorized Sites hosting workflow, then verify https://project-dune.bonnystoat9.chatgpt.site/exchange.html. - Later: securely connect game SQL marketplace to a read-only API; no credentials in browser code. Test the DuneEss SQL exchange separately before allowing real transactions.
Scope
The current demo contains eight representative items, not every Minecraft item. A complete Minecraft 1.21.4 catalog and Dune custom item definitions require separate work. No temporary database has been deployed or tested. Do not claim the site is live or the server database is connected until verified.

Staff