@byline/host-tanstack-start 4.14.0 → 4.14.1
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/dist/admin-shell/chrome/admin-layout_module.css +1 -1
- package/dist/admin-shell/chrome/admin-menu-drawer_module.css +6 -5
- package/dist/admin-shell/chrome/dashboard.js +2 -2
- package/package.json +8 -8
- package/src/admin-shell/chrome/admin-layout.module.css +6 -1
- package/src/admin-shell/chrome/admin-menu-drawer.module.css +12 -5
- package/src/admin-shell/chrome/dashboard.tsx +11 -4
|
@@ -30,8 +30,10 @@
|
|
|
30
30
|
|
|
31
31
|
:is(.asideDesktop-uFlpwO, .byline-admin-menu-drawer-aside-desktop) {
|
|
32
32
|
flex-shrink: 0;
|
|
33
|
-
align-self:
|
|
34
|
-
|
|
33
|
+
align-self: flex-start;
|
|
34
|
+
height: calc(100vh - 45px);
|
|
35
|
+
position: sticky;
|
|
36
|
+
top: 45px;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
:is(.asideDesktopOpen-kPyJOg, .byline-admin-menu-drawer-aside-desktop-open) {
|
|
@@ -43,10 +45,9 @@
|
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
:is(.nav-dDjqu7, .byline-admin-menu-drawer) {
|
|
46
|
-
|
|
48
|
+
flex: auto;
|
|
49
|
+
min-height: 0;
|
|
47
50
|
margin: 0;
|
|
48
|
-
position: sticky;
|
|
49
|
-
top: 0;
|
|
50
51
|
overflow-y: auto;
|
|
51
52
|
}
|
|
52
53
|
|
|
@@ -53,7 +53,7 @@ function StatTile({ ws, count, collectionPath }) {
|
|
|
53
53
|
}
|
|
54
54
|
function CollectionCard({ collection, stats }) {
|
|
55
55
|
const { t } = useTranslation('byline-admin');
|
|
56
|
-
const total = stats
|
|
56
|
+
const total = void 0 !== stats ? stats.reduce((sum, s)=>sum + s.count, 0) : void 0;
|
|
57
57
|
const workflowStatuses = getWorkflowStatuses(collection);
|
|
58
58
|
return /*#__PURE__*/ jsxs(Card, {
|
|
59
59
|
children: [
|
|
@@ -74,7 +74,7 @@ function CollectionCard({ collection, stats }) {
|
|
|
74
74
|
className: clsx('byline-dashboard-title-text', dashboard_module.titleText),
|
|
75
75
|
children: collection.labels.plural
|
|
76
76
|
}),
|
|
77
|
-
/*#__PURE__*/ jsx("span", {
|
|
77
|
+
void 0 !== total && /*#__PURE__*/ jsx("span", {
|
|
78
78
|
className: clsx('muted byline-dashboard-title-meta', dashboard_module.titleMeta),
|
|
79
79
|
children: t('dashboard.totalCount', {
|
|
80
80
|
count: total
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "4.14.
|
|
6
|
+
"version": "4.14.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.9.0"
|
|
9
9
|
},
|
|
@@ -117,13 +117,13 @@
|
|
|
117
117
|
"react-json-view-lite": "^2.5.0",
|
|
118
118
|
"react-swipeable": "^7.0.2",
|
|
119
119
|
"zod": "^4.4.3",
|
|
120
|
-
"@byline/
|
|
121
|
-
"@byline/
|
|
122
|
-
"@byline/ai": "4.14.
|
|
123
|
-
"@byline/
|
|
124
|
-
"@byline/
|
|
125
|
-
"@byline/
|
|
126
|
-
"@byline/ui": "4.14.
|
|
120
|
+
"@byline/auth": "4.14.1",
|
|
121
|
+
"@byline/admin": "4.14.1",
|
|
122
|
+
"@byline/ai": "4.14.1",
|
|
123
|
+
"@byline/i18n": "4.14.1",
|
|
124
|
+
"@byline/client": "4.14.1",
|
|
125
|
+
"@byline/core": "4.14.1",
|
|
126
|
+
"@byline/ui": "4.14.1"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
129
|
"@tanstack/react-router": "^1.167.0",
|
|
@@ -6,10 +6,15 @@
|
|
|
6
6
|
* Override handle: .byline-admin-layout-main
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
/* `min-height`, not `height`: the document is the scroll container, so with a
|
|
10
|
+
fixed 100vh height the flex row ends at the fold and the sticky menu drawer
|
|
11
|
+
inside it has nothing left to stick to — it scrolls away as soon as the
|
|
12
|
+
route content runs past one viewport. Growing with the content gives the
|
|
13
|
+
drawer a containing block tall enough to stay pinned all the way down. */
|
|
9
14
|
.main,
|
|
10
15
|
:global(.byline-admin-layout-main) {
|
|
11
16
|
display: flex;
|
|
12
|
-
height: 100vh;
|
|
17
|
+
min-height: 100vh;
|
|
13
18
|
width: 100%;
|
|
14
19
|
max-width: 100%;
|
|
15
20
|
padding-top: 45px;
|
|
@@ -47,10 +47,16 @@
|
|
|
47
47
|
overflow: hidden;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/* Pinned under the fixed app bar (45px) for the whole scroll of the page.
|
|
51
|
+
`align-self: flex-start` keeps the sticky box from being stretched to the
|
|
52
|
+
full height of the flex row — a stretched sticky item has no room to move
|
|
53
|
+
and never pins. */
|
|
50
54
|
.asideDesktop,
|
|
51
55
|
:global(.byline-admin-menu-drawer-aside-desktop) {
|
|
52
|
-
position:
|
|
53
|
-
|
|
56
|
+
position: sticky;
|
|
57
|
+
top: 45px;
|
|
58
|
+
align-self: flex-start;
|
|
59
|
+
height: calc(100vh - 45px);
|
|
54
60
|
flex-shrink: 0;
|
|
55
61
|
}
|
|
56
62
|
|
|
@@ -64,12 +70,13 @@
|
|
|
64
70
|
width: 60px;
|
|
65
71
|
}
|
|
66
72
|
|
|
73
|
+
/* The aside owns the viewport-height box; the nav just fills it and scrolls
|
|
74
|
+
internally when the menu is longer than the drawer. */
|
|
67
75
|
.nav,
|
|
68
76
|
:global(.byline-admin-menu-drawer) {
|
|
69
|
-
|
|
70
|
-
|
|
77
|
+
flex: 1 1 auto;
|
|
78
|
+
min-height: 0;
|
|
71
79
|
margin: 0;
|
|
72
|
-
max-height: calc(100vh - 60px);
|
|
73
80
|
overflow-y: auto;
|
|
74
81
|
}
|
|
75
82
|
|
|
@@ -72,7 +72,12 @@ function CollectionCard({
|
|
|
72
72
|
stats: CollectionStatusCount[] | undefined
|
|
73
73
|
}) {
|
|
74
74
|
const { t } = useTranslation('byline-admin')
|
|
75
|
-
|
|
75
|
+
// `stats` is undefined when the collection opted out of counts (no
|
|
76
|
+
// `showStats: true` on the definition) — the dashboard loader only fetches
|
|
77
|
+
// them for collections that opted in. Falling back to a total of zero there
|
|
78
|
+
// would read as "this collection is empty", so the count is omitted along
|
|
79
|
+
// with the status tiles.
|
|
80
|
+
const total = stats !== undefined ? stats.reduce((sum, s) => sum + s.count, 0) : undefined
|
|
76
81
|
const workflowStatuses = getWorkflowStatuses(collection)
|
|
77
82
|
|
|
78
83
|
return (
|
|
@@ -88,9 +93,11 @@ function CollectionCard({
|
|
|
88
93
|
<span className={cx('byline-dashboard-title-text', styles.titleText)}>
|
|
89
94
|
{collection.labels.plural}
|
|
90
95
|
</span>
|
|
91
|
-
|
|
92
|
-
{
|
|
93
|
-
|
|
96
|
+
{total !== undefined && (
|
|
97
|
+
<span className={cx('muted byline-dashboard-title-meta', styles.titleMeta)}>
|
|
98
|
+
{t('dashboard.totalCount', { count: total })}
|
|
99
|
+
</span>
|
|
100
|
+
)}
|
|
94
101
|
</Card.Title>
|
|
95
102
|
<Card.Description className="muted">
|
|
96
103
|
{t('dashboard.collectionDescription', { label: collection.labels.plural })}
|