@appcorp/fusion-storybook 0.5.21 → 0.5.23
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/base-modules/school/cache.js +0 -1
- package/base-modules/school/context.d.ts +0 -2
- package/base-modules/school/context.js +77 -18
- package/base-modules/school/drawer.js +1 -3
- package/base-modules/school/form.js +4 -23
- package/base-modules/school/page.js +2 -2
- package/base-modules/section/context.d.ts +6 -0
- package/base-modules/section/context.js +66 -34
- package/base-modules/section/form.js +2 -2
- package/base-modules/section/more-actions.js +71 -16
- package/base-modules/section/page.js +7 -3
- package/constants.d.ts +3 -1
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/utils/resolve-rbac-permissions.js +5 -3
- package/base-modules/school/filter.d.ts +0 -1
- package/base-modules/school/filter.js +0 -13
- package/base-modules/school/more-actions.d.ts +0 -1
- package/base-modules/school/more-actions.js +0 -13
|
@@ -286,14 +286,16 @@ export function resolveRbacPermissions({ userRole, moduleName, }) {
|
|
|
286
286
|
[USER_ROLE.PARENT]: false,
|
|
287
287
|
}[userRole] || false);
|
|
288
288
|
}
|
|
289
|
+
// Section is a management surface; teachers/students/parents keep API
|
|
290
|
+
// READ for dropdowns but do not get the page.
|
|
289
291
|
if (moduleName === "Section") {
|
|
290
292
|
return ({
|
|
291
293
|
[USER_ROLE.SUPER_ADMIN]: true,
|
|
292
294
|
[USER_ROLE.SCHOOL_ADMIN]: true,
|
|
293
295
|
[USER_ROLE.STAFF]: true,
|
|
294
|
-
[USER_ROLE.TEACHER]:
|
|
295
|
-
[USER_ROLE.STUDENT]:
|
|
296
|
-
[USER_ROLE.PARENT]:
|
|
296
|
+
[USER_ROLE.TEACHER]: false,
|
|
297
|
+
[USER_ROLE.STUDENT]: false,
|
|
298
|
+
[USER_ROLE.PARENT]: false,
|
|
297
299
|
}[userRole] || false);
|
|
298
300
|
}
|
|
299
301
|
if (moduleName === "Subject") {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SchoolFilter: () => import("react").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
/**
|
|
4
|
-
* School Filter
|
|
5
|
-
*
|
|
6
|
-
* Placeholder component for school filters.
|
|
7
|
-
* Currently no filters are available for schools.
|
|
8
|
-
*/
|
|
9
|
-
import { useTranslations } from "next-intl";
|
|
10
|
-
export const SchoolFilter = () => {
|
|
11
|
-
const t = useTranslations("school");
|
|
12
|
-
return (_jsx("div", { className: "p-6 text-center text-muted-foreground", children: _jsx("p", { children: t("filterFallbackText") }) }));
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SchoolMoreActions: () => import("react").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
/**
|
|
4
|
-
* School More Actions
|
|
5
|
-
*
|
|
6
|
-
* Placeholder component for additional school actions.
|
|
7
|
-
* Currently no additional actions are available for schools.
|
|
8
|
-
*/
|
|
9
|
-
import { useTranslations } from "next-intl";
|
|
10
|
-
export const SchoolMoreActions = () => {
|
|
11
|
-
const t = useTranslations("school");
|
|
12
|
-
return (_jsx("div", { className: "p-6 text-center text-muted-foreground", children: _jsx("p", { children: t("moreActionsFallbackText") }) }));
|
|
13
|
-
};
|