Skip to content

Commit e5562d3

Browse files
committed
Remove MEM DB as active DEV runtime and standardize DEV on Local DB - PR_26164_090-remove-mem-db-dev
1 parent 25c23f6 commit e5562d3

62 files changed

Lines changed: 2637 additions & 703 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

admin/db-viewer.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,24 @@
1616
<main data-admin-only="true">
1717
<section class="page-title">
1818
<div class="container">
19-
<div class="kicker" data-admin-db-mode-kicker>Admin Only / Local Mem DB</div>
20-
<h1 data-admin-db-mode-title>Local Mem DB</h1>
21-
<p class="lede" data-admin-db-mode-description>Read-only Local Mem DB dump for project tables, relationships, and data diagnostics.</p>
19+
<div class="kicker" data-admin-db-mode-kicker>Admin Only / Local DB</div>
20+
<h1 data-admin-db-mode-title>Local DB</h1>
21+
<p class="lede" data-admin-db-mode-description>Read-only Local DB dump for project tables, relationships, and data diagnostics.</p>
2222
</div>
2323
</section>
2424
<section class="section">
2525
<div class="container container--tool-wide">
2626
<div class="tool-workspace tool-workspace--wide">
2727
<aside class="tool-column tool-group-build">
2828
<div class="tool-column-header">
29-
<h2 data-admin-db-mode-title>Local Mem DB</h2>
29+
<h2 data-admin-db-mode-title>Local DB</h2>
3030
</div>
3131
<div class="accordion-stack">
3232
<details class="vertical-accordion" open>
3333
<summary>Scope</summary>
3434
<div class="accordion-body content-stack">
35-
<p data-admin-db-scope-description>Current tool Local Mem DB records are displayed as a read-only human-readable dump.</p>
35+
<p data-admin-db-scope-description>Current tool Local DB records are displayed as a read-only human-readable dump.</p>
3636
<p>Use the diagnostics panel to confirm table attribution, relationships, and table bleed checks.</p>
37-
<button class="btn btn--compact" type="button" data-admin-db-clear>Clear Local Mem DB</button>
3837
</div>
3938
</details>
4039
</div>
@@ -43,13 +42,13 @@ <h2 data-admin-db-mode-title>Local Mem DB</h2>
4342
<section class="tool-center-panel content-stack" aria-labelledby="admin-db-viewer-title" data-admin-db-viewer>
4443
<div class="content-cluster">
4544
<div>
46-
<div class="kicker" data-admin-db-mode-kicker>Local Mem DB</div>
47-
<h2 id="admin-db-viewer-title" data-admin-db-mode-title>Local Mem DB</h2>
45+
<div class="kicker" data-admin-db-mode-kicker>Local DB</div>
46+
<h2 id="admin-db-viewer-title" data-admin-db-mode-title>Local DB</h2>
4847
</div>
49-
<span class="status" role="status" data-admin-db-status>Loading Local Mem DB records.</span>
48+
<span class="status" role="status" data-admin-db-status>Loading Local DB records.</span>
5049
</div>
51-
<div class="action-group" role="group" aria-label="Local Mem DB table filters" data-admin-db-filters></div>
52-
<section class="content-stack" aria-label="Local Mem DB tables" data-admin-db-tables></section>
50+
<div class="action-group" role="group" aria-label="Local DB table filters" data-admin-db-filters></div>
51+
<section class="content-stack" aria-label="Local DB tables" data-admin-db-tables></section>
5352
</section>
5453
<aside class="tool-column tool-group-build">
5554
<div class="tool-column-header">

admin/db-viewer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ async function loadLocalDbViewer() {
4444
return;
4545
}
4646
const session = currentSession();
47-
if (session.mode !== "local-mem" && session.mode !== "local-db") {
48-
showGatewayStatus(session.diagnostic || "DB Viewer is available only in Local Mem or Local DB mode.");
47+
if (session.mode !== "local-db") {
48+
showGatewayStatus(session.diagnostic || "DB Viewer is available only in Local DB mode.");
4949
return;
5050
}
5151
const module = await import("../src/engine/api/mock-db-viewer-ui.js");

admin/environments.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2>Admin</h2>
4242
<details class="vertical-accordion" open>
4343
<summary>Environment Setup</summary>
4444
<div class="accordion-body content-stack">
45-
<label>Environment <select disabled><option>Local Mem</option><option>Local DB</option><option>UAT</option><option>Production</option></select></label>
45+
<label>Environment <select disabled><option>Local DB</option><option>UAT</option><option>Production</option></select></label>
4646
<label>Promotion Gate <select disabled><option>Manifest validation</option><option>Asset readiness</option><option>Public play readiness</option></select></label>
4747
<button class="btn btn--compact" type="button" disabled>Preview Gate</button>
4848
</div>
@@ -68,7 +68,6 @@ <h2 id="admin-environments-title">Environment Matrix</h2>
6868
</tr>
6969
</thead>
7070
<tbody>
71-
<tr><td>Local Mem</td><td>Memory DB</td><td>Developer only</td><td>Wireframe</td></tr>
7271
<tr><td>Local DB</td><td>SQLite</td><td>Local verification</td><td>Wireframe</td></tr>
7372
<tr><td>UAT</td><td>Server DB</td><td>Release candidate</td><td>Planned</td></tr>
7473
<tr><td>Production</td><td>Server DB</td><td>Public play readiness</td><td>Planned</td></tr>

assets/theme-v2/js/gamefoundry-partials.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@
385385
authenticated: Boolean(session.authenticated),
386386
diagnostic: session.diagnostic || "",
387387
displayName: session.authenticated ? session.displayName || session.label || "Account" : "Login",
388-
mode: session.mode || "local-mem",
388+
mode: session.mode || "local-db",
389389
roleSlugs: Array.isArray(session.roleSlugs) ? session.roleSlugs : []
390390
};
391391
} catch (error) {

assets/theme-v2/js/login-session.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const localApiStartCommand = "npm run dev:local-api";
2727
const localApiLoginUrl = "http://127.0.0.1:5501/login.html";
2828
const expectedSessionEndpoint = "/api/session/current";
2929
const apiBackedLoginDiagnostic = `Use the API-backed local server for login. Run ${localApiStartCommand} and open ${localApiLoginUrl}.`;
30-
const staticModeDisabledMessage = `Use the API-backed local server for login. Run ${localApiStartCommand} and open ${localApiLoginUrl}. Local Mem and Local DB are disabled until the local API server is running.`;
30+
const staticModeDisabledMessage = `Use the API-backed local server for login. Run ${localApiStartCommand} and open ${localApiLoginUrl}. Local DB is disabled until the local API server is running.`;
3131
let reseedConfirmationPending = false;
3232
let reseedStatusMessage = "";
3333
const localStatusFields = {
@@ -98,7 +98,7 @@ function reseedModeLabel(mode) {
9898
function updateReseedControls({ apiAvailable, mode, statusMessage }) {
9999
const modeLabel = apiAvailable ? reseedModeLabel(mode) : "Unavailable";
100100
const message = statusMessage || (apiAvailable
101-
? `Ready to reseed ${modeLabel} only.`
101+
? `Ready to reseed ${modeLabel}.`
102102
: "Reseed unavailable until the Local API is available.");
103103
if (reseedFields.activeMode) {
104104
reseedFields.activeMode.textContent = modeLabel;
@@ -206,7 +206,7 @@ function renderError(error) {
206206
: "Local server without session API";
207207
const disabledReason = message === apiBackedLoginDiagnostic
208208
? staticModeDisabledMessage
209-
: `Local Mem and Local DB are disabled because ${message}`;
209+
: `Local DB is disabled because ${message}`;
210210
reseedConfirmationPending = false;
211211
reseedStatusMessage = "Reseed unavailable until the Local API is available.";
212212
modeButtons.forEach((button) => {
@@ -222,7 +222,7 @@ function renderError(error) {
222222
modeTitle.textContent = "Session API required";
223223
}
224224
if (modeDescription) {
225-
modeDescription.textContent = "Start the API-backed local server to choose Local Mem or Local DB.";
225+
modeDescription.textContent = "Start the API-backed local server to use Local DB.";
226226
}
227227
if (modeStatus) {
228228
modeStatus.textContent = `Login/session diagnostic: ${message}`;
@@ -280,7 +280,7 @@ function render() {
280280
}
281281
updateLocalDevelopmentStatus({
282282
apiAvailability: `Available: ${expectedSessionEndpoint} responded through the local API server.`,
283-
disabledReason: "Local Mem and Local DB are enabled because the Local API is available.",
283+
disabledReason: "Local DB is enabled because the Local API is available.",
284284
serverMode: `API-backed local server (${mode.label || session.mode})`,
285285
});
286286
updateReseedControls({
@@ -301,7 +301,7 @@ function render() {
301301

302302
modeButtons.forEach((button) => {
303303
button.addEventListener("click", () => {
304-
const modeId = button.dataset.loginMode || "local-mem";
304+
const modeId = button.dataset.loginMode || "local-db";
305305
if (isStaticLocalEntrypoint()) {
306306
renderError(new Error(apiBackedLoginDiagnostic));
307307
return;
@@ -337,7 +337,7 @@ reseedFields.startButton?.addEventListener("click", () => {
337337
const mode = currentModeForReseed();
338338
const modeLabel = reseedModeLabel(mode);
339339
reseedConfirmationPending = true;
340-
reseedStatusMessage = `Confirm reseed for ${modeLabel} only. The other DB mode will not be reseeded.`;
340+
reseedStatusMessage = `Confirm reseed for ${modeLabel}.`;
341341
render();
342342
} catch (error) {
343343
reseedConfirmationPending = false;
@@ -364,7 +364,7 @@ reseedFields.confirmButton?.addEventListener("click", () => {
364364
const modeLabel = reseedModeLabel(currentModeForReseed());
365365
seedMockDb();
366366
reseedConfirmationPending = false;
367-
reseedStatusMessage = `Reseed complete for ${modeLabel}. Only ${modeLabel} was reseeded.`;
367+
reseedStatusMessage = `Reseed complete for ${modeLabel}.`;
368368
dispatchModeChanged();
369369
render();
370370
} catch (error) {

0 commit comments

Comments
 (0)