create-smoodly-app 0.0.20 → 0.0.22
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/README.md +1 -1
- package/templates/lorem/app/(smoodly)/admin/layout.tsx +15 -1
- package/templates/lorem/package.json +1 -1
- package/templates/lorem-intl/README.md +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
|
+
}
|
|
@@ -27,7 +27,7 @@ The Lorem Co. site the installer seeded is a tour of the features:
|
|
|
27
27
|
|
|
28
28
|
- **Home** — a locked hero (fields only; nobody adds, moves or removes it), then a freeform body: image and text (richtext), the global **quote** placed from the picker's Global group, points (a list with a minimum and a maximum, an object per item), favourite articles (an editor-picked list of refs).
|
|
29
29
|
- **Articles** — a fixed page at the collection's own URL segment, so it is the collection's index: the hero is the editor's, the grid is code fetching published articles.
|
|
30
|
-
- **Company / About** — a
|
|
30
|
+
- **Company / About** — a path and a page under it (the breadcrumb), the same body sections, plus people.
|
|
31
31
|
- **An article** — a collection entry with a richtext body, tags (a localized list), a date and an author ref; versioned, so every save is a snapshot.
|
|
32
32
|
- **Global content** — the header every page renders through `components/PageFrame.tsx`, the footer the layout renders, the contact details the footer reads, the quote pages place.
|
|
33
33
|
|
|
@@ -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
|
+
}
|
|
@@ -34,7 +34,7 @@ The Lorem Co. site the installer seeded is a tour of the features:
|
|
|
34
34
|
|
|
35
35
|
- **Home** — a locked hero (fields only; nobody adds, moves or removes it), then a freeform body: image and text (richtext), the global **quote** placed from the picker's Global group, points (a list with a minimum and a maximum, an object per item), favourite articles (an editor-picked list of refs).
|
|
36
36
|
- **Articles** — a fixed page at the collection's own URL segment, so it is the collection's index: the hero is the editor's, the grid is code fetching published articles.
|
|
37
|
-
- **Company / About** — a
|
|
37
|
+
- **Company / About** — a path and a page under it (the breadcrumb), the same body sections, plus people.
|
|
38
38
|
- **An article** — a collection entry with a richtext body, tags (a localized list), a date and an author ref; versioned, so every save is a snapshot.
|
|
39
39
|
- **Global content** — the header every page renders through `components/PageFrame.tsx`, the footer the layout renders, the contact details the footer reads, the quote pages place.
|
|
40
40
|
|