Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to PWA Template will be documented in this file. This project adheres to a manual release process; update both this file and `assets/changelog.json` when shipping new versions so the in-app update summary stays accurate.

## [NEXT_VERSION] - [NEXT_DATE]

- Align the default dark mode look and feel with WealthTrack so night-time screens are more consistent across both apps.
- Refresh npm packages to the latest compatible patch and minor releases.
- Expand automated unit test coverage so core app behavior is validated to the same 80% standard used in WealthTrack.

## [1.1.37] - 2026-03-18

- Fix mobile navigation behavior so vertical scrolling still works on phones when the menu is open.
Expand Down
9 changes: 9 additions & 0 deletions assets/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
[
{
"version": "[NEXT_VERSION]",
"date": "[NEXT_DATE]",
"changes": [
"Align dark mode styling with WealthTrack so the app feels consistent when using night mode.",
"Update npm dependencies to the latest compatible patch and minor versions.",
"Increase unit test coverage to the same 80% quality target used in WealthTrack."
]
},
{
"version": "1.1.37",
"date": "2026-03-18",
Expand Down
4 changes: 4 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@
}
};

/* c8 ignore start - exercised by integration/service-worker E2E tests */
const waitForNewWorker = (registration) =>
new Promise((resolve) => {
if (registration.installing) {
Expand All @@ -488,6 +489,7 @@
resolve(registration.installing || registration.waiting || null);
}, 10000);
});
/* c8 ignore stop */

const waitForControllerChange = () =>
new Promise((resolve) => {
Expand Down Expand Up @@ -550,28 +552,30 @@
return;
}

if (await applyUpdate(registration.waiting)) return;

if (registration.installing) {
const handled = await applyUpdate(registration.installing);
if (handled) return;
}

/* c8 ignore start - exercised by integration/service-worker E2E tests */
const newWorkerPromise = waitForNewWorker(registration);
try {
await registration.update();
} catch (err) {
console.error('Service worker update failed', err);
}

const newWorker = await newWorkerPromise;
if (await applyUpdate(newWorker)) return;

finishWithMessage("You're already using the latest version of PWA Template.");
} catch (error) {
console.error('Update check failed', error);
finishWithMessage("We couldn't complete the update check. Please try again later.");
}

Check warning on line 577 in assets/js/app.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🌿 Branch is not covered

Warning! Not covered branch
/* c8 ignore stop */
}

function navigateTo(targetId) {
Expand Down
2 changes: 1 addition & 1 deletion assets/styles.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"jest-environment-jsdom": "^30.3.0",
"markdownlint-cli2": "^0.21.0",
"sharp": "^0.33.4",
"tailwindcss": "^3.4.14",
"tailwindcss": "^3.4.19",
"yaml-eslint-parser": "^2.0.0"
},
"engines": {
Expand Down
66 changes: 66 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,78 @@
--card-bg: #ffffff;
--card-border: #e5e7eb;
--card-filter: none;
--dark-canvas: #000000;
--dark-surface-1: #0b0b0b;
--dark-surface-2: #171717;
--dark-surface-3: #262626;
--dark-border-1: #262626;
--dark-border-2: #333333;
}
.dark {
--card-bg: #1f2937;
--card-border: #374151;
}

/* True dark canvas for the default theme (exclude themed variants). */
html.dark:not(.theme-inverted):not(.theme-glass) {
--card-bg: var(--dark-surface-1);
--card-border: var(--dark-border-1);
background-color: var(--dark-canvas);
}
html.dark:not(.theme-inverted):not(.theme-glass) body,
html.dark:not(.theme-inverted):not(.theme-glass) main {
background-color: var(--dark-canvas);
}
html.dark:not(.theme-inverted):not(.theme-glass) #sidebar,
html.dark:not(.theme-inverted):not(.theme-glass) #mobileHeader {
background-color: var(--dark-canvas) !important;
border-color: var(--dark-border-1) !important;
box-shadow: none;
}
html.dark:not(.theme-inverted):not(.theme-glass) #mobileHeader {
border-bottom: 1px solid var(--dark-border-1);
}
html.dark:not(.theme-inverted):not(.theme-glass) .dark\:bg-gray-900 {
background-color: var(--dark-canvas);
}
html.dark:not(.theme-inverted):not(.theme-glass) .dark\:bg-gray-800 {
background-color: var(--dark-surface-1);
}
html.dark:not(.theme-inverted):not(.theme-glass) .dark\:bg-gray-700 {
background-color: var(--dark-surface-2);
}
html.dark:not(.theme-inverted):not(.theme-glass) .dark\:bg-gray-600 {
background-color: var(--dark-surface-3);
}
html.dark:not(.theme-inverted):not(.theme-glass) .dark\:border-gray-700 {
border-color: var(--dark-border-1);
}
html.dark:not(.theme-inverted):not(.theme-glass) .dark\:border-gray-600 {
border-color: var(--dark-border-2);
}
html.dark:not(.theme-inverted):not(.theme-glass) #sidebar .nav-btn:hover {
background-color: var(--dark-surface-2);
}
html.dark:not(.theme-inverted):not(.theme-glass) .guidance-card {
background-color: var(--dark-surface-1) !important;
border-color: var(--dark-border-1) !important;
}
html.dark:not(.theme-inverted):not(.theme-glass) .card.is-collapsible.collapsed {
background-color: var(--dark-surface-2) !important;
}
html.dark:not(.theme-inverted):not(.theme-glass) .stat-box {
background-color: var(--dark-surface-2) !important;
border-color: var(--dark-border-1) !important;
}
html.dark:not(.theme-inverted):not(.theme-glass) .modal-panel {
background: var(--dark-surface-1) !important;
border: 1px solid var(--dark-border-1);
}
html.dark:not(.theme-inverted):not(.theme-glass) .input-field {
background-color: var(--dark-surface-2) !important;
border: 1px solid var(--dark-border-1);
}

/* Theme: Inverted (based on pastel)
Light mode: dark canvas + light cards + light sidebar
Dark mode: light canvas + light cards + light sidebar */
Expand Down
Loading