9. Client: generic Svelte components
-
[E] One state module with Svelte 5 runes (
.svelte.ts) replaces the module variables ofsrc/client/main.ts; one component per view. -
[E]
main.tsmust not grow: a CI ratchet keeps its line count at or below its count on the base branch, and a pull request that shrinksmain.tslowers the limit for the next ones by being merged; no file holds the number (#242, #317 part 4, see Test strategy). -
[E] Generic components render from the catalog:
CatalogList(buildings, research, shipyard, defense) andProducerTable(resources). A new entry needs no new HTML. -
[E] The catalog views are converted first (buildings, research, shipyard, defense), where #45, #51 and #53 add the most; then the other views (owner, 2026-11-13, #118).
-
[E] Built with #114 (ProducerTable):
src/client/views/ProducerTable.svelterenders the resources page, one row per entry ofproducerRows(), andmountProducerTable()(src/client/views/producer-table.ts) mounts it likemountBuildings();renderViewinsrc/client/main.tsmounts the viewresourcesas the second Svelte view and updates it on every render. The share selects keepdata-chg="pct",data-kanddata-nokeep. -
[E] Built with #118, first pull request (the four lists, owner D1 of 2026-11-13): the state module is
src/client/logic/state.svelte.ts, one objectclientwith runes.client.game(the state of the server) andclient.shown(what the mounted views show) are$state.raw, replaced as a whole;client.view(the view state of the last render, which the completion notices compare with),client.ui,client.offsetwithclient.now(),client.lastKey,client.completionNoticesandclient.completedMenuare plain fields;client.forget()clears what belonged to another planet, player or round.main.tskeeps no copy of them (S,ctx,offset,lastKey,uiand the two notice lists are gone). Every game action goes through oneact(), built bycreateAct()ofsrc/client/logic/act.ts, which applies the answer only while the player looks at the same planet (placeOf,samePlace, also used byrefresh()). The views keepdata-actand the one click handler ofmain.ts. -
[E]
CatalogList(src/client/views/CatalogList.svelte, mounted bymountCatalogList()) renders Gebäude, Forschung, Schiffsschmiede and Verteidigung fromcatalogPage(v, kind)ofsrc/client/logic/catalog-list.ts(CATALOG_VIEWSmaps the views to the kindsbuilding,research,ship,defense): the title, the line below it, the orders of the shipyard and the lock notice, or the notice why the planet has no list; then one row per entry of the catalog table of the kind (the buildings filtered byplacement, #53) with its texts, icon, explanation, level, cost with the energy ofenergyThreshold, the lines (energy and use of the next level, stats ofcombatandmobile, time) and its action. It replacesBuildings.svelte,buildings.ts,views/economy.ts(research),views/yard.tsanditemHTML()ofviews/common.ts. A list is mounted once per view and updated on every render (flushSync); a fresh render mounts it again, as the HTML views render anew, so no number typed into the shipyard stays on another planet. The clock movesclient.shownto the planet of now every second for a mounted list, which replacesupdateResearchButtonsandupdateShipyardButtons, and leaves the countdowns of the list to it.lockNotice()with its comparison withyardmoved fromyard.tstocatalog-list.ts; the allow-list entry of #183 moved with it. -
[E] Review of #209 (2026-11-14), each with a test that failed before: an action answers
done,stale(it went through, but the player left the planet meanwhile) orfailed;orderandsendclear their form only ondone(actHereinmain.ts), so the answer of an order on one planet no longer clears the field of another (the base did, throughstillOnPlanetand atrue). A refresh applies its state only when it is the newest one and no action was on its way or started while it ran (sync.refresh()), so it never brings back a state older than an action’s answer (the base had this race too); the next refresh follows within 4 seconds. The energy a level of a building needs is compared withproduction(), asenergyShort()checks it, not withprod(): with a throttled Fusionskraftwerk the row showed enough energy while the button said „Zu wenig Energie“. The oldBuildings.sveltehad the same mismatch, so this is a change of behaviour; its frozen copy for the reference test has the same one change, marked. -
[E] All four lists follow the clock (owner, 2026-11-14, #118, option C „Alle live + Changelog“): in Forschung, Schiffsschmiede and Verteidigung the costs and the lists „Benötigt“ now update every second as in Gebäude (before, only the buttons and the maxima did), and a clicked button keeps its focus, because the list is updated in place; not chosen: copying the old split (costs from the last render, buttons from the clock), or the same without a changelog entry. The pull request brings the fragment
changes/listen-live.md(art: geändert). -
[E] Order after the lists (owner, 2026-11-14, #118 „Geklärt, Nachtrag 2“): next come the views that the phone view #189 builds on, the Übersicht, the header, the Sternenkarte and the navigation (tab bar and „Mehr“); [V] one view per pull request, and no two views of #118 are built in parallel.
-
[E] Built with #118, second pull request (the Übersicht):
src/client/views/Overview.svelte, mounted bymountOverview()(src/client/views/overview.ts), renders the overview fromoverviewPage(v)ofsrc/client/logic/overview.ts: the title, the fleet movements (fleetRows(), the owner of a foreign fleet as a bold part, the recall of an own fleet but not of the gift of #161), the planet or moon with its picture, kind, position, type, temperature, diameter with the fields, points with the place, the server time of the render, and the activities (activityRows(): building, research, the next unit of the shipyard). It replacesoverview()ofviews/overview.ts; the fleet view builds its list „Flotten unterwegs“ from the samefleetRows()(only the player’s own fleets) and stays HTML. Unlike the lists, the overview is mounted anew on every render, as its HTML view was rendered anew: the clock ofmain.tskeeps counting its countdowns down and marking the ones that fired (data-fired), and the focus behaves as before, so nothing visible changes;client.shownis not moved by the clock for it, so „Serverzeit“ stays the time of the render. A view that is neither a Svelte view nor an HTML view gets the overview, as before. -
[E] Settled by package 8 (2026-11-20, section 13):
main.tsis the frame of 30 lines and keeps no state. The rest of this bullet is the history of the earlier pull requests of #118. Left inmain.tsthen: the login (loginChallenge,rememberLogin,resetToken), the admin panel (adminPanel), the mounted Svelte view (mounted, a DOM handle),lastActivity, the install offer (installPrompt,installedHere,installDismissed), the news (newsLoading,newsLoad), the maintenance banner (maintenance),planetRequest,readPendingandannouncementPending;client.uiis not reactive yet, and the resources page still gets its view state through a store. The second pull request (the Übersicht) moved no variable of this list: the old view kept no state inmain.ts;mountednow also holds the overview. Bundle 1 (header line, navigation, resource bar) moved none either: the old frame kept no state inmain.ts;renderMenustill clears the dot of the news (seeNews) before it shows the navigation, andupdateBarstill returns the planet moved to now for the clock. Bundle 2 (the Sternenkarte) moved none either: the old view kept its state inclient.ui(gal,sys,gmoon,scan), which stays there;mountednow also holds the Sternenkarte. Bundle 3 (Flotte) moved none either: the old view kept its state inclient.ui(ft,fm,union), which stays there;mountednow also holds the fleet view. Bundle 4 (Nachrichten, Neuigkeiten) moved none either: the old views keptclient.ui.openRepandclient.ui.news, which stay there. Bundle 5 (Highscore, Achievements) moved none either: the old views keptclient.ui.highscoreand the folds of #189 (unfoldedoflogic/achievement-fold.ts), which stay there. Bundle 5, second part (Optionen) moved none either: the old view kept the input of its fields in the DOM, whichkeepInputs()ofmain.tsthen still carried over a render (gone since #332: the fields are state of the component). Bundle 6 (Gilden) moved none either: the old view keptclient.ui.guild, which stays there; the dialog functionmodal()moved frommain.tstosrc/client/modal.ts. Still rendered as HTML: the view Admin (Marktplatz and Freunde, which came after the bundles were proposed, are components since the bullet below; they moved none either). -
[E] Bundle 3 after bundle 2 (owner, 2026-11-15 and 2026-11-16: the order of the bundles of #118 „Geklärt, Nachtrag 3“, unchanged by „Nachtrag 4“): Flotte, which the earlier work paused (the branch
claude/fleet-svelte, built on #250) while #253, #292, #225, #93, #230 and #55 changed the view; it is converted on their state, not merged. -
[V] Built with #118, bundle 3 (Flotte):
src/client/views/Fleet.svelte, mounted bymountFleet(target, v)ofsrc/client/views/fleet.ts(which renders no HTML any more, and leavesVIEWSofviews/index.ts), renders the view fromfleetPage(v)ofsrc/client/logic/fleet.ts, without HTML: the title with the used and free slots (the gift of #161 and missiles take none) and the expeditions of #93; the fleets on their way (FleetMoves.svelte, which the overview uses too instead of its own table); the box „Verbandsangriff“ of #225 (the rows oflogic/union.tswith their countdowns); the ships that can fly with „max“, „alle Schiffe“ and „keine Schiffe“, or the notice without any; the form „2. Ziel und Auftrag“ with the list „Schnellwahl“ (#253, #292), the target (the one of the Sternenkarte,ui.ft, or the shown planet; „Mond“ only where one is, #53; the field „Position“ up to the expedition position of #93), the list „Auftrag“, the note on the limit of planets (#237), the row „Verband“, the row of the time at the target, the speeds, the cargo fields each with its „alles“ and „alles (gleichmäßig)“ (#240), the empty cells of the preview and „Flotte losschicken“; and the box „Warp-Tor“ of #230 (jumpPanel()). The data come as a property (page), as for the Sternenkarte. Two parts were HTML in the component ({@html}; gone with #332) becausefeatures/fleet.tswrote them again while the player types, and both must come from the same function: the options of the list „Auftrag“ (missionOptions()offleet-target.ts) and the row of the time at the target (timeRowHtml(), which withholdRow(),timeRow()andrealStay()moved fromviews/fleet.tsto the newlogic/fleet-time.ts).quickOptions()is gone: the component renders the options of „Schnellwahl“ itself. The view is mounted anew on every render (ANEW), as its HTML was rendered anew:keepInputskept (until #332, which made them state of the component) the typed numbers, the chosen target, mission and speed and the focus by id, and the clock counts the countdowns down, as before. Reading the form, the preview and the click actions stay infeatures/fleet.ts; the box and the row of the unions lost their HTML (views/union.tsis gone).main.tsno longer names a view that is a component: the table of which views are components and how each is mounted (MOUNTED,ANEW,mountView()) issrc/client/views/mount.ts, so a view that moves to a component is added there, not inmain.ts(1,222 to 1,191 lines). No visible change. -
[E] Bundle 4 after bundle 3 (owner, 2026-11-15 and 2026-11-16: the order of the bundles of #118 „Geklärt, Nachtrag 3“, unchanged by „Nachtrag 4“): Nachrichten and Neuigkeiten.
-
[V] Built with #118, bundle 4:
Messages.svelte, mounted bymountMessages()ofviews/messages.ts, renders the list of reports frommessagesPage(v)of the newlogic/messages.ts: the count, „Alle löschen“, each report newest first with its title, time, the marksnewandopen, and its body, which is a text, an update message (its lines and the link to „Neuigkeiten“) or the values of a battle, espionage or survey report. The bodies of these reports were HTML at first (reportBodyHTML(), rendered with{@html}); since #330 they are components, see the next entry.News.svelte, mounted bymountNews()ofviews/news.ts, renders „Neuigkeiten“ fromnewsPage()oflogic/news.ts(newsHTML()andupdateMessageHTML()are gone; the link of the update message isUPDATE_LINK). Both views leaveVIEWSofviews/index.ts, are added toviews/mount.tsand are mounted anew on every render (ANEW), as their HTML was rendered anew: an opened report stays open (client.ui.openRep, toggled byfeatures/reports.ts) and the news render again once they have loaded. No visible change. -
[V] Built with #330 (the bodies of the reports as components, no visible change,
{@html}gone fromMessages.svelte):reportBody()oflogic/report-body.tsturns a stored battle, espionage or survey report into plain values (BattleBody,SpyBody, andSurveyBodyofsurveyReport()inlogic/survey.ts: the lines, the rows of the unit tables, the sections with their lists, andnullwhere a part is missing), andReportBody.sveltehands them toBattleReport.svelte(withUnitTable.svelte),SpyReport.svelteorSurveyReport.svelte, which only render. A player’s text (planet, player and guild names) reaches the page as text; no value was shown as HTML on purpose (what the old strings did not escape were numbers and words of the game). The old functions are deleted; the frozen copy lives insrc/test/report-body-reference.test.ts, which compares it with the components on generated reports of every kind (seed 330, sampled once) and hand-built cases, among them the shapes older versions stored (battle reports without tech, loot, debris, moon,heldorattackers; espionage reports withoutactivity).Messages.svelteand its reference test take the bodies fromReportBody.sveltetoo. -
[E] Scope of #330 (D1): only the report bodies; the other
{@html}pieces (the option list and time row ofFleet.svelte, the options and preview ofMarket.svelte, the guild profile ofGuilds.svelte,costHTML/requirementsHTMLofCatalogList) stay as they are and get an issue of their own later (owner, 2026-11-21, through the coordinator). -
[V] Built with #337 (the issue of the previous entry; owner and coordinator, 2026-11-21): the
{@html}pieces that show a value of a player or of the game are Svelte markup, view by view, with no visible change.Cost.svelteandRequirements.svelte(CatalogList,LevelTable,LexicanumArticle),PlanetPicture.svelteandMoonPicture.svelte(overview, Sternenkarte) andMarketPreview.sveltereplacecostHTML(),requirementsHTML(),planetHTML(),moonPicture()andpreviewHTML(); in the Sternenkarte the symbols of a moon and of a Trümmerfeld are data (GalaxyMarkoflogic/galaxy.ts) and the button „Bergung“ is the action kindharvest(a small button in the row and in the sheet), soGalaxyActionhas nohtmlkind;moonMark(),debrisMark()andharvestButton()are gone. A name or text that was escaped is text of the component, so Svelte escapes it. The frozen copies of the builders aresrc/test/html-pieces-frozen.ts, which the reference tests import; see Reference tests of the Svelte views.Fleet.sveltehas no{@html}left (#332 removed the two named above). What stays: the fixed SVG glyphsTAB_GLYPHSofTabBar.svelte,MoreList.svelteandBell.svelte(no player or game data; decided), and the guild profile ofGuilds.svelte, the one exception with data of a player ([E] owner, 2026-11-21, #337 Q41; noted next to the code): the server renders the guild description with markdown-it (html: false,linkify: false, images disabled), so a tag a player types comes out as text; no conversion is planned. A link stays allowed ([E] owner, 2026-12-01, #623) and is rendered withrel="nofollow noopener noreferrer ugc",target="_blank"and the classexternal(a „↗“ after it) (src/server/game/profile-markdown.ts). Every other place that writes HTML into the page is listed inhtml-sinks.jsonwith its reason;src/test/html-sinks.test.tskeeps the list exact (a new sink or a gone one fails it) and ESLint refusesinnerHTML,outerHTML,insertAdjacentHTML,createContextualFragmentanddocument.writeelsewhere, so the list can only shrink [V]. -
[E] Bundle 5 after bundle 4 (owner, 2026-11-15 and 2026-11-16: the order of the bundles of #118 „Geklärt, Nachtrag 3“, unchanged by „Nachtrag 4“): Highscore, Achievements, and Hilfe & Optionen.
-
[V] Built with #118, bundle 5, first part (Highscore, Achievements; „Hilfe & Optionen“, now „Optionen“, follows in its own part):
Highscore.svelte, mounted bymountHighscore()ofviews/highscore.ts, rendershighscorePage(v)oflogic/highscore.ts: the buttons of the categories (#78), the table.scoreswith each player’s place, name, home planet (a planet, never a moon, #53, with its link to the system) and points, and the note below.Achievements.svelte, mounted bymountAchievements()ofviews/achievements.ts, rendersachievementsPage(v)of the newlogic/achievements.ts: the title („Achievements“, or „Belohnungen“ in a round with the daily reward only), the box of the daily reward (#220), the filter (search, category, status) and the groups „Einlösbar“, „Offen“ and „Erledigt“ with the fold of the phone (#189:data-lateron the entries after the next goal of a series,data-foldanddata-allon the group, the buttonachFold). The markup is that of the HTML views, so the rules ofstyle.cssfor.scoresand the fold keep working, andfeatures/achievements.tsstill reads the filter by ids and the marksdata-achievement,data-category,data-statusanddata-search. Both views leaveVIEWSofviews/index.ts, are added toviews/mount.tsand are mounted anew on every render (ANEW), as their HTML was rendered anew: the filter is applied again after each render (afterRender), and the folds stay inunfolded.highscoreButtonsHTML()and the two HTML functions are gone;homeCell()ofviews/common.tswent with the buddy list (below).main.tsstays at 1,191 lines: neither view had code in it. No visible change. -
[V] Built with #118, bundle 5, second part („Optionen“, formerly „Hilfe & Optionen“, view
help):Options.svelte, mounted bymountOptions()ofviews/options.ts, rendersoptionsPage(v)of the newlogic/options.ts, in its boxes: the choices (probes per Auspex exploration, the „(?)-Symbol“, the „Stufenübersicht“ of #187), „Hauptplanet“ (#221,mainPlanetBox()), „Urlaubsmodus“ (#223), „Meine Aktivität & Spielzeit“ (#231), „Rundenarchiv“ (#235), „Darstellung“, „Passwort ändern“, „Passkeys“, „App installieren“, „Benachrichtigungen“ (the push kinds of #192,pushKinds(), only on a server with Web Push) and „Browser- Benachrichtigungen“, „Problem melden“, „Account löschen“ and the link to „Dieses Universum“ of the Lexicanum (#288). The frame of a box is the newBox.svelte. The ids and thedata-acts are those that the features read (options.ts,playtime.ts,passkeys.ts,install.ts,push.ts,report-problem.ts,round-archive.ts) andmain.ts(the formspasswordform,o_anim,data-chg="push"). What a feature fills after the render stays a plain element of the component:#own-activity(filled byplaytime.tsfromGET /api/own-activity),#passkey-listand the hidden button#pwa-install(shown byinstall.ts). The view leavesVIEWS, is added toviews/mount.ts(help) and mounted anew on every render (ANEW), as its HTML was; the rendering of the archive comes fromarchiveHTML()oflogic/round-archive.tsas markup ({@html}), because the admin box „Rundenberichte“ shares its report, list and history and stays HTML until the Admin bundle. The boxes of the lock screen of the vacation mode (passwordBox(),passkeysBox(),notificationBoxes(),deleteAccountBox()ofviews/misc.ts) are still HTML, so they stay there; they share the sentence of „Account löschen“ with the component (deleteAccountText()) and the push kinds (pushKinds(), from whichpushKindsHTML()is built).help()and the HTML of the options ofexplain.ts,level-mode.ts,main-planet.ts,vacation.tsandown-activity.tsare gone.main.tsstays at 1,191 lines: the view had no code in it; its handlers (o_anim,passwordform) go to the component with package 8. No visible change. -
[E] Bundle 6 after bundle 5 (owner, 2026-11-15 and 2026-11-16: the order of the bundles of #118 „Geklärt, Nachtrag 3“, unchanged by „Nachtrag 4“): Gilden, after #169.
-
[V] Built with #118, bundle 6:
Guilds.svelte, mounted bymountGuilds()ofviews/guilds.ts, rendersguildsPage(v)of the newlogic/guilds.ts: the directory with the form to found a guild, or the page of one guild: profile, points, members (GuildMembers.svelte: the rank and, by the own rank, „Leitung übergeben“, „Rang ändern“ with the classrank-selectof #277, „Entfernen”), the chat box (GuildChat.sveltewithChatLog.svelte, #169), „Bewerben“ / „Gilde verlassen“ / „Gilde auflösen“, the admin’s „Chat lesen“, and for the own guild the applications, the ranks (GuildRanks.svelte, #163: editor, rights as checkboxes withdata-rank-right, the order, default and deleting) and the profile form (GuildProfileForm.svelte). Every decision of the old view (what the own rank may see and do, bycore/guild-ranks.ts) is made inlogic/guilds.ts; the components only render. The three dialogs (GuildDialogs.svelte: hand-over, dissolving, the admin’s chat) are components too:modal()(nowsrc/client/modal.ts, out ofmain.ts) takes HTML or aDialog(a function that mounts into#modalInand returns how to unmount) and takes the earlier one down whenever it shows anything, somodal('')still closes. The view is mounted anew on every render (ANEW), as its HTML was:keepInputs(until #332, which made the fields state of the component; inputs by id, the ticked rights bydata-rank-right,data-nokeepof the dissolve field),keepChatScroll(.chat-log) and the draft of the chat work on the new markup as before; the ids,data-act, form ids anddata-*hooks are those of the HTML view (pinned insrc/test/guilds-reference.test.ts). A field now gets its value as a property, not as the attributevalue; nothing reads the attribute.box()ofcommon.tsstays for the other HTML views;Box.svelteis its component.main.ts1,191 to 1,186 lines. No visible change. -
[E] Bundle 7 (owner, 2026-11-19, #118 „Geklärt“: in the update of 2026-11-22; package 8 follows): Admin, with the login and the install state.
-
[V] Built with #118, bundle 7:
Admin.svelte, mounted bymountAdmin()ofviews/admin.ts, rendersadminPage()of the newlogic/admin.ts: the tabs, the settings of the universe (the live settings of the round among them,settingRow()), the invitation with its link, the box „Endzeit“, „Rundenberichte“, „Neue Runde“ and „Servernachricht“. The round archive isRoundArchive.svelte(archivePage(state, admin)oflogic/round-archive.ts), used by „Optionen“ and the admin, so{@html}is gone. The dialogs „Neue Runde“ (RoundDialog.svelte,roundDialogPage(); the field of each setting of the registry, a fieldset per group, the wrapper[data-round-field]and the preview line thatfeatures/round.tskeeps current) and „Endzeit einläuten“ (EndzeitDialog.svelte) areDialogs ofmodal(). The login and registration areAuth.svelte(authPage()oflogic/auth.ts), mounted byrenderLoggedOut. The panels that load from the server are components too (after bundle 7):AdminDiagnostics.svelte,AdminErrors.svelteandAdminInvitations.svelte, withAdminTable.svelteandAdminPager.svelte, from the purelogic/admin-panels.ts. What they loaded, what was typed into their filters and the tab that is shown are the state oflogic/admin-panels.svelte.ts, which also holds the calls and the arrow keys; it stays over a render (the page is mounted anew each time) for the same admin.features/admin.tsholds the handlers (adminTab,revoke, the formsinviteformandannounceform),features/login.tsthe steps of the login with their stateloginoflogic/login.ts(resetTokenis read byapply()inmain.ts).ClientCtxgainedapplyandsignedOut. The view registers itself withclientViewsinviews/admin.ts(menu order 180, shown to an admin), somount.tsandVIEWSname it no more. The fields of the settings staydata-nokeep; the draft of what the admin typed (logic/settings-draft.ts) is put back byafterRenderas before. The ids,data-acts, form ids anddata-*hooks are those of the HTML (pinned insrc/test/admin-reference.test.ts,auth-reference.test.tsandround-archive-reference.test.ts). The install state was already infeatures/install.ts.ADMIN_TABSis still exported byviews/misc.tsbecausee2e/phone-overflow.spec.tsimports it there.main.ts1,186 to 888 lines. Package 8 still has: transport, maintenance, toasts, „Problem melden“, the click table and the remaining forms (account deletion, chat, etc.). No visible change. -
[E] Marktplatz (#171) and Freunde (#227) are part of the update of 2026-11-22 (owner, 2026-11-19, „Geklärt“ on #118): both views become components, with no change of a game rule, a text or the look.
-
[V] Built with #118, bundle 7, second part (Marktplatz, Freunde):
Market.svelte, mounted bymountMarket()ofviews/market.ts, rendersmarketPage(v)of the newlogic/market-page.ts: the notice while the market is off for the round, no prices came, or the planet has no Handelsposten, else the form (what to give, what to get, the amount with „max“, the preview, „Tauschen“). The draft staysdraftoflogic/market.tsand the typed values stayed withkeepInputs()ofmain.ts(by id; since #332 they are state of the component,logic/market-form.svelte.ts);features/market.tsstill reads the form by its ids and writes the list of what to get and the preview into their places while the player types, so those two lists and the preview are HTML in the model (targetOptions(),previewHTML(), moved fromviews/market.tstologic/market-page.ts) and{@html}in the component, as the target and the preview of the fleet form are.gainWarning()oflogic/market.ts, which the admin settings use too, is untouched.Friends.svelte, mounted bymountFriends()ofviews/friends.ts, rendersfriendsPage(v)oflogic/friends.ts: the table.friends(name, guild tag, home planet with its link, online or offline, „Freundschaft beenden“), the requests both ways and the form „Freundschaft anfragen“; the buttons carrydata-act="friend"withdata-opanddata-uid, whichfeatures/social.tsreads. The link to a planet isHomeCell.svelte(fromhomeLink()oflogic/friends.ts), whichHighscore.svelteuses too instead of its own copy;homeCell()ofviews/common.tsis gone. Both views leaveVIEWS(only the admin remains there) and are mounted anew on every render (ANEW), as their HTML was.main.tsstays at 1,186 lines. No visible change. -
[E] Bundle 2 after bundle 1 (owner, 2026-11-15 and 2026-11-16: the order of the bundles of #118 „Geklärt, Nachtrag 3“, unchanged by „Nachtrag 4“): the Sternenkarte, which the phone view #189 builds on too.
-
[V] Built with #118, bundle 2 (the Sternenkarte; bundle 1 is described below):
src/client/views/Galaxy.svelte, mounted bymountGalaxy(target, v)ofsrc/client/views/galaxy.ts(which renders no HTML any more, and leavesVIEWSofviews/index.ts), renders the view fromgalaxyPage(v)ofsrc/client/logic/galaxy.ts: the fields „Galaxie“ and „System“ (data-nokeep) with their steps, „Anzeigen“ and „zum Heimatsystem“; the panel of the last scan (#53) with its countdowns (countdown()ofoverview.ts, rendered by the newDue.svelte, which the overview now uses too instead of its own snippet, so the copy check jscpd finds no clone); oneGalaxyRowper position: the planet (GalaxyPlace: name, owner, place in the highscore, noob protection, actions), the symbols of the moon and the Trümmerfeld (#45, #53), the actions of a free position and the row of the open moon; and the Spähschädel of a spying. The actions are data (GalaxyAction: a link or a button with its attributes,data-actfirst, or the name of the shown place); the symbols of the moon and the Trümmerfeld, the button „Bergung“ and the pictures keep their HTML ofmoonMark(),debrisMark(),harvestButton(),moonPicture()andplanetHTML(), rendered with{@html}as the overview renders its pictures, sologic/moon.tsandlogic/debris.tsstay as they are. The data come as a property (page), as for the frame. The view is mounted anew on every render (ANEWinmain.ts, with the overview), as its HTML was rendered anew:keepInputsgave the focus back by id (until #332; the position is state of the component since) (the field „System“ after Enter, the symbol of a moon), the typed system does not come back,paintPlanetspaints the textures and the clock counts the countdowns of the scan down, as before. The click actions (gnav,ggo,ghome,gmoon,gscan,gscanClose,gfleet,gspy,selectPlanet) stay withdata-actinmain.tsuntil package 8;gfleetandgspyread their target withtargetOf()ofgalaxy.ts, somain.tsshrinks (1,875 to 1,873 lines). No visible change. -
[E] Bundle 1 next (owner, 2026-11-16; the bundles of #118 „Geklärt, Nachtrag 3“): the header line, the navigation (menu, tab bar and „Mehr“) and the resource bar, which the phone view #189 builds on.
-
[V] Built with #118, bundle 1: each part of the frame around the view is a Svelte component in its old place of
index.html, from a pure module ofsrc/client/logic/, mounted bysrc/client/views/frame.ts(showHeader,showNavigation,showResourceBar,clearFramewhen signed out):Header.svelte(#pinfo) fromheaderLine(s, P)ofheader.ts: the shown place with its position, the commander, „Logout“ and, with more than one own place, the list „Aktiver Planet“ (#planet_select) ofownPlaces(), the shown place selected; since #241 the list comes first and replaces the name and position as text (below);Menu.svelte(#menu),TabBar.svelte(#tabbar) andMoreList.svelte(#more-list), each link aNavLink.svelte, fromnavigation()ofnavigation.ts: the entries ofmenu()andphoneMenu()(views/index.ts), each with its address, whether it is open (class="on",aria-current="page") and the mark „!“ ofmenuHints()and the news; „Mehr“ open and marked when one of its views is;ResourceBar.svelte(#resbar) fromresourceBar(game, planet, now)ofresource-bar.ts: Adamant, Psikristall and Promethium of the planet moved to now, each with its production per hour, its storage and the mark of a full one, and the energy left over and produced.
The components get their data as properties, not from the state module:
client.uiis not reactive yet, andclient.shownfollows only the mounted views. Each part is mounted anew whenevermain.tsshowed it as HTML before (the header line and the navigation on every render, the bar on every render and every second of the clock), as its HTML was written anew: a focused link or the list „Aktiver Planet“ loses its focus on a render and the title of the bar is replaced every second, as before, so nothing visible changes.data-act(nav,moreOpen,logout) and thechangeof#planet_selectstay with the handlers ofmain.ts. Updating the frame in place instead is left to a later decision (for example with #189). The double display of the active planet (#241) is left as it is: the issue is separate, and this bundle changes nothing visible. -
[V] Built with #241 (see Interface):
Header.svelterenders the list „Aktiver Planet“ first whenheaderLine()gives places, else the name in bold and the position; then „ · Kommandant … · Logout“ in both cases.headerLine()is unchanged. The frozen header ofsrc/test/frame-reference.test.tshas this one change, marked, as the frozenBuildings.sveltehas the one of #209; the property test still compares every other state with it.