@appcorp/fusion-storybook 0.5.19 → 0.5.21

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.
@@ -117,11 +117,13 @@ export function resolveRbacPermissions({ userRole, moduleName, }) {
117
117
  [USER_ROLE.PARENT]: false,
118
118
  }[userRole] || false);
119
119
  }
120
+ // The API seed grants fee-structure READ_WRITE to STAFF, so the page must
121
+ // be reachable by the people who can operate it.
120
122
  if (moduleName === "Fee Structure") {
121
123
  return ({
122
124
  [USER_ROLE.SUPER_ADMIN]: true,
123
125
  [USER_ROLE.SCHOOL_ADMIN]: true,
124
- [USER_ROLE.STAFF]: false,
126
+ [USER_ROLE.STAFF]: true,
125
127
  [USER_ROLE.TEACHER]: false,
126
128
  [USER_ROLE.STUDENT]: false,
127
129
  [USER_ROLE.PARENT]: false,
@@ -1 +0,0 @@
1
- export declare const RbacFilter: () => import("react").JSX.Element;
@@ -1,20 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- /**
4
- * RBAC Filter Component
5
- *
6
- * Filter UI for the RBAC module. Currently a placeholder
7
- * since roles don't have enabled/status fields.
8
- */
9
- import { useRbacModule } from "./context";
10
- import { useTranslations } from "next-intl";
11
- export const RbacFilter = () => {
12
- const { applyFilters, clearFilters, closeDrawer } = useRbacModule();
13
- const t = useTranslations("rbac");
14
- return (_jsxs("div", { className: "space-y-4", children: [_jsx("p", { className: "text-muted-foreground text-sm", children: t("filterTextDescription") }), _jsxs("div", { className: "mt-4 flex gap-2", children: [_jsx("button", { className: "text-muted-foreground text-sm underline", onClick: () => {
15
- clearFilters();
16
- closeDrawer();
17
- }, children: t("drawerButtonClearFilter") }), _jsx("button", { className: "text-sm underline", onClick: () => {
18
- applyFilters();
19
- }, children: t("drawerButtonApply") })] })] }));
20
- };
@@ -1 +0,0 @@
1
- export declare const RbacMoreActions: () => import("react").JSX.Element;
@@ -1,12 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- /**
4
- * RBAC More Actions Component
5
- *
6
- * Placeholder for additional actions like bulk operations, exports, etc.
7
- */
8
- import { useTranslations } from "next-intl";
9
- export const RbacMoreActions = () => {
10
- const t = useTranslations("rbac");
11
- return (_jsx("div", { className: "space-y-4", children: _jsx("p", { className: "text-muted-foreground text-sm", children: t("moreActionsTextPlaceholder") }) }));
12
- };