From ea786d0365d8af7fa5136f103b8d977a0ef2a8dc Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 24 Nov 2026 19:32:13 +0100 Subject: [PATCH] Design an isolated DuneRealms portal comfort preview --- AGENTS.md | 9 +++ website/scripts/build.mjs | 115 ++++++++++++++++---------------- website/web/preview/portal.css | 9 +++ website/web/preview/portal.html | 35 ++++++++++ website/web/preview/portal.js | 35 ++++++++++ 5 files changed, 147 insertions(+), 56 deletions(-) create mode 100644 website/web/preview/portal.css create mode 100644 website/web/preview/portal.html create mode 100644 website/web/preview/portal.js diff --git a/AGENTS.md b/AGENTS.md index 44bb0c56..e2a77421 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -76,3 +76,12 @@ Current priority: implement and test the server-only dev-key executor, starting - Group at least three genuine user requests in a batch; do not count individual technical edits as separate requests. War is one request, POL missions and POL decisions are the other two requests in the current batch. - Include the scope checklist, verification plan, PR/commit and actual live-release evidence in that ticket. Update its progress and complete it only when its stated scope is actually live and verified. - Placeholder pages must be explicitly marked as previews and include all appropriate DuneRealms artwork. Preserve working actions while the remaining consumers are built. + +## Latest owner direction: portal and control-panel redesign (24 November 2026) + +- The owner said “negeer tickets”: skip ticket creation; it must not block work. +- Current priority is the public portal preview before further CP redesign. The owner explicitly wants to keep the current site if unsatisfied: do not replace the live homepage before design acceptance. +- Use the supplied green/gold portal image as inspiration, not an immutable layout. Preserve the existing logo, seals, awards and avatars. Other layouts, menus and artwork may be redesigned, including the CPs. +- Reduce the number of control panels and unify their design, but do not cram everything into one panel. Personal services, organisation management and staff need distinct, understandable workspaces. +- The POL backend can retain its existing service contracts independently of presentation changes. The tested political-war backend batch remains on PR 563, separate from this design preview. +- Existing hostnames are sufficient for this preview. Discuss a new hostname only if implementation actually needs it. diff --git a/website/scripts/build.mjs b/website/scripts/build.mjs index 8a592299..b7d07d99 100644 --- a/website/scripts/build.mjs +++ b/website/scripts/build.mjs @@ -1,56 +1,59 @@ -import {publishExchangeAssets} from './public-exchange-assets.mjs'; -import {createHash} from 'node:crypto'; -import {withRealmSwitch,REALM_SWITCH_CSS} from './realm-switch.mjs'; -import {HOUSE_STYLE_CSS} from './house-style.mjs'; -import {bankRatesPage} from './bank-rates-page.mjs'; -import{withCanonicalMenu,MAIN_MENU}from'./main-menu.mjs'; -import{withMenuBadges}from'./menu-updates.mjs'; -import{updatePortalNavigation}from'./portal-navigation.mjs'; -// Package the authored web and worker sources without rewriting their content. -import {readFileSync,writeFileSync as writePlain,renameSync,unlinkSync,openSync,writeSync,closeSync,readdirSync,statSync,mkdirSync,existsSync,rmSync,cpSync} from 'node:fs';import path from 'node:path';import {fileURLToPath} from 'node:url'; -function writeFileSync(file,content){const temporary=file+'.build-'+process.pid;writePlain(temporary,content);renameSync(temporary,file);} -const root=path.resolve(path.dirname(fileURLToPath(import.meta.url)),'..'),web=path.join(root,'web'),dist=path.join(root,'dist'); -// Fail before packaging if a public menu destination or illustration is missing. -for(const [label,href,icon] of MAIN_MENU){ - const url=new URL(href); - if(url.hostname==='www.dunerealms.com'){ - const relative=url.pathname==='/'?'index.html':decodeURIComponent(url.pathname.slice(1)); - if(!existsSync(path.join(web,relative)))throw Error('Broken public menu link: '+label+' -> '+relative); - } - if(!existsSync(path.join(web,'assets',icon)))throw Error('Missing menu artwork: '+label+' -> '+icon); -} -for(const [page,dependencies] of [['shop.html',['shop-landing.css','shop-embed.js']],['kits.html',['kits.css','kits.js']]]){ - for(const file of dependencies)if(!existsSync(path.join(web,file)))throw Error('Missing '+page+' dependency: '+file); -} -// Menu badges are now published manually through Imperial Bureau. -const homepage=readFileSync(path.join(web,'index.html'),'utf8'); -const legalNotice=homepage.match(/