@stacksjs/defaults 0.75.717 → 0.75.718
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/ai/skills/stacks-dashboard/SKILL.md +2 -2
- package/ai/skills/stacks-desktop/SKILL.md +2 -0
- package/ai/skills/stacks-native/CATALOG.md +2 -2
- package/ide/vscode/package.json +1 -1
- package/package.json +5 -5
- package/resources/components/Dashboard/DashboardSectionSidebar.stx +3 -12
- package/resources/components/Dashboard/MobileSidebar.stx +1 -0
- package/resources/components/Dashboard/Projects/DashboardGitHubIssuesLink.stx +8 -0
- package/resources/functions/dashboard/sidebar.ts +1 -7
- package/views/dashboard/layouts/default.stx +13 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: stacks-dashboard
|
|
3
|
-
description: Use when building or customizing the Stacks admin dashboard, including dashboard pages, model management views, analytics widgets, commerce dashboards, content management, settings panels, deployment monitoring, job/queue management, or the
|
|
3
|
+
description: Use when building or customizing the Stacks admin dashboard, including dashboard pages, model management views, analytics widgets, commerce dashboards, content management, settings panels, deployment monitoring, job/queue management, or the 457 built-in dashboard components. Covers the dashboard system at storage/framework/defaults/.
|
|
4
4
|
license: MIT
|
|
5
5
|
compatibility: Bun >= 1.3.0, TypeScript
|
|
6
6
|
allowed-tools: Read Edit Write Bash Grep Glob
|
|
@@ -8,7 +8,7 @@ allowed-tools: Read Edit Write Bash Grep Glob
|
|
|
8
8
|
|
|
9
9
|
# Stacks Dashboard
|
|
10
10
|
|
|
11
|
-
The Stacks admin dashboard provides a full-featured admin panel with 100+ route views,
|
|
11
|
+
The Stacks admin dashboard provides a full-featured admin panel with 100+ route views, 457 components, and a multi-section layout.
|
|
12
12
|
|
|
13
13
|
## Key Paths
|
|
14
14
|
- Dashboard components: `storage/framework/defaults/resources/components/Dashboard/`
|
|
@@ -600,6 +600,8 @@ agent module in its `onRequest`). `buddy build:desktop` builds them to static pa
|
|
|
600
600
|
and compiles every file into the agent, so a built app reads no loose view files. Component directories for the
|
|
601
601
|
build come from the project's `stx.config.ts`; `agent.components` applies to the live server. A project that needs
|
|
602
602
|
its own view build puts it in `app/Desktop/build-views.ts` and writes to `DESKTOP_VIEWS_OUT`.
|
|
603
|
+
Compiled views can share content-hashed STX stylesheets across navigations. The loopback agent serves
|
|
604
|
+
`/_stx/style.<hash>.css` with an immutable cache policy and negotiates gzip for those stylesheets.
|
|
603
605
|
|
|
604
606
|
**Files the agent needs at runtime** are imported the Bun way, so they are compiled in on every platform:
|
|
605
607
|
`import data from './data.json' with { type: 'file' }`.
|
|
@@ -11,7 +11,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
11
11
|
| Package | Task guidance | Source entry | Retained tests |
|
|
12
12
|
|---|---|---|---|
|
|
13
13
|
| `@stacksjs/action-runner` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/action-runner/src/index.ts) | 1 |
|
|
14
|
-
| `@stacksjs/actions` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/index.ts) |
|
|
14
|
+
| `@stacksjs/actions` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/index.ts) | 136 |
|
|
15
15
|
| `@stacksjs/ai` | [`stacks-ai`](../stacks-ai/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/ai/src/index.ts) | 28 |
|
|
16
16
|
| `@stacksjs/alias` | [`stacks-alias`](../stacks-alias/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/alias/src/index.ts) | 3 |
|
|
17
17
|
| `@stacksjs/analytics` | [`stacks-analytics`](../stacks-analytics/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/analytics/src/index.ts) | 7 |
|
|
@@ -123,7 +123,7 @@ Declared runtime exports: `BlogAdminError`, `DEFAULT_IOS_DEPENDENCIES`, `DEFAULT
|
|
|
123
123
|
|
|
124
124
|
Local source modules: [src/action.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/action.ts), [src/add.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/add.ts), [src/blog-admin.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/blog-admin.ts), [src/build/ios-toolchain.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/build/ios-toolchain.ts), [src/build/macos-native.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/build/macos-native.ts), [src/commit.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/commit.ts), [src/dev/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/dev/index.ts), [src/discover-packages.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/discover-packages.ts), [src/generate/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/generate/index.ts), [src/github-release.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/github-release.ts), [src/helpers/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/helpers/index.ts), [src/library/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/library/index.ts), [src/lint/lint.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/lint/lint.ts), [src/lint/stx-gate.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/lint/stx-gate.ts), [src/make-command.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-command.ts), [src/make-job.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-job.ts), [src/make-policy.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-policy.ts), [src/make-resource.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-resource.ts), [src/make.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make.ts), [src/publication-preflight.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/publication-preflight.ts), [src/release-evidence.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/release-evidence.ts), [src/reviewos-evidence.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/reviewos-evidence.ts), [src/reviewos-workflows.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/reviewos-workflows.ts), [src/scaffold-crud.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/scaffold-crud.ts), [src/setup/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/setup/index.ts), [src/stacks.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/stacks.ts), [src/stx-source.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/stx-source.ts), [src/upgrade/package-project.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/upgrade/package-project.ts), [src/upgrade/route-actions.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/upgrade/route-actions.ts).
|
|
125
125
|
|
|
126
|
-
Evidence directory: [
|
|
126
|
+
Evidence directory: [136 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
127
127
|
|
|
128
128
|
### @stacksjs/ai
|
|
129
129
|
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.718",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.718",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"@iconify-json/f7": "^1.2.2",
|
|
47
47
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
48
48
|
"@stacksjs/desktop": "^0.2.960",
|
|
49
|
-
"@stacksjs/mobile": "0.75.
|
|
49
|
+
"@stacksjs/mobile": "0.75.718",
|
|
50
50
|
"@stacksjs/sanitizer": "^0.2.960",
|
|
51
51
|
"@stacksjs/stx": "^0.2.960",
|
|
52
|
-
"@stacksjs/strings": "0.75.
|
|
52
|
+
"@stacksjs/strings": "0.75.718",
|
|
53
53
|
"@xterm/addon-fit": "^0.11.0",
|
|
54
54
|
"@xterm/xterm": "^6.0.0",
|
|
55
55
|
"ts-qr-codes": "^0.1.8",
|
|
56
56
|
"ts-syntax-highlighter": "^0.2.21",
|
|
57
|
-
"@stacksjs/support": "0.75.
|
|
58
|
-
"@stacksjs/browser": "0.75.
|
|
57
|
+
"@stacksjs/support": "0.75.718",
|
|
58
|
+
"@stacksjs/browser": "0.75.718"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
<script server>
|
|
2
2
|
import type { DashboardNavigationHub } from '@stacksjs/defaults/resources/functions/dashboard/section-navigation'
|
|
3
|
-
import type { WebSidebarItem } from '@stacksjs/defaults/resources/functions/dashboard/sidebar'
|
|
4
3
|
|
|
5
|
-
const { sectionHubs = []
|
|
6
|
-
|
|
7
|
-
defineClientPayload({ sectionHubs, primaryLinks })
|
|
4
|
+
const { sectionHubs = [] } = defineProps<{ sectionHubs: DashboardNavigationHub[] }>()
|
|
5
|
+
defineClientPayload({ sectionHubs })
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<script client>
|
|
@@ -13,7 +11,6 @@ import { useAppearance } from '@stacksjs/defaults/views/dashboard/composables/us
|
|
|
13
11
|
import { authStore } from '@stacksjs/defaults/views/dashboard/stores/auth'
|
|
14
12
|
|
|
15
13
|
const hubs = {{ sectionHubs }}
|
|
16
|
-
const links = {{ primaryLinks }}
|
|
17
14
|
const rail = useRef<HTMLElement>('dashboardSectionSidebar')
|
|
18
15
|
const route = useRoute()
|
|
19
16
|
const appearance = useAppearance()
|
|
@@ -31,7 +28,7 @@ function syncVisibility(): void {
|
|
|
31
28
|
function syncSelection(path = route.path): void {
|
|
32
29
|
const current = dashboardNavigationPath(path)
|
|
33
30
|
const settings = current === '/settings' || current.startsWith('/settings/')
|
|
34
|
-
const active = settings ? 'settings' :
|
|
31
|
+
const active = settings ? 'settings' : activeDashboardSection(hubs, current)
|
|
35
32
|
for (const link of rail.current?.querySelectorAll<HTMLElement>('[data-dashboard-section-entry]') ?? []) {
|
|
36
33
|
if (link.dataset.sectionId === active)
|
|
37
34
|
link.setAttribute('aria-current', link.getAttribute('href') === current ? 'page' : 'location')
|
|
@@ -65,12 +62,6 @@ onMount(() => {
|
|
|
65
62
|
<span class="dashboard-section-icon" aria-hidden="true"><span class="i-f7-house"></span></span>
|
|
66
63
|
<span>Home</span>
|
|
67
64
|
</a>
|
|
68
|
-
@foreach(primaryLinks as link)
|
|
69
|
-
<a href="{{ link.href }}" data-stx-link data-dashboard-section-entry data-section-id="{{ link.id }}">
|
|
70
|
-
<span class="dashboard-section-icon" aria-hidden="true"><span class="{{ link.icon }}"></span></span>
|
|
71
|
-
<span>{{ link.label }}</span>
|
|
72
|
-
</a>
|
|
73
|
-
@endforeach
|
|
74
65
|
@foreach(sectionHubs as hub)
|
|
75
66
|
<a href="{{ hub.href }}" data-stx-link data-dashboard-section-entry data-section-id="{{ hub.id }}">
|
|
76
67
|
<span class="dashboard-section-icon" aria-hidden="true"><span class="{{ hub.icon }}"></span></span>
|
|
@@ -82,6 +82,7 @@ useEventListener('stx:navigate', closeSidebar)
|
|
|
82
82
|
<span class="h-5 w-5 i-hugeicons-menu-01"></span>
|
|
83
83
|
</button>
|
|
84
84
|
<span class="font-semibold text-neutral-900 text-sm dark:text-white">Dashboard</span>
|
|
85
|
+
<slot name="actions" />
|
|
85
86
|
</div>
|
|
86
87
|
|
|
87
88
|
<template :if="isOpen()">
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<script client>
|
|
2
|
+
const route = useRoute()
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<a href="/github-issues" data-stx-no-router :aria-current="route.path === '/github-issues' ? 'page' : null" class="inline-flex gap-2 items-center px-2.5 h-8 aria-[current=page]:text-blue-700 font-medium text-neutral-700 text-sm dark:aria-[current=page]:text-blue-300 dark:text-neutral-200 hover:bg-neutral-100 dark:hover:bg-neutral-800 rounded-md">
|
|
6
|
+
<span aria-hidden="true" class="h-4 w-4 i-hugeicons-github"></span>
|
|
7
|
+
GitHub Issues
|
|
8
|
+
</a>
|
|
@@ -12,7 +12,6 @@ import { existsSync, readFileSync } from 'node:fs'
|
|
|
12
12
|
import { createRequire } from 'node:module'
|
|
13
13
|
import { resolve } from 'node:path'
|
|
14
14
|
import { dashboardPageAvailable, readDashboardPageAvailability, unavailableDashboardPages } from './page-availability'
|
|
15
|
-
import { dashboardProjectIdentity } from './project-switcher'
|
|
16
15
|
|
|
17
16
|
type ModelCategory = 'userland' | 'data' | 'commerce' | 'content' | 'marketing' | 'system'
|
|
18
17
|
|
|
@@ -774,12 +773,7 @@ export function buildWebSidebarSections(): WebSidebarSection[] {
|
|
|
774
773
|
{
|
|
775
774
|
id: 'top',
|
|
776
775
|
label: '',
|
|
777
|
-
items: [
|
|
778
|
-
{ id: 'home', label: 'Home', icon: NAV_ICON_CLASSES.home!, iconColor: 'blue', href: '/' },
|
|
779
|
-
...(dashboardProjectIdentity().enabled
|
|
780
|
-
? [{ id: 'github-issues', label: 'GitHub Issues', icon: 'i-hugeicons-github', iconColor: 'blue', href: '/github-issues' }]
|
|
781
|
-
: []),
|
|
782
|
-
],
|
|
776
|
+
items: [{ id: 'home', label: 'Home', icon: NAV_ICON_CLASSES.home!, iconColor: 'blue', href: '/' }],
|
|
783
777
|
},
|
|
784
778
|
...sections.map(([key, label, items]) => ({
|
|
785
779
|
id: key,
|
|
@@ -780,7 +780,7 @@ onDestroy(() => {
|
|
|
780
780
|
<div data-dashboard-sidebar-tree>
|
|
781
781
|
<SidebarSections :sections="sidebarSections" theme="macos" />
|
|
782
782
|
</div>
|
|
783
|
-
<DashboardSectionSidebar :sectionHubs="sectionHubs"
|
|
783
|
+
<DashboardSectionSidebar :sectionHubs="sectionHubs" />
|
|
784
784
|
<template #footer>
|
|
785
785
|
<div class="px-3 py-2 text-neutral-600 text-xs dark:text-neutral-300" data-sidebar-order-controls data-dashboard-muted :data-sidebar-order-editing="sidebarReordering() ? 'true' : 'false'">
|
|
786
786
|
<p role="status" aria-live="polite" :text="sidebarOrderStatus.message"></p>
|
|
@@ -798,11 +798,23 @@ onDestroy(() => {
|
|
|
798
798
|
(`showSidebarInDrawer`). A second Sidebar here rendered all its rows again
|
|
799
799
|
on every page and doubled each page's first render (stacksjs/stacks#3177). -->
|
|
800
800
|
<MobileSidebar @open="showSidebarInDrawer()" @close="returnSidebarFromDrawer()">
|
|
801
|
+
<template #actions>
|
|
802
|
+
@if(dashboardProject.enabled)
|
|
803
|
+
<nav aria-label="Workspace" class="ml-auto" data-dashboard-top-nav>
|
|
804
|
+
<DashboardGitHubIssuesLink />
|
|
805
|
+
</nav>
|
|
806
|
+
@endif
|
|
807
|
+
</template>
|
|
801
808
|
<div ref="dashboardMobileSidebarHost" data-dashboard-mobile-sidebar class="h-full"></div>
|
|
802
809
|
</MobileSidebar>
|
|
803
810
|
|
|
804
811
|
<main data-stx-content data-dashboard-content>
|
|
805
812
|
<div data-stx-scroll="dashboard">
|
|
813
|
+
@if(dashboardProject.enabled)
|
|
814
|
+
<nav aria-label="Workspace" class="hidden lg:flex sticky top-0 z-10 items-center justify-end px-6 h-12 bg-white/95 dark:bg-neutral-950/95 border-b border-neutral-200 dark:border-neutral-800" data-dashboard-top-nav>
|
|
815
|
+
<DashboardGitHubIssuesLink />
|
|
816
|
+
</nav>
|
|
817
|
+
@endif
|
|
806
818
|
@slot('content')
|
|
807
819
|
</div>
|
|
808
820
|
</main>
|