Skip to content

Commit d18b57b

Browse files
puikinshclaude
andauthored
Release 0.7.1: AdminLTE core 4.10.2, Bootstrap 5.3.9, dependency refresh (#2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 907e087 commit d18b57b

17 files changed

Lines changed: 1308 additions & 1192 deletions

‎CHANGELOG.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,36 @@ All notable changes to **@adminlte/react** are documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.7.1] - 2026-11-17
9+
10+
### Changed
11+
12+
- **AdminLTE core upgraded to 4.10.2** (from 4.8.1), covering core [4.9.0](https://github.com/ColorlibHQ/AdminLTE/blob/master/CHANGELOG.md#490---2026-08-26) through [4.10.2](https://github.com/ColorlibHQ/AdminLTE/blob/master/CHANGELOG.md#4102---2026-11-16). The bundled stylesheet (`@adminlte/react/css`) now ships on **Bootstrap 5.3.9** and picks up:
13+
- **Print defaults** (core 4.9.0 / 4.9.1) — a printed page is a document again: the header, sidebar and footer no longer print, the layout drops its viewport-sized `min-height` / `max-width` in print, and a page that ends near a sheet boundary no longer prints a blank trailing sheet. `data-lte-print="plain"` still works (and is now matched per token, so `"plain app"` sets both). Verified by printing demo pages to PDF.
14+
- Every other core fix in the range that lives in CSS (contrast and dark-mode token fixes, mini-sidebar brand centring, Bootstrap 5.3.9's `.modal-xxl`, reduced-motion placeholders).
15+
- The demo's `public/css/adminlte.rtl.css` was refreshed from core 4.10.2.
16+
- The optional palette sheets (`adminlte-colors.css`, `adminlte-colors-v3.css`, `data-lte-primary`, `data-lte-contrast="aa"`) are unchanged in how you use them — see the README. Core's opt-in Select2 compat sheet (`adminlte-select2.css`) is irrelevant here (the port uses Tom Select).
17+
- **Bootstrap JS 5.3.9** in the README, the install docs and the demo (CDN).
18+
- **Pinned demo CDN libraries refreshed:** Bootstrap Icons 1.13.2, Source Sans 3 5.3.1, OverlayScrollbars 2.17.0, Tabulator 6.7.1, Tom Select 2.7.0, FullCalendar 7.1.5.
19+
- **Dependencies refreshed to latest:** React / React DOM 19.3.1, Next.js 16.4.6, Chart.js 4.6.1, Tabulator 6.7.1, Tom Select 2.7.0, vitest 5.1 (major), jsdom 31 (major), tsup 9 (major), ESLint 10.15, typescript-eslint 8.73, Playwright 1.65.1, `@axe-core/playwright` 4.14, `@types/*`. `pnpm audit` now reports a single *low* advisory — Quill 2.0.3's HTML-export XSS, for which no patched release exists (Quill is an optional peer; the library never calls its HTML export).
20+
- Peer dependency ranges are unchanged, so nothing consumers depend on narrowed.
21+
22+
### Added
23+
24+
- **`colorModeInitScript`** — an inline-script string that applies the persisted colour mode (`lte-theme`: `light` / `dark` / `auto`) to `<html data-bs-theme>` before first paint. Render it in `<head>` of your root layout (with `suppressHydrationWarning` on `<html>`) so dark-mode visitors no longer get a light flash on load. The demo does this.
25+
26+
### Fixed
27+
28+
- **`ColorModeProvider` applied and persisted the default mode before reading the saved one**, so a stored `dark` was briefly replaced by `auto` (and written back to `localStorage`) on every mount. It now waits until the saved mode has been loaded.
29+
30+
### Maintenance
31+
32+
- Verified: library build, type-check, lint (0 errors, 13 pre-existing warnings) and 26 unit tests; the CI RSC-boundary check (35 client modules in `src/` and `dist/`); demo type-check, production build and the `EXPORT=true` subpath export; **192 Playwright tests** against the production server (every route smoke-tested, 5 axe audits, every route again as a dark-mode visitor and at 390 px, chart canvas); a full light/dark × 1440/390 crawl of all 62 routes with zero console errors, failed same-origin requests or horizontal overflow; demo pages printed to PDF (no header/sidebar/footer, the invoice fits one sheet).
33+
- Visual diff against the previous release at 1440 px: identical on the dashboards, forms and tables; the only change at 390 px is the topbar, which core 4.10.1 rebalanced to stop it overflowing.
34+
- **TypeScript stays on 6.0.3** — `typescript-eslint` 8.73 still peers `typescript@<6.1.0`.
35+
- **pnpm stays on 10.33.2** (`packageManager`) — the toolchain and CI are pinned to it; pnpm 12 was not adopted in this release.
36+
- Demo Playwright config reads `PORT` / `PW_COMMAND` from the environment and no longer reuses an already-running server (it could silently test another project's build). New `layout.spec.ts`: every route is loaded as a dark-mode visitor (hydration must be clean, `data-bs-theme="dark"` set) and at 390 px (no horizontal overflow), plus a chart-canvas check.
37+
838
## [0.7.0] - 2026-10-01
939

1040
### Changed — breaking
@@ -300,6 +330,7 @@ Next.js App Router and React Server Components.
300330
- Heavy third-party libraries are never bundled eagerly — they load via dynamic
301331
`import()` inside the components that use them.
302332

333+
[0.7.1]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.7.0...v0.7.1
303334
[0.7.0]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.6.1...v0.7.0
304335
[0.6.1]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.6.0...v0.6.1
305336
[0.6.0]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.5.0...v0.6.0

‎README.md‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ for the full matrix.
107107

108108
```tsx
109109
// app/layout.tsx
110+
import { colorModeInitScript } from '@adminlte/react'
110111
import '@adminlte/react/css'
111112
import 'bootstrap-icons/font/bootstrap-icons.css'
112113
import './globals.css'
@@ -117,17 +118,19 @@ export const metadata = {
117118

118119
export default function RootLayout({ children }) {
119120
return (
120-
<html lang="en">
121+
<html lang="en" suppressHydrationWarning>
121122
<head>
123+
{/* Optional: apply the saved dark/light mode before first paint (no flash) */}
124+
<script dangerouslySetInnerHTML={{ __html: colorModeInitScript }} />
122125
<link
123126
rel="stylesheet"
124-
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.css"
127+
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.2/font/bootstrap-icons.css"
125128
/>
126129
</head>
127130
<body>
128131
{children}
129132
{/* Bootstrap JS required for dropdowns, modals, etc */}
130-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>
133+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.9/dist/js/bootstrap.bundle.min.js"></script>
131134
</body>
132135
</html>
133136
)

‎demo/app/(dashboard)/docs/installation/page.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ export default function RootLayout({ children }: { children: React.ReactNode })
6969
<head>
7070
<link
7171
rel="stylesheet"
72-
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css"
72+
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.2/font/bootstrap-icons.min.css"
7373
/>
7474
</head>
7575
<body>
7676
{children}
7777
{/* Required for dropdowns, modals, tooltips, toasts */}
78-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" />
78+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.9/dist/js/bootstrap.bundle.min.js" />
7979
</body>
8080
</html>
8181
)

‎demo/app/(dashboard)/docs/plugins/page.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default function PluginsPage() {
109109
filename="app/layout.tsx"
110110
code={`<head>
111111
{/* Tabulator (datatable) — Bootstrap 5 theme */}
112-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tabulator-tables@6.5.2/dist/css/tabulator_bootstrap5.min.css" />
112+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tabulator-tables@6.7.1/dist/css/tabulator_bootstrap5.min.css" />
113113
{/* jsVectorMap (world map) */}
114114
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jsvectormap@1.7.0/dist/jsvectormap.min.css" />
115115
</head>`}
@@ -130,9 +130,9 @@ import 'flatpickr/dist/flatpickr.min.css'`}
130130
</p>
131131
<CodeBlock
132132
filename="app/layout.tsx"
133-
code={`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.16.0/styles/overlayscrollbars.min.css" />
133+
code={`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.17.0/styles/overlayscrollbars.min.css" />
134134
{/* ...at end of <body>: */}
135-
<script src="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.16.0/browser/overlayscrollbars.browser.es6.min.js" />`}
135+
<script src="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.17.0/browser/overlayscrollbars.browser.es6.min.js" />`}
136136
/>
137137
</DocsPage>
138138
)

‎demo/app/layout.tsx‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import type { Metadata } from 'next'
22
import Script from 'next/script'
3+
import { colorModeInitScript } from '@adminlte/react'
34
import '@adminlte/react/css'
45
import './globals.css'
56
import { SubpathLinks } from '@/components/subpath-links'
67
import { InertLinks } from '@/components/inert-links'
8+
import { withBase } from '@/lib/base'
79

810
export const metadata: Metadata = {
911
metadataBase: new URL('https://adminlte.io/themes/next-react'),
@@ -14,6 +16,7 @@ export const metadata: Metadata = {
1416
description:
1517
'AdminLTE 4 + Bootstrap 5.3 admin dashboard components for React & Next.js (App Router / RSC) — 60+ demo pages, dark mode, and a ⌘K command palette.',
1618
applicationName: 'AdminLTE React',
19+
icons: { icon: withBase('/assets/img/AdminLTELogo.png') },
1720
authors: [{ name: 'Colorlib', url: 'https://colorlib.com' }],
1821
openGraph: {
1922
title: 'AdminLTE React — Bootstrap 5 admin dashboard',
@@ -36,26 +39,28 @@ export default function RootLayout({
3639
children: React.ReactNode
3740
}) {
3841
return (
39-
<html lang="en">
42+
<html lang="en" suppressHydrationWarning>
4043
<head>
44+
{/* Apply the saved colour mode before first paint (no light flash / no hydration flicker in dark mode) */}
45+
<script dangerouslySetInnerHTML={{ __html: colorModeInitScript }} />
4146
{/* Open the CDN connection early — every stylesheet below comes from it.
4247
The crossOrigin variant covers the CORS-mode font file requests. */}
4348
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
4449
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossOrigin="anonymous" />
4550
{/* Source Sans 3 (AdminLTE's default typeface) */}
4651
<link
4752
rel="stylesheet"
48-
href="https://cdn.jsdelivr.net/npm/@fontsource/source-sans-3@5.3.0/index.css"
53+
href="https://cdn.jsdelivr.net/npm/@fontsource/source-sans-3@5.3.1/index.css"
4954
/>
5055
{/* Bootstrap Icons */}
5156
<link
5257
rel="stylesheet"
53-
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css"
58+
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.2/font/bootstrap-icons.min.css"
5459
/>
5560
{/* OverlayScrollbars CSS */}
5661
<link
5762
rel="stylesheet"
58-
href="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.16.0/styles/overlayscrollbars.min.css"
63+
href="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.17.0/styles/overlayscrollbars.min.css"
5964
/>
6065
{/* jsVectorMap CSS */}
6166
<link
@@ -65,7 +70,7 @@ export default function RootLayout({
6570
{/* Tabulator CSS (Bootstrap 5 theme) */}
6671
<link
6772
rel="stylesheet"
68-
href="https://cdn.jsdelivr.net/npm/tabulator-tables@6.5.2/dist/css/tabulator_bootstrap5.min.css"
73+
href="https://cdn.jsdelivr.net/npm/tabulator-tables@6.7.1/dist/css/tabulator_bootstrap5.min.css"
6974
/>
7075
{/* Quill (rich-text editor) — Snow theme */}
7176
<link
@@ -80,7 +85,7 @@ export default function RootLayout({
8085
{/* Tom Select (advanced select) — Bootstrap 5 theme */}
8186
<link
8287
rel="stylesheet"
83-
href="https://cdn.jsdelivr.net/npm/tom-select@2.6.2/dist/css/tom-select.bootstrap5.min.css"
88+
href="https://cdn.jsdelivr.net/npm/tom-select@2.7.0/dist/css/tom-select.bootstrap5.min.css"
8489
/>
8590
</head>
8691
<body>
@@ -89,12 +94,12 @@ export default function RootLayout({
8994
<InertLinks />
9095
{/* Bootstrap JS (the bundle build already includes Popper) */}
9196
<Script
92-
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
97+
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.9/dist/js/bootstrap.bundle.min.js"
9398
strategy="afterInteractive"
9499
/>
95100
{/* OverlayScrollbars JS */}
96101
<Script
97-
src="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.16.0/browser/overlayscrollbars.browser.es6.min.js"
102+
src="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.17.0/browser/overlayscrollbars.browser.es6.min.js"
98103
strategy="afterInteractive"
99104
/>
100105
</body>

‎demo/components/calendar-view.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useEffect, useRef } from 'react'
55
// FullCalendar v7 no longer bundles CSS in the JS, and the theme is a separate
66
// plugin — the "classic" theme reproduces the pre-v7 look. Core must load
77
// before the theme script (the theme registers itself on the global).
8-
const FC_BASE = 'https://cdn.jsdelivr.net/npm/fullcalendar@7.0.2'
8+
const FC_BASE = 'https://cdn.jsdelivr.net/npm/fullcalendar@7.1.5'
99
const FC_SCRIPTS = [`${FC_BASE}/all/global.min.js`, `${FC_BASE}/themes/classic/global.min.js`]
1010
const FC_STYLES = [
1111
`${FC_BASE}/skeleton.min.css`,

‎demo/components/kanban-board.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export function KanbanBoard() {
263263
<div className="kanban-cards" data-lane-id="done">
264264
<article className="kanban-card">
265265
<span className="badge text-bg-primary mb-2"> feature </span>
266-
<p className="fw-semibold mb-1 small">Upgrade to Bootstrap 5.3.8</p>
266+
<p className="fw-semibold mb-1 small">Upgrade to Bootstrap 5.3.9</p>
267267

268268
<div className="d-flex justify-content-between align-items-center">
269269
<div className="kanban-assignees">

‎demo/package.json‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
},
1717
"dependencies": {
1818
"@adminlte/react": "workspace:*",
19-
"chart.js": "^4.5.1",
19+
"chart.js": "^4.6.1",
2020
"flatpickr": "^4.6.13",
2121
"jsvectormap": "^1.7.0",
22-
"next": "^16.3.1",
22+
"next": "^16.4.6",
2323
"quill": "^2.0.3",
24-
"react": "^19.2.8",
25-
"react-dom": "^19.2.8",
24+
"react": "^19.3.1",
25+
"react-dom": "^19.3.1",
2626
"sortablejs": "^1.15.7",
27-
"tabulator-tables": "^6.5.2",
28-
"tom-select": "^2.6.2"
27+
"tabulator-tables": "^6.7.1",
28+
"tom-select": "^2.7.0"
2929
},
3030
"devDependencies": {
31-
"@axe-core/playwright": "^4.13.0",
32-
"@playwright/test": "^1.62.1",
33-
"@types/node": "^26.2.0",
34-
"@types/react": "^19.2.18",
35-
"@types/react-dom": "^19.2.4",
31+
"@axe-core/playwright": "^4.14.0",
32+
"@playwright/test": "^1.65.1",
33+
"@types/node": "^26.6.6",
34+
"@types/react": "^19.3.0",
35+
"@types/react-dom": "^19.3.0",
3636
"@types/sortablejs": "^1.15.9",
3737
"typescript": "^6.0.3"
3838
}

‎demo/playwright.config.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig } from '@playwright/test'
22

3-
const PORT = 3210
3+
// Override with PORT=… when other servers are running (never reuse a foreign server)
4+
const PORT = Number(process.env.PORT) || 3210
45
const baseURL = `http://localhost:${PORT}`
56

67
/**
@@ -21,9 +22,9 @@ export default defineConfig({
2122
headless: true,
2223
},
2324
webServer: {
24-
command: `pnpm exec next dev -p ${PORT}`,
25+
command: process.env.PW_COMMAND || `pnpm exec next dev -p ${PORT}`,
2526
url: baseURL,
26-
reuseExistingServer: true,
27+
reuseExistingServer: false,
2728
timeout: 120_000,
2829
},
2930
})

0 commit comments

Comments
 (0)