create-bw-app 0.16.0 → 0.17.0

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-bw-app",
3
3
  "private": false,
4
- "version": "0.16.0",
4
+ "version": "0.17.0",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-bw-app": "bin/create-bw-app.mjs",
package/src/constants.mjs CHANGED
@@ -105,13 +105,17 @@ export const MODULE_STARTER_FILES = {
105
105
  "app/api/marketing/workflows/route.ts",
106
106
  ],
107
107
  projects: [
108
- "app/(shell)/projects/layout.tsx",
109
- "app/(shell)/projects/page.tsx",
110
- "app/(shell)/projects/projects-live-mounts.tsx",
111
- "app/(shell)/projects/projects-server-mounts.tsx",
112
- "app/(shell)/projects/[id]/page.tsx",
113
- "app/(shell)/projects/[id]/board/page.tsx",
114
- "app/(shell)/projects/[id]/tasks/page.tsx",
108
+ "app/(shell)/projetos/layout.tsx",
109
+ "app/(shell)/projetos/page.tsx",
110
+ "app/(shell)/projetos/projetos-live-mounts.tsx",
111
+ "app/(shell)/projetos/projetos-server-mounts.tsx",
112
+ "app/(shell)/projetos/[projectId]/page.tsx",
113
+ "app/(shell)/projetos/[projectId]/quadro/page.tsx",
114
+ "app/(shell)/projetos/[projectId]/tarefas/page.tsx",
115
+ "app/(shell)/account/projetos/page.tsx",
116
+ "app/(shell)/account/projetos/loading.tsx",
117
+ "app/(shell)/account/projetos/[projectId]/page.tsx",
118
+ "app/(shell)/account/projetos/[projectId]/loading.tsx",
115
119
  "app/api/projects/_handlers.ts",
116
120
  "app/api/projects/route.ts",
117
121
  "app/api/projects/stats/route.ts",
@@ -166,7 +170,7 @@ export const APP_DEPENDENCY_DEFAULTS = {
166
170
  "@brightweblabs/core-auth": "^0.7.0",
167
171
  "@brightweblabs/infra": "^0.4.0",
168
172
  "@brightweblabs/module-admin": "^0.5.5",
169
- "@brightweblabs/module-crm": "^0.8.5",
173
+ "@brightweblabs/module-crm": "^0.9.0",
170
174
  "@brightweblabs/module-marketing": "^0.2.4",
171
175
  "@brightweblabs/module-orgs": "^0.3.5",
172
176
  "@brightweblabs/module-projects": "^0.7.0",
package/src/generator.mjs CHANGED
@@ -395,7 +395,7 @@ export function createPlatformModulesConfigFile(selectedModules) {
395
395
  ' description: "Project portfolio, detail routes, and work-management server logic.",',
396
396
  ` enabled: ${String(selected.has("projects"))},`,
397
397
  ' packageName: "@brightweblabs/module-projects",',
398
- ' routeHref: "/projects",',
398
+ ' routeHref: "/projetos",',
399
399
  ' placement: "primary",',
400
400
  " },",
401
401
  " {",
@@ -496,7 +496,7 @@ function getPlatformStarterRoutes(selectedModules) {
496
496
  ...selectedModules.flatMap((moduleKey) => {
497
497
  if (moduleKey === "crm") return ["/crm"];
498
498
  if (moduleKey === "marketing") return ["/marketing"];
499
- if (moduleKey === "projects") return ["/projects"];
499
+ if (moduleKey === "projects") return ["/projetos", "/account/projetos"];
500
500
  if (moduleKey === "admin") return ["/admin/users"];
501
501
  return [];
502
502
  }),
@@ -917,8 +917,8 @@ export function createShellConfig(selectedModules) {
917
917
  }
918
918
 
919
919
  if (selectedModules.includes("projects")) {
920
- importLines.push('import { projectsPreviewModuleRegistration } from "@brightweblabs/module-projects/registration";');
921
- registrationLines.push(' if (enabled.has("projects")) registrations.push(projectsPreviewModuleRegistration);');
920
+ importLines.push('import { projectsModuleRegistration } from "@brightweblabs/module-projects/registration";');
921
+ registrationLines.push(' if (enabled.has("projects")) registrations.push(projectsModuleRegistration);');
922
922
  }
923
923
 
924
924
  return [
@@ -0,0 +1 @@
1
+ export { ProjectDetailServerMount as default } from "../projetos-server-mounts";
@@ -0,0 +1 @@
1
+ export { ProjectBoardServerMount as default } from "../../projetos-server-mounts";
@@ -0,0 +1 @@
1
+ export { ProjectTasksServerMount as default } from "../../projetos-server-mounts";
@@ -0,0 +1 @@
1
+ export { ProjectsServerMount as default } from "./projetos-server-mounts";
@@ -8,12 +8,12 @@ import {
8
8
  ProjectDetailPageLiveMount,
9
9
  ProjectsPageLiveMount,
10
10
  ProjectTasksPageLiveMount,
11
- } from "./projects-live-mounts";
11
+ } from "./projetos-live-mounts";
12
12
 
13
13
  const navigation = {
14
- listHref: "/projects",
15
- detailHref: (id: string) => `/projects/${id}`,
16
- boardHref: (id: string) => `/projects/${id}/tasks`,
14
+ listHref: "/projetos",
15
+ detailHref: (id: string) => `/projetos/${id}`,
16
+ boardHref: (id: string) => `/projetos/${id}/tarefas`,
17
17
  };
18
18
 
19
19
  export async function ProjectsServerMount() {
@@ -35,20 +35,20 @@ export async function ProjectsServerMount() {
35
35
  );
36
36
  }
37
37
 
38
- async function getInitialProject(params: Promise<{ id: string }>) {
39
- const { id } = await params;
38
+ async function getInitialProject(params: Promise<{ projectId: string }>) {
39
+ const { projectId } = await params;
40
40
  const { supabase } = await requireServerPageAccess();
41
- return getProjectDashboard(supabase, id);
41
+ return getProjectDashboard(supabase, projectId);
42
42
  }
43
43
 
44
- export async function ProjectDetailServerMount({ params }: { params: Promise<{ id: string }> }) {
44
+ export async function ProjectDetailServerMount({ params }: { params: Promise<{ projectId: string }> }) {
45
45
  return <ProjectDetailPageLiveMount initialData={await getInitialProject(params)} navigation={navigation} />;
46
46
  }
47
47
 
48
- export async function ProjectBoardServerMount({ params }: { params: Promise<{ id: string }> }) {
48
+ export async function ProjectBoardServerMount({ params }: { params: Promise<{ projectId: string }> }) {
49
49
  return <ProjectBoardPageLiveMount initialData={await getInitialProject(params)} navigation={navigation} />;
50
50
  }
51
51
 
52
- export async function ProjectTasksServerMount({ params }: { params: Promise<{ id: string }> }) {
52
+ export async function ProjectTasksServerMount({ params }: { params: Promise<{ projectId: string }> }) {
53
53
  return <ProjectTasksPageLiveMount initialData={await getInitialProject(params)} navigation={navigation} />;
54
54
  }
@@ -1 +0,0 @@
1
- export { ProjectBoardServerMount as default } from "../../projects-server-mounts";
@@ -1 +0,0 @@
1
- export { ProjectDetailServerMount as default } from "../projects-server-mounts";
@@ -1 +0,0 @@
1
- export { ProjectTasksServerMount as default } from "../../projects-server-mounts";
@@ -1 +0,0 @@
1
- export { ProjectsServerMount as default } from "./projects-server-mounts";