@hed-hog/operations 0.0.285 → 0.0.291
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/hedhog/frontend/app/_components/kanban-board.tsx.ejs +604 -61
- package/hedhog/frontend/app/_lib/mocks/projects.mock.ts.ejs +398 -3
- package/hedhog/frontend/app/_lib/mocks/tasks.mock.ts.ejs +29 -0
- package/hedhog/frontend/app/_lib/types/operations.ts.ejs +67 -6
- package/hedhog/frontend/app/allocations/page.tsx.ejs +2 -1
- package/hedhog/frontend/app/certifications/page.tsx.ejs +2 -1
- package/hedhog/frontend/app/contracts/page.tsx.ejs +2 -1
- package/hedhog/frontend/app/evaluations/page.tsx.ejs +2 -1
- package/hedhog/frontend/app/goals/page.tsx.ejs +2 -1
- package/hedhog/frontend/app/projects/[id]/page.tsx.ejs +857 -107
- package/hedhog/frontend/app/projects/page.tsx.ejs +1044 -81
- package/hedhog/frontend/app/rewards/page.tsx.ejs +2 -1
- package/hedhog/frontend/app/tasks/page.tsx.ejs +968 -16
- package/hedhog/frontend/messages/en.json +306 -4
- package/hedhog/frontend/messages/pt.json +306 -4
- package/package.json +5 -5
|
@@ -13,6 +13,7 @@ import { useOperationsGrowthData } from '../_lib/hooks/use-operations-growth-dat
|
|
|
13
13
|
import { getGrowthGoalBadgeClasses, humanizeGrowthStatus } from '../_lib/utils/growth';
|
|
14
14
|
|
|
15
15
|
const PAGE_SIZE_OPTIONS = [4, 8, 12];
|
|
16
|
+
const DEFAULT_PAGE_SIZE = PAGE_SIZE_OPTIONS[0] ?? 4;
|
|
16
17
|
|
|
17
18
|
export default function OperationsGoalsPage() {
|
|
18
19
|
const t = useTranslations('operations.GoalsPage');
|
|
@@ -21,7 +22,7 @@ export default function OperationsGoalsPage() {
|
|
|
21
22
|
const [search, setSearch] = useState('');
|
|
22
23
|
const [statusFilter, setStatusFilter] = useState('all');
|
|
23
24
|
const [currentPage, setCurrentPage] = useState(1);
|
|
24
|
-
const [pageSize, setPageSize] = useState(
|
|
25
|
+
const [pageSize, setPageSize] = useState(DEFAULT_PAGE_SIZE);
|
|
25
26
|
|
|
26
27
|
const filteredGoals = useMemo(
|
|
27
28
|
() =>
|