create-bw-app 0.24.5 → 0.24.7
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/package.json
CHANGED
package/src/constants.mjs
CHANGED
|
@@ -175,16 +175,16 @@ export const PLATFORM_STARTER_FILES = [
|
|
|
175
175
|
];
|
|
176
176
|
|
|
177
177
|
export const APP_DEPENDENCY_DEFAULTS = {
|
|
178
|
-
"@brightweblabs/app-shell": "^0.
|
|
179
|
-
"@brightweblabs/core-auth": "^0.10.
|
|
178
|
+
"@brightweblabs/app-shell": "^0.14.0",
|
|
179
|
+
"@brightweblabs/core-auth": "^0.10.4",
|
|
180
180
|
"@brightweblabs/infra": "^0.7.0",
|
|
181
|
-
"@brightweblabs/module-admin": "^0.8.
|
|
182
|
-
"@brightweblabs/module-crm": "^0.15.
|
|
183
|
-
"@brightweblabs/module-marketing": "^0.4.
|
|
184
|
-
"@brightweblabs/module-orgs": "^0.4.
|
|
185
|
-
"@brightweblabs/module-projects": "^0.
|
|
181
|
+
"@brightweblabs/module-admin": "^0.8.13",
|
|
182
|
+
"@brightweblabs/module-crm": "^0.15.10",
|
|
183
|
+
"@brightweblabs/module-marketing": "^0.4.8",
|
|
184
|
+
"@brightweblabs/module-orgs": "^0.4.8",
|
|
185
|
+
"@brightweblabs/module-projects": "^0.16.1",
|
|
186
186
|
"@brightweblabs/theme": "^0.7.4",
|
|
187
|
-
"@brightweblabs/ui": "^1.4.
|
|
187
|
+
"@brightweblabs/ui": "^1.4.8",
|
|
188
188
|
"geist": "1.7.2",
|
|
189
189
|
"lucide-react": "^1.8.0",
|
|
190
190
|
"next": "^16.0.0",
|
|
@@ -11,7 +11,13 @@ async function getJson(path: string, signal?: AbortSignal) {
|
|
|
11
11
|
const dashboardClient: DashboardDataClient = {
|
|
12
12
|
getProjects: (options) => getJson("/api/dashboard/projects", options?.signal),
|
|
13
13
|
getCrm: (options) => getJson("/api/dashboard/crm", options?.signal),
|
|
14
|
-
getTasks: (options) =>
|
|
14
|
+
getTasks: (options) => {
|
|
15
|
+
const params = new URLSearchParams();
|
|
16
|
+
if (options?.page) params.set("page", String(options.page));
|
|
17
|
+
if (options?.pageSize) params.set("pageSize", String(options.pageSize));
|
|
18
|
+
const query = params.size ? `?${params.toString()}` : "";
|
|
19
|
+
return getJson(`/api/dashboard/tasks${query}`, options?.signal);
|
|
20
|
+
},
|
|
15
21
|
};
|
|
16
22
|
|
|
17
23
|
export function DashboardLiveMount() {
|
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
type ShellNavStateGroup,
|
|
20
20
|
} from "@brightweblabs/app-shell";
|
|
21
21
|
import { createAuthUiClient } from "@brightweblabs/core-auth/ui";
|
|
22
|
-
import { Toaster } from "@brightweblabs/ui";
|
|
23
22
|
import { getModuleToolbarControls } from "../../config/module-toolbar-controls";
|
|
24
23
|
import { getStarterShellConfig } from "../../config/shell";
|
|
25
24
|
import "@brightweblabs/app-shell/dashboard.css";
|
|
@@ -65,7 +64,6 @@ function ShellLayoutInner({
|
|
|
65
64
|
const { isSidebarCollapsed, isGroupOpen, toggleGroup, toggleSidebar } =
|
|
66
65
|
useShellNavState({ pathname, groups: shellGroups });
|
|
67
66
|
const notifications = useShellNotifications({ enabled: viewer.isStaff });
|
|
68
|
-
const isAdminSurface = pathname === "/admin" || pathname.startsWith("/admin/");
|
|
69
67
|
const shellNavItems = [
|
|
70
68
|
...config.primaryNav,
|
|
71
69
|
...(config.adminNavItem ? [config.adminNavItem] : []),
|
|
@@ -174,7 +172,6 @@ function ShellLayoutInner({
|
|
|
174
172
|
>
|
|
175
173
|
<ShellRealtimeBridge viewer={viewer} />
|
|
176
174
|
{children}
|
|
177
|
-
{isAdminSurface || pathname === "/account" ? <Toaster /> : null}
|
|
178
175
|
</AppShellFrame>
|
|
179
176
|
);
|
|
180
177
|
}
|