create-smoodly-app 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/package.json +1 -1
- package/templates/blank/app/(smoodly)/admin/layout.tsx +15 -1
- package/templates/blank/package.json +1 -1
- package/templates/blank-intl/package.json +1 -1
- package/templates/lorem/app/(smoodly)/admin/layout.tsx +15 -1
- package/templates/lorem/package.json +1 -1
- package/templates/lorem-intl/package.json +1 -1
package/README.md
CHANGED
|
@@ -81,6 +81,22 @@ Posts and the Site item, a post with a Button element published and
|
|
|
81
81
|
served at `/posts/<slug>` in both locales; blank single-language
|
|
82
82
|
scaffolded in hosted mode against the repo stack and `next build` only.
|
|
83
83
|
|
|
84
|
+
## Follow-ups (logged 2026-09-25, docs walk)
|
|
85
|
+
|
|
86
|
+
- **Single-language `/admin` had no root `<html>` (0.0.15–0.0.20).** The
|
|
87
|
+
variant's `app/(smoodly)/admin/layout.tsx` re-exported `AdminLayout`,
|
|
88
|
+
which renders a `<div>`; that only worked while the site had a
|
|
89
|
+
top-level `app/layout.tsx`, and 0.0.15 moved the site into `app/(site)`.
|
|
90
|
+
`next dev` showed two errors on the first visit to `/admin`: "Missing
|
|
91
|
+
<html> tags in the root layout" and, from the client-rendered tree, the
|
|
92
|
+
theme boot's "Encountered a script tag while rendering React component".
|
|
93
|
+
Found walking the Getting started guide on a fresh `lorem` install of
|
|
94
|
+
0.0.20. Fixed 2026-09-25: the variant layout wraps `AdminLayout` in
|
|
95
|
+
`<html><body>` like the example's; both errors gone in the walk. CI's
|
|
96
|
+
live job only checks `/admin` for a 200, which this passed; an assertion
|
|
97
|
+
on the dev overlay (or on `<html>` in the served document) would have
|
|
98
|
+
caught it.
|
|
99
|
+
|
|
84
100
|
## Follow-ups (logged 2026-09-11)
|
|
85
101
|
|
|
86
102
|
- **Blank single-language is typechecked, never built by CI.** The live
|
package/package.json
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { AdminLayout } from "@/smoodly/admin";
|
|
3
|
+
|
|
4
|
+
// The admin's own root layout: the site's is app/(site)/layout.tsx, a
|
|
5
|
+
// sibling route group, so /admin has no parent layout and Next needs its
|
|
6
|
+
// own <html> here.
|
|
7
|
+
export default function AdminRootLayout({ children }: { children: ReactNode }) {
|
|
8
|
+
return (
|
|
9
|
+
<html lang="en">
|
|
10
|
+
<body>
|
|
11
|
+
<AdminLayout>{children}</AdminLayout>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { AdminLayout } from "@/smoodly/admin";
|
|
3
|
+
|
|
4
|
+
// The admin's own root layout: the site's is app/(site)/layout.tsx, a
|
|
5
|
+
// sibling route group, so /admin has no parent layout and Next needs its
|
|
6
|
+
// own <html> here.
|
|
7
|
+
export default function AdminRootLayout({ children }: { children: ReactNode }) {
|
|
8
|
+
return (
|
|
9
|
+
<html lang="en">
|
|
10
|
+
<body>
|
|
11
|
+
<AdminLayout>{children}</AdminLayout>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
14
|
+
);
|
|
15
|
+
}
|