@burdenoff/microfe-crewfoundry 2026.626.1 → 2026.703.2
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/dist/crewfoundry/components/forms/ConfirmDialog.js +43 -0
- package/dist/crewfoundry/components/forms/ConfirmDialog.js.map +1 -0
- package/dist/crewfoundry/components/forms/FormModal.js +220 -0
- package/dist/crewfoundry/components/forms/FormModal.js.map +1 -0
- package/dist/crewfoundry/components/forms/formValues.js +20 -0
- package/dist/crewfoundry/components/forms/formValues.js.map +1 -0
- package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js +255 -65
- package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js +28 -17
- package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsFilesPagePage.js +57 -53
- package/dist/crewfoundry/pages/CommunicationsFilesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js +32 -23
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js +44 -29
- package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js +183 -57
- package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CompanyCompanyDashboardPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js +214 -92
- package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/DashboardDashboardPagePage.js +165 -131
- package/dist/crewfoundry/pages/DashboardDashboardPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/DashboardEnhancedDashboardPagePage.js +163 -133
- package/dist/crewfoundry/pages/DashboardEnhancedDashboardPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringCandidatesPagePage.js +269 -54
- package/dist/crewfoundry/pages/HiringCandidatesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringCreateJobPagePage.js +225 -78
- package/dist/crewfoundry/pages/HiringCreateJobPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringInterviewsPagePage.js +213 -59
- package/dist/crewfoundry/pages/HiringInterviewsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringJobDetailsPagePage.js +287 -90
- package/dist/crewfoundry/pages/HiringJobDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringJobsPagePage.js +49 -47
- package/dist/crewfoundry/pages/HiringJobsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrDepartmentsPagePage.js +166 -59
- package/dist/crewfoundry/pages/HrDepartmentsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrEmployeesPagePage.js +274 -83
- package/dist/crewfoundry/pages/HrEmployeesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrLeaveManagementPagePage.js +198 -88
- package/dist/crewfoundry/pages/HrLeaveManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrPayrollPagePage.js +216 -88
- package/dist/crewfoundry/pages/HrPayrollPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrTimeTrackingPagePage.js +216 -66
- package/dist/crewfoundry/pages/HrTimeTrackingPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js +6 -7
- package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js +83 -68
- package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningCoursesPagePage.js +167 -46
- package/dist/crewfoundry/pages/LearningCoursesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningLearningPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js +75 -55
- package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js +152 -79
- package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningMyLearningPagePage.js +75 -63
- package/dist/crewfoundry/pages/LearningMyLearningPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js +3 -1
- package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js +235 -87
- package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js +199 -86
- package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js +21 -40
- package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/ProjectsCreateProjectPagePage.js +117 -45
- package/dist/crewfoundry/pages/ProjectsCreateProjectPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/ProjectsProjectDetailsPagePage.js +249 -90
- package/dist/crewfoundry/pages/ProjectsProjectDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/ProjectsProjectsPagePage.js +47 -45
- package/dist/crewfoundry/pages/ProjectsProjectsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/TeamsTeamAnalyticsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/TeamsTeamSettingsPagePage.js +262 -133
- package/dist/crewfoundry/pages/TeamsTeamSettingsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/TeamsTeamsPagePage.js +144 -77
- package/dist/crewfoundry/pages/TeamsTeamsPagePage.js.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.js +339 -52
- package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,96 +1,98 @@
|
|
|
1
1
|
import { useCrewFoundryStore as e } from "../store/crewfoundryStore.js";
|
|
2
2
|
import { useState as t } from "react";
|
|
3
3
|
import { Briefcase as n, MapPin as r, Plus as i, Search as a, Users as o } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { useNavigate as s } from "react-router-dom";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
import { Badge as u, Button as d, CardContent as f, CardDescription as p, CardHeader as m, CardTitle as h, GlassCard as g, GradientText as _, IllustratedEmptyState as v, Input as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
|
|
7
|
+
import { useI18n as x } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
8
|
//#region src/crewfoundry/pages/HiringJobsPagePage.tsx
|
|
8
|
-
function
|
|
9
|
-
let { t:
|
|
10
|
-
let n =
|
|
9
|
+
function S() {
|
|
10
|
+
let { t: S } = x(), C = s(), { jobPostings: w } = e(), [T, E] = t(""), D = (e, t) => {
|
|
11
|
+
let n = S(e);
|
|
11
12
|
return n === e ? t : n;
|
|
12
|
-
},
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
}, O = w.filter((e) => `${e.title} ${e.department} ${e.location}`.toLowerCase().includes(T.toLowerCase())), k = w.filter((e) => e.status === "active").length, A = w.reduce((e, t) => e + t.applicants, 0);
|
|
14
|
+
return /* @__PURE__ */ l("div", {
|
|
14
15
|
className: "space-y-6 p-6",
|
|
15
16
|
children: [
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
+
/* @__PURE__ */ l("div", {
|
|
17
18
|
className: "flex items-center justify-between",
|
|
18
|
-
children: [/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
19
|
+
children: [/* @__PURE__ */ l("div", { children: [
|
|
20
|
+
/* @__PURE__ */ c("h1", {
|
|
20
21
|
className: "text-2xl font-semibold",
|
|
21
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ c(_, { children: D("crewfoundry.hiringJobs.title", "Job Postings") })
|
|
22
23
|
}),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ l("p", {
|
|
24
25
|
className: "text-sm text-text-secondary",
|
|
25
26
|
children: [
|
|
26
|
-
|
|
27
|
+
k,
|
|
27
28
|
" ",
|
|
28
|
-
|
|
29
|
+
D("crewfoundry.hiringJobs.summary.activePositions", "active positions"),
|
|
29
30
|
" ·",
|
|
30
31
|
" ",
|
|
31
|
-
|
|
32
|
+
A,
|
|
32
33
|
" ",
|
|
33
|
-
|
|
34
|
+
D("crewfoundry.hiringJobs.summary.totalApplicants", "total applicants")
|
|
34
35
|
]
|
|
35
36
|
}),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ c(b, {
|
|
37
38
|
className: "mt-1",
|
|
38
39
|
children: "All your open and past job postings in one place — use it to monitor applicant volume and manage what roles you're actively hiring for."
|
|
39
40
|
})
|
|
40
|
-
] }), /* @__PURE__ */
|
|
41
|
+
] }), /* @__PURE__ */ l(d, {
|
|
41
42
|
size: "sm",
|
|
42
|
-
|
|
43
|
+
onClick: () => C("../create-job-page"),
|
|
44
|
+
children: [/* @__PURE__ */ c(i, { className: "h-4 w-4 mr-1" }), D("crewfoundry.hiringJobs.actions.postNewJob", "Post New Job")]
|
|
43
45
|
})]
|
|
44
46
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ l("div", {
|
|
46
48
|
className: "relative max-w-sm",
|
|
47
|
-
children: [/* @__PURE__ */
|
|
48
|
-
placeholder:
|
|
49
|
+
children: [/* @__PURE__ */ c(a, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ c(y, {
|
|
50
|
+
placeholder: D("crewfoundry.hiringJobs.searchPlaceholder", "Search positions..."),
|
|
49
51
|
className: "pl-9",
|
|
50
|
-
value:
|
|
51
|
-
onChange: (e) =>
|
|
52
|
+
value: T,
|
|
53
|
+
onChange: (e) => E(e.target.value)
|
|
52
54
|
})]
|
|
53
55
|
}),
|
|
54
|
-
|
|
56
|
+
O.length === 0 && /* @__PURE__ */ c(v, {
|
|
55
57
|
illustration: "empty-search",
|
|
56
58
|
title: "No job postings found",
|
|
57
59
|
description: "Try adjusting your search, or create a new job posting."
|
|
58
60
|
}),
|
|
59
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ c("div", {
|
|
60
62
|
className: "grid gap-4 md:grid-cols-2",
|
|
61
|
-
children:
|
|
63
|
+
children: O.map((e, t) => /* @__PURE__ */ l(g, {
|
|
62
64
|
treatment: t === 0 ? "glass" : "plain",
|
|
63
65
|
glow: t === 0,
|
|
64
|
-
children: [/* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ l(m, { children: [/* @__PURE__ */ l("div", {
|
|
65
67
|
className: "flex items-center justify-between",
|
|
66
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ c(h, {
|
|
67
69
|
className: "text-lg",
|
|
68
70
|
children: e.title
|
|
69
|
-
}), /* @__PURE__ */
|
|
71
|
+
}), /* @__PURE__ */ c(u, {
|
|
70
72
|
variant: e.status === "active" ? "default" : e.status === "paused" ? "secondary" : "outline",
|
|
71
73
|
children: e.status
|
|
72
74
|
})]
|
|
73
|
-
}), /* @__PURE__ */
|
|
75
|
+
}), /* @__PURE__ */ c(p, { children: e.description })] }), /* @__PURE__ */ l(f, { children: [/* @__PURE__ */ l("div", {
|
|
74
76
|
className: "grid grid-cols-2 gap-3 mb-3",
|
|
75
77
|
children: [
|
|
76
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ l("div", {
|
|
77
79
|
className: "flex items-center gap-1 text-sm text-text-secondary",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ c(n, { className: "h-3 w-3" }), e.department]
|
|
79
81
|
}),
|
|
80
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ l("div", {
|
|
81
83
|
className: "flex items-center gap-1 text-sm text-text-secondary",
|
|
82
|
-
children: [/* @__PURE__ */
|
|
84
|
+
children: [/* @__PURE__ */ c(r, { className: "h-3 w-3" }), e.location]
|
|
83
85
|
}),
|
|
84
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ l("div", {
|
|
85
87
|
className: "flex items-center gap-1 text-sm text-text-secondary",
|
|
86
88
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ c(o, { className: "h-3 w-3" }),
|
|
88
90
|
e.applicants,
|
|
89
91
|
" ",
|
|
90
|
-
|
|
92
|
+
D("crewfoundry.hiringJobs.card.applicants", "applicants")
|
|
91
93
|
]
|
|
92
94
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ l("div", {
|
|
94
96
|
className: "text-sm text-text-secondary",
|
|
95
97
|
children: [
|
|
96
98
|
"$",
|
|
@@ -101,21 +103,21 @@ function x() {
|
|
|
101
103
|
]
|
|
102
104
|
})
|
|
103
105
|
]
|
|
104
|
-
}), /* @__PURE__ */
|
|
106
|
+
}), /* @__PURE__ */ l("div", {
|
|
105
107
|
className: "flex items-center justify-between text-xs text-text-secondary",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ l("div", {
|
|
107
109
|
className: "flex gap-1",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
110
|
+
children: [/* @__PURE__ */ c(u, {
|
|
109
111
|
variant: "outline",
|
|
110
112
|
className: "text-[10px]",
|
|
111
113
|
children: e.type.replace("_", " ")
|
|
112
|
-
}), /* @__PURE__ */
|
|
114
|
+
}), /* @__PURE__ */ c(u, {
|
|
113
115
|
variant: "outline",
|
|
114
116
|
className: "text-[10px]",
|
|
115
117
|
children: e.experienceLevel
|
|
116
118
|
})]
|
|
117
|
-
}), /* @__PURE__ */
|
|
118
|
-
|
|
119
|
+
}), /* @__PURE__ */ l("span", { children: [
|
|
120
|
+
D("crewfoundry.hiringJobs.card.deadline", "Deadline"),
|
|
119
121
|
": ",
|
|
120
122
|
e.deadline
|
|
121
123
|
] })]
|
|
@@ -126,6 +128,6 @@ function x() {
|
|
|
126
128
|
});
|
|
127
129
|
}
|
|
128
130
|
//#endregion
|
|
129
|
-
export {
|
|
131
|
+
export { S as HiringJobsPagePage };
|
|
130
132
|
|
|
131
133
|
//# sourceMappingURL=HiringJobsPagePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HiringJobsPagePage.js","names":[],"sources":["../../../src/crewfoundry/pages/HiringJobsPagePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Badge,\n Button,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n Input,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\nimport { Briefcase, MapPin, Plus, Search, Users } from 'lucide-react';\nimport { useCrewFoundryStore } from '../store/crewfoundryStore';\n\nexport function HiringJobsPagePage() {\n const { t: translate } = useI18n();\n const { jobPostings } = useCrewFoundryStore();\n const [search, setSearch] = useState('');\n const t = (key: string, fallback: string) => {\n const value = translate(key);\n return value === key ? fallback : value;\n };\n\n const filtered = jobPostings.filter((j) =>\n `${j.title} ${j.department} ${j.location}`.toLowerCase().includes(search.toLowerCase())\n );\n const activeJobs = jobPostings.filter((j) => j.status === 'active').length;\n const totalApplicants = jobPostings.reduce((s, j) => s + j.applicants, 0);\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">\n <GradientText>{t('crewfoundry.hiringJobs.title', 'Job Postings')}</GradientText>\n </h1>\n <p className=\"text-sm text-text-secondary\">\n {activeJobs} {t('crewfoundry.hiringJobs.summary.activePositions', 'active positions')} ·{' '}\n {totalApplicants}{' '}\n {t('crewfoundry.hiringJobs.summary.totalApplicants', 'total applicants')}\n </p>\n <PagePurpose className=\"mt-1\">All your open and past job postings in one place — use it to monitor applicant volume and manage what roles you're actively hiring for.</PagePurpose>\n </div>\n <Button size=\"sm\">\n <Plus className=\"h-4 w-4 mr-1\" />\n {t('crewfoundry.hiringJobs.actions.postNewJob', 'Post New Job')}\n </Button>\n </div>\n\n <div className=\"relative max-w-sm\">\n <Search className=\"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary\" />\n <Input\n placeholder={t('crewfoundry.hiringJobs.searchPlaceholder', 'Search positions...')}\n className=\"pl-9\"\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n />\n </div>\n\n {filtered.length === 0 && (\n <IllustratedEmptyState\n illustration=\"empty-search\"\n title=\"No job postings found\"\n description=\"Try adjusting your search, or create a new job posting.\"\n />\n )}\n\n <div className=\"grid gap-4 md:grid-cols-2\">\n {filtered.map((job, _idx) => (\n <GlassCard key={job.id} treatment={_idx === 0 ? 'glass' : 'plain'} glow={_idx === 0}>\n <CardHeader>\n <div className=\"flex items-center justify-between\">\n <CardTitle className=\"text-lg\">{job.title}</CardTitle>\n <Badge\n variant={\n job.status === 'active'\n ? 'default'\n : job.status === 'paused'\n ? 'secondary'\n : 'outline'\n }\n >\n {job.status}\n </Badge>\n </div>\n <CardDescription>{job.description}</CardDescription>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-2 gap-3 mb-3\">\n <div className=\"flex items-center gap-1 text-sm text-text-secondary\">\n <Briefcase className=\"h-3 w-3\" />\n {job.department}\n </div>\n <div className=\"flex items-center gap-1 text-sm text-text-secondary\">\n <MapPin className=\"h-3 w-3\" />\n {job.location}\n </div>\n <div className=\"flex items-center gap-1 text-sm text-text-secondary\">\n <Users className=\"h-3 w-3\" />\n {job.applicants} {t('crewfoundry.hiringJobs.card.applicants', 'applicants')}\n </div>\n <div className=\"text-sm text-text-secondary\">\n ${(job.salaryMin / 1000).toFixed(0)}K — ${(job.salaryMax / 1000).toFixed(0)}K\n </div>\n </div>\n <div className=\"flex items-center justify-between text-xs text-text-secondary\">\n <div className=\"flex gap-1\">\n <Badge variant=\"outline\" className=\"text-[10px]\">\n {job.type.replace('_', ' ')}\n </Badge>\n <Badge variant=\"outline\" className=\"text-[10px]\">\n {job.experienceLevel}\n </Badge>\n </div>\n <span>\n {t('crewfoundry.hiringJobs.card.deadline', 'Deadline')}: {job.deadline}\n </span>\n </div>\n </CardContent>\n </GlassCard>\n ))}\n </div>\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"HiringJobsPagePage.js","names":[],"sources":["../../../src/crewfoundry/pages/HiringJobsPagePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Badge,\n Button,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n Input,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\nimport { Briefcase, MapPin, Plus, Search, Users } from 'lucide-react';\nimport { useNavigate } from 'react-router-dom';\nimport { useCrewFoundryStore } from '../store/crewfoundryStore';\n\nexport function HiringJobsPagePage() {\n const { t: translate } = useI18n();\n const navigate = useNavigate();\n const { jobPostings } = useCrewFoundryStore();\n const [search, setSearch] = useState('');\n const t = (key: string, fallback: string) => {\n const value = translate(key);\n return value === key ? fallback : value;\n };\n\n const filtered = jobPostings.filter((j) =>\n `${j.title} ${j.department} ${j.location}`.toLowerCase().includes(search.toLowerCase())\n );\n const activeJobs = jobPostings.filter((j) => j.status === 'active').length;\n const totalApplicants = jobPostings.reduce((s, j) => s + j.applicants, 0);\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">\n <GradientText>{t('crewfoundry.hiringJobs.title', 'Job Postings')}</GradientText>\n </h1>\n <p className=\"text-sm text-text-secondary\">\n {activeJobs} {t('crewfoundry.hiringJobs.summary.activePositions', 'active positions')} ·{' '}\n {totalApplicants}{' '}\n {t('crewfoundry.hiringJobs.summary.totalApplicants', 'total applicants')}\n </p>\n <PagePurpose className=\"mt-1\">All your open and past job postings in one place — use it to monitor applicant volume and manage what roles you're actively hiring for.</PagePurpose>\n </div>\n <Button size=\"sm\" onClick={() => navigate('../create-job-page')}>\n <Plus className=\"h-4 w-4 mr-1\" />\n {t('crewfoundry.hiringJobs.actions.postNewJob', 'Post New Job')}\n </Button>\n </div>\n\n <div className=\"relative max-w-sm\">\n <Search className=\"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary\" />\n <Input\n placeholder={t('crewfoundry.hiringJobs.searchPlaceholder', 'Search positions...')}\n className=\"pl-9\"\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n />\n </div>\n\n {filtered.length === 0 && (\n <IllustratedEmptyState\n illustration=\"empty-search\"\n title=\"No job postings found\"\n description=\"Try adjusting your search, or create a new job posting.\"\n />\n )}\n\n <div className=\"grid gap-4 md:grid-cols-2\">\n {filtered.map((job, _idx) => (\n <GlassCard key={job.id} treatment={_idx === 0 ? 'glass' : 'plain'} glow={_idx === 0}>\n <CardHeader>\n <div className=\"flex items-center justify-between\">\n <CardTitle className=\"text-lg\">{job.title}</CardTitle>\n <Badge\n variant={\n job.status === 'active'\n ? 'default'\n : job.status === 'paused'\n ? 'secondary'\n : 'outline'\n }\n >\n {job.status}\n </Badge>\n </div>\n <CardDescription>{job.description}</CardDescription>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-2 gap-3 mb-3\">\n <div className=\"flex items-center gap-1 text-sm text-text-secondary\">\n <Briefcase className=\"h-3 w-3\" />\n {job.department}\n </div>\n <div className=\"flex items-center gap-1 text-sm text-text-secondary\">\n <MapPin className=\"h-3 w-3\" />\n {job.location}\n </div>\n <div className=\"flex items-center gap-1 text-sm text-text-secondary\">\n <Users className=\"h-3 w-3\" />\n {job.applicants} {t('crewfoundry.hiringJobs.card.applicants', 'applicants')}\n </div>\n <div className=\"text-sm text-text-secondary\">\n ${(job.salaryMin / 1000).toFixed(0)}K — ${(job.salaryMax / 1000).toFixed(0)}K\n </div>\n </div>\n <div className=\"flex items-center justify-between text-xs text-text-secondary\">\n <div className=\"flex gap-1\">\n <Badge variant=\"outline\" className=\"text-[10px]\">\n {job.type.replace('_', ' ')}\n </Badge>\n <Badge variant=\"outline\" className=\"text-[10px]\">\n {job.experienceLevel}\n </Badge>\n </div>\n <span>\n {t('crewfoundry.hiringJobs.card.deadline', 'Deadline')}: {job.deadline}\n </span>\n </div>\n </CardContent>\n </GlassCard>\n ))}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAmBA,SAAgB,IAAqB;CACnC,IAAM,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAW,GAAa,EACxB,EAAE,mBAAgB,GAAqB,EACvC,CAAC,GAAQ,KAAa,EAAS,GAAG,EAClC,KAAK,GAAa,MAAqB;EAC3C,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAG9B,IAAW,EAAY,QAAQ,MACnC,GAAG,EAAE,MAAM,GAAG,EAAE,WAAW,GAAG,EAAE,WAAW,aAAa,CAAC,SAAS,EAAO,aAAa,CAAC,CACxF,EACK,IAAa,EAAY,QAAQ,MAAM,EAAE,WAAW,SAAS,CAAC,QAC9D,IAAkB,EAAY,QAAQ,GAAG,MAAM,IAAI,EAAE,YAAY,EAAE;AAEzE,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,OAAD,EAAA,UAAA;KACE,kBAAC,M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AK,WAAU;gBAAf;OACE,kBAAC,OAAD;QAAK,WAAU;kBAAf,CACE,kBAAC,GAAD,EAAW,WAAU,WAAY,CAAA,EAChC,EAAI,WACD;;OACN,kBAAC,OAAD;QAAK,WAAU;kBAAf,CACE,kBAAC,GAAD,EAAQ,WAAU,WAAY,CAAA,EAC7B,EAAI,SACD;;OACN,kBAAC,OAAD;QAAK,WAAU;kBAAf;SACE,kBAAC,GAAD,EAAO,WAAU,WAAY,CAAA;SAC5B,EAAI;SAAW;SAAE,EAAE,0CAA0C,aAAa;SACvE;;OACN,kBAAC,OAAD;QAAK,WAAU;kBAAf;SAA6C;UACxC,EAAI,YAAY,KAAM,QAAQ,EAAE;SAAC;UAAO,EAAI,YAAY,KAAM,QAAQ,EAAE;SAAC;SACxE;;OACF;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,GAAD;QAAO,SAAQ;QAAU,WAAU;kBAChC,EAAI,KAAK,QAAQ,KAAK,IAAI;QACrB,CAAA,EACR,kBAAC,GAAD;QAAO,SAAQ;QAAU,WAAU;kBAChC,EAAI;QACC,CAAA,CACJ;UACN,kBAAC,QAAD,EAAA,UAAA;OACG,EAAE,wCAAwC,WAAW;OAAC;OAAG,EAAI;OACzD,EAAA,CAAA,CACH;QACM,EAAA,CAAA,CACJ;OAlDI,EAAI,GAkDR,CACZ;IACE,CAAA;GACF"}
|
|
@@ -1,123 +1,195 @@
|
|
|
1
1
|
import { useCrewFoundryStore as e } from "../store/crewfoundryStore.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { FormModal as t, useFormModal as n } from "../components/forms/FormModal.js";
|
|
3
|
+
import { ConfirmDialog as r } from "../components/forms/ConfirmDialog.js";
|
|
4
|
+
import { getNumber as i, getText as a, newClientId as o } from "../components/forms/formValues.js";
|
|
5
|
+
import { useState as s } from "react";
|
|
6
|
+
import { Building2 as c, DollarSign as l, MapPin as u, Pencil as d, Plus as f, Trash2 as p, Users as m } from "lucide-react";
|
|
7
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
8
|
+
import { Badge as _, Button as v, Card as y, CardContent as b, CardDescription as x, CardHeader as S, CardTitle as C, GlassCard as w, GradientText as T, PagePurpose as E, Separator as D } from "@burdenoff/fe-libs/ui";
|
|
5
9
|
//#region src/crewfoundry/pages/HrDepartmentsPagePage.tsx
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
var O = [
|
|
11
|
+
{
|
|
12
|
+
name: "name",
|
|
13
|
+
label: "Department name",
|
|
14
|
+
type: "text",
|
|
15
|
+
required: !0,
|
|
16
|
+
colSpan: 2
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "headName",
|
|
20
|
+
label: "Department head",
|
|
21
|
+
type: "text",
|
|
22
|
+
required: !0
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "location",
|
|
26
|
+
label: "Location",
|
|
27
|
+
type: "text",
|
|
28
|
+
required: !0
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "budget",
|
|
32
|
+
label: "Annual budget",
|
|
33
|
+
type: "number",
|
|
34
|
+
required: !0
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "status",
|
|
38
|
+
label: "Status",
|
|
39
|
+
type: "select",
|
|
40
|
+
required: !0,
|
|
41
|
+
options: [{
|
|
42
|
+
label: "Active",
|
|
43
|
+
value: "active"
|
|
44
|
+
}, {
|
|
45
|
+
label: "Restructuring",
|
|
46
|
+
value: "restructuring"
|
|
47
|
+
}]
|
|
48
|
+
}
|
|
49
|
+
], k = (e) => ({
|
|
50
|
+
name: e.name,
|
|
51
|
+
headName: e.headName,
|
|
52
|
+
location: e.location,
|
|
53
|
+
budget: e.budget,
|
|
54
|
+
status: e.status
|
|
55
|
+
});
|
|
56
|
+
function A() {
|
|
57
|
+
let { departments: A, employees: j, addDepartment: M, updateDepartment: N, removeDepartment: P } = e(), F = n(), [I, L] = s(null), R = A.reduce((e, t) => e + t.budget, 0), z = A.reduce((e, t) => e + t.employeeCount, 0), B = F.context;
|
|
58
|
+
return /* @__PURE__ */ g("div", {
|
|
9
59
|
className: "space-y-6 p-6",
|
|
10
60
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ g("div", {
|
|
12
62
|
className: "flex items-center justify-between",
|
|
13
|
-
children: [/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
63
|
+
children: [/* @__PURE__ */ g("div", { children: [
|
|
64
|
+
/* @__PURE__ */ h("h1", {
|
|
15
65
|
className: "text-2xl font-semibold",
|
|
16
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ h(T, { children: "Departments" })
|
|
17
67
|
}),
|
|
18
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ h("p", {
|
|
19
69
|
className: "text-sm text-text-secondary",
|
|
20
70
|
children: "Organizational structure and department management"
|
|
21
71
|
}),
|
|
22
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ h(E, {
|
|
23
73
|
className: "mt-1",
|
|
24
74
|
children: "Organize your company into departments — set up structure, assign heads, and see how headcount is distributed across the org."
|
|
25
75
|
})
|
|
26
|
-
] }), /* @__PURE__ */
|
|
76
|
+
] }), /* @__PURE__ */ g(v, {
|
|
27
77
|
size: "sm",
|
|
28
|
-
|
|
78
|
+
onClick: () => F.openModal(),
|
|
79
|
+
children: [/* @__PURE__ */ h(f, { className: "h-4 w-4 mr-1" }), "Add Department"]
|
|
29
80
|
})]
|
|
30
81
|
}),
|
|
31
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ g("div", {
|
|
32
83
|
className: "grid gap-4 md:grid-cols-3",
|
|
33
84
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ g(w, {
|
|
35
86
|
treatment: "glass",
|
|
36
87
|
glow: !0,
|
|
37
88
|
className: "border-border-seam",
|
|
38
|
-
children: [/* @__PURE__ */
|
|
89
|
+
children: [/* @__PURE__ */ g(S, {
|
|
39
90
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
40
|
-
children: [/* @__PURE__ */
|
|
91
|
+
children: [/* @__PURE__ */ h(C, {
|
|
41
92
|
className: "text-sm font-medium",
|
|
42
93
|
children: "Total Departments"
|
|
43
|
-
}), /* @__PURE__ */
|
|
44
|
-
}), /* @__PURE__ */
|
|
94
|
+
}), /* @__PURE__ */ h(c, { className: "h-4 w-4 text-text-secondary" })]
|
|
95
|
+
}), /* @__PURE__ */ h(b, { children: /* @__PURE__ */ h("div", {
|
|
45
96
|
className: "text-2xl font-bold tabular-nums",
|
|
46
|
-
children:
|
|
97
|
+
children: A.length
|
|
47
98
|
}) })]
|
|
48
99
|
}),
|
|
49
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ g(w, {
|
|
50
101
|
treatment: "metric",
|
|
51
102
|
className: "border-border-seam",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
103
|
+
children: [/* @__PURE__ */ g(S, {
|
|
53
104
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
54
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ h(C, {
|
|
55
106
|
className: "text-sm font-medium",
|
|
56
107
|
children: "Total Headcount"
|
|
57
|
-
}), /* @__PURE__ */
|
|
58
|
-
}), /* @__PURE__ */
|
|
108
|
+
}), /* @__PURE__ */ h(m, { className: "h-4 w-4 text-text-secondary" })]
|
|
109
|
+
}), /* @__PURE__ */ h(b, { children: /* @__PURE__ */ h("div", {
|
|
59
110
|
className: "text-2xl font-bold tabular-nums",
|
|
60
|
-
children:
|
|
111
|
+
children: z
|
|
61
112
|
}) })]
|
|
62
113
|
}),
|
|
63
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ g(w, {
|
|
64
115
|
treatment: "metric",
|
|
65
116
|
className: "border-border-seam",
|
|
66
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ g(S, {
|
|
67
118
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
68
|
-
children: [/* @__PURE__ */
|
|
119
|
+
children: [/* @__PURE__ */ h(C, {
|
|
69
120
|
className: "text-sm font-medium",
|
|
70
121
|
children: "Total Budget"
|
|
71
|
-
}), /* @__PURE__ */
|
|
72
|
-
}), /* @__PURE__ */
|
|
122
|
+
}), /* @__PURE__ */ h(l, { className: "h-4 w-4 text-text-secondary" })]
|
|
123
|
+
}), /* @__PURE__ */ h(b, { children: /* @__PURE__ */ g("div", {
|
|
73
124
|
className: "text-2xl font-bold tabular-nums",
|
|
74
125
|
children: [
|
|
75
126
|
"$",
|
|
76
|
-
(
|
|
127
|
+
(R / 1e6).toFixed(1),
|
|
77
128
|
"M"
|
|
78
129
|
]
|
|
79
130
|
}) })]
|
|
80
131
|
})
|
|
81
132
|
]
|
|
82
133
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ h("div", {
|
|
84
135
|
className: "grid gap-4 md:grid-cols-2",
|
|
85
|
-
children:
|
|
86
|
-
let t =
|
|
87
|
-
return /* @__PURE__ */
|
|
136
|
+
children: A.map((e) => {
|
|
137
|
+
let t = j.filter((t) => t.department === e.name), n = t.length > 0 ? Math.round(t.reduce((e, t) => e + t.salary, 0) / t.length) : 0, r = t.length > 0 ? (t.reduce((e, t) => e + t.performanceScore, 0) / t.length).toFixed(1) : "0";
|
|
138
|
+
return /* @__PURE__ */ g(y, { children: [/* @__PURE__ */ g(S, { children: [/* @__PURE__ */ g("div", {
|
|
88
139
|
className: "flex items-center justify-between",
|
|
89
|
-
children: [/* @__PURE__ */
|
|
140
|
+
children: [/* @__PURE__ */ h(C, {
|
|
90
141
|
className: "text-lg",
|
|
91
142
|
children: e.name
|
|
92
|
-
}), /* @__PURE__ */
|
|
93
|
-
|
|
94
|
-
children:
|
|
143
|
+
}), /* @__PURE__ */ g("div", {
|
|
144
|
+
className: "flex items-center gap-1",
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ h(_, {
|
|
147
|
+
variant: e.status === "active" ? "default" : "secondary",
|
|
148
|
+
children: e.status
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ h(v, {
|
|
151
|
+
variant: "ghost",
|
|
152
|
+
size: "sm",
|
|
153
|
+
className: "h-8 w-8 p-0",
|
|
154
|
+
"aria-label": `Edit ${e.name}`,
|
|
155
|
+
onClick: () => F.openModal(e),
|
|
156
|
+
children: /* @__PURE__ */ h(d, { className: "h-4 w-4" })
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ h(v, {
|
|
159
|
+
variant: "ghost",
|
|
160
|
+
size: "sm",
|
|
161
|
+
className: "h-8 w-8 p-0",
|
|
162
|
+
"aria-label": `Delete ${e.name}`,
|
|
163
|
+
onClick: () => L(e),
|
|
164
|
+
children: /* @__PURE__ */ h(p, { className: "h-4 w-4 text-status-error-text" })
|
|
165
|
+
})
|
|
166
|
+
]
|
|
95
167
|
})]
|
|
96
|
-
}), /* @__PURE__ */
|
|
168
|
+
}), /* @__PURE__ */ g(x, {
|
|
97
169
|
className: "flex items-center gap-1",
|
|
98
|
-
children: [/* @__PURE__ */
|
|
99
|
-
})] }), /* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ h(u, { className: "h-3 w-3" }), e.location]
|
|
171
|
+
})] }), /* @__PURE__ */ g(b, { children: [
|
|
172
|
+
/* @__PURE__ */ g("div", {
|
|
101
173
|
className: "grid grid-cols-2 gap-4 mb-4",
|
|
102
174
|
children: [
|
|
103
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
104
176
|
className: "text-xs text-text-secondary",
|
|
105
177
|
children: "Department Head"
|
|
106
|
-
}), /* @__PURE__ */
|
|
178
|
+
}), /* @__PURE__ */ h("p", {
|
|
107
179
|
className: "text-sm font-medium",
|
|
108
180
|
children: e.headName
|
|
109
181
|
})] }),
|
|
110
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
111
183
|
className: "text-xs text-text-secondary",
|
|
112
184
|
children: "Headcount"
|
|
113
|
-
}), /* @__PURE__ */
|
|
185
|
+
}), /* @__PURE__ */ g("p", {
|
|
114
186
|
className: "text-sm font-medium",
|
|
115
187
|
children: [e.employeeCount, " employees"]
|
|
116
188
|
})] }),
|
|
117
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
118
190
|
className: "text-xs text-text-secondary",
|
|
119
191
|
children: "Annual Budget"
|
|
120
|
-
}), /* @__PURE__ */
|
|
192
|
+
}), /* @__PURE__ */ g("p", {
|
|
121
193
|
className: "text-sm font-medium",
|
|
122
194
|
children: [
|
|
123
195
|
"$",
|
|
@@ -125,26 +197,26 @@ function y() {
|
|
|
125
197
|
"M"
|
|
126
198
|
]
|
|
127
199
|
})] }),
|
|
128
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
129
201
|
className: "text-xs text-text-secondary",
|
|
130
202
|
children: "Avg Salary"
|
|
131
|
-
}), /* @__PURE__ */
|
|
203
|
+
}), /* @__PURE__ */ g("p", {
|
|
132
204
|
className: "text-sm font-medium",
|
|
133
205
|
children: ["$", n.toLocaleString()]
|
|
134
206
|
})] })
|
|
135
207
|
]
|
|
136
208
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ h(D, { className: "mb-3" }),
|
|
210
|
+
/* @__PURE__ */ g("div", {
|
|
139
211
|
className: "flex items-center justify-between text-xs",
|
|
140
|
-
children: [/* @__PURE__ */
|
|
212
|
+
children: [/* @__PURE__ */ g("span", {
|
|
141
213
|
className: "text-text-secondary",
|
|
142
214
|
children: [
|
|
143
215
|
"Avg Performance: ",
|
|
144
|
-
|
|
216
|
+
r,
|
|
145
217
|
"/5"
|
|
146
218
|
]
|
|
147
|
-
}), /* @__PURE__ */
|
|
219
|
+
}), /* @__PURE__ */ g("span", {
|
|
148
220
|
className: "text-text-secondary",
|
|
149
221
|
children: [
|
|
150
222
|
"Cost/Head: $",
|
|
@@ -155,11 +227,46 @@ function y() {
|
|
|
155
227
|
})
|
|
156
228
|
] })] }, e.id);
|
|
157
229
|
})
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ h(t, {
|
|
232
|
+
open: F.open,
|
|
233
|
+
onOpenChange: F.onOpenChange,
|
|
234
|
+
title: B ? "Edit department" : "Add department",
|
|
235
|
+
description: B ? "Update this department’s details." : "Create a new department in your organization.",
|
|
236
|
+
fields: O,
|
|
237
|
+
initialValues: B ? k(B) : void 0,
|
|
238
|
+
submitLabel: B ? "Save changes" : "Add department",
|
|
239
|
+
onSubmit: async (e) => {
|
|
240
|
+
let t = {
|
|
241
|
+
id: B?.id ?? o(),
|
|
242
|
+
name: a(e, "name"),
|
|
243
|
+
headId: B?.headId ?? "",
|
|
244
|
+
headName: a(e, "headName"),
|
|
245
|
+
employeeCount: B?.employeeCount ?? 0,
|
|
246
|
+
budget: i(e, "budget"),
|
|
247
|
+
location: a(e, "location"),
|
|
248
|
+
status: a(e, "status")
|
|
249
|
+
};
|
|
250
|
+
B ? await N(B.id, t) : await M(t);
|
|
251
|
+
}
|
|
252
|
+
}),
|
|
253
|
+
/* @__PURE__ */ h(r, {
|
|
254
|
+
open: I !== null,
|
|
255
|
+
onOpenChange: (e) => {
|
|
256
|
+
e || L(null);
|
|
257
|
+
},
|
|
258
|
+
title: "Delete department?",
|
|
259
|
+
description: I ? `${I.name} will be removed. This cannot be undone.` : void 0,
|
|
260
|
+
confirmLabel: "Delete",
|
|
261
|
+
destructive: !0,
|
|
262
|
+
onConfirm: async () => {
|
|
263
|
+
I && (await P(I.id), L(null));
|
|
264
|
+
}
|
|
158
265
|
})
|
|
159
266
|
]
|
|
160
267
|
});
|
|
161
268
|
}
|
|
162
269
|
//#endregion
|
|
163
|
-
export {
|
|
270
|
+
export { A as HrDepartmentsPagePage };
|
|
164
271
|
|
|
165
272
|
//# sourceMappingURL=HrDepartmentsPagePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HrDepartmentsPagePage.js","names":[],"sources":["../../../src/crewfoundry/pages/HrDepartmentsPagePage.tsx"],"sourcesContent":["import {\n Badge,\n Button,\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n GlassCard,\n GradientText,\n PagePurpose,\n Separator,\n} from '@burdenoff/fe-libs/ui';\nimport { Building2, DollarSign, MapPin, Plus, Users } from 'lucide-react';\nimport { useCrewFoundryStore } from '../store/crewfoundryStore';\n\nexport function HrDepartmentsPagePage() {\n const { departments, employees } = useCrewFoundryStore();\n\n const totalBudget = departments.reduce((s, d) => s + d.budget, 0);\n const totalHeadcount = departments.reduce((s, d) => s + d.employeeCount, 0);\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">\n <GradientText>Departments</GradientText>\n </h1>\n <p className=\"text-sm text-text-secondary\">\n Organizational structure and department management\n </p>\n <PagePurpose className=\"mt-1\">Organize your company into departments — set up structure, assign heads, and see how headcount is distributed across the org.</PagePurpose>\n </div>\n <Button size=\"sm\">\n <Plus className=\"h-4 w-4 mr-1\" />\n Add Department\n </Button>\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-3\">\n <GlassCard treatment=\"glass\" glow className=\"border-border-seam\">\n <CardHeader className=\"flex flex-row items-center justify-between space-y-0 pb-2\">\n <CardTitle className=\"text-sm font-medium\">Total Departments</CardTitle>\n <Building2 className=\"h-4 w-4 text-text-secondary\" />\n </CardHeader>\n <CardContent>\n <div className=\"text-2xl font-bold tabular-nums\">{departments.length}</div>\n </CardContent>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"border-border-seam\">\n <CardHeader className=\"flex flex-row items-center justify-between space-y-0 pb-2\">\n <CardTitle className=\"text-sm font-medium\">Total Headcount</CardTitle>\n <Users className=\"h-4 w-4 text-text-secondary\" />\n </CardHeader>\n <CardContent>\n <div className=\"text-2xl font-bold tabular-nums\">{totalHeadcount}</div>\n </CardContent>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"border-border-seam\">\n <CardHeader className=\"flex flex-row items-center justify-between space-y-0 pb-2\">\n <CardTitle className=\"text-sm font-medium\">Total Budget</CardTitle>\n <DollarSign className=\"h-4 w-4 text-text-secondary\" />\n </CardHeader>\n <CardContent>\n <div className=\"text-2xl font-bold tabular-nums\">\n ${(totalBudget / 1000000).toFixed(1)}M\n </div>\n </CardContent>\n </GlassCard>\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-2\">\n {departments.map((dept) => {\n const deptEmps = employees.filter((e) => e.department === dept.name);\n const avgSalary =\n deptEmps.length > 0\n ? Math.round(deptEmps.reduce((s, e) => s + e.salary, 0) / deptEmps.length)\n : 0;\n const avgPerf =\n deptEmps.length > 0\n ? (deptEmps.reduce((s, e) => s + e.performanceScore, 0) / deptEmps.length).toFixed(1)\n : '0';\n\n return (\n <Card key={dept.id}>\n <CardHeader>\n <div className=\"flex items-center justify-between\">\n <CardTitle className=\"text-lg\">{dept.name}</CardTitle>\n <Badge variant={dept.status === 'active' ? 'default' : 'secondary'}>\n {dept.status}\n </Badge>\n </div>\n <CardDescription className=\"flex items-center gap-1\">\n <MapPin className=\"h-3 w-3\" />\n {dept.location}\n </CardDescription>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-2 gap-4 mb-4\">\n <div>\n <p className=\"text-xs text-text-secondary\">Department Head</p>\n <p className=\"text-sm font-medium\">{dept.headName}</p>\n </div>\n <div>\n <p className=\"text-xs text-text-secondary\">Headcount</p>\n <p className=\"text-sm font-medium\">{dept.employeeCount} employees</p>\n </div>\n <div>\n <p className=\"text-xs text-text-secondary\">Annual Budget</p>\n <p className=\"text-sm font-medium\">${(dept.budget / 1000000).toFixed(1)}M</p>\n </div>\n <div>\n <p className=\"text-xs text-text-secondary\">Avg Salary</p>\n <p className=\"text-sm font-medium\">${avgSalary.toLocaleString()}</p>\n </div>\n </div>\n <Separator className=\"mb-3\" />\n <div className=\"flex items-center justify-between text-xs\">\n <span className=\"text-text-secondary\">Avg Performance: {avgPerf}/5</span>\n <span className=\"text-text-secondary\">\n Cost/Head: ${Math.round(dept.budget / dept.employeeCount / 1000)}K\n </span>\n </div>\n </CardContent>\n </Card>\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;AAgBA,SAAgB,IAAwB;CACtC,IAAM,EAAE,gBAAa,iBAAc,GAAqB,EAElD,IAAc,EAAY,QAAQ,GAAG,MAAM,IAAI,EAAE,QAAQ,EAAE,EAC3D,IAAiB,EAAY,QAAQ,GAAG,MAAM,IAAI,EAAE,eAAe,EAAE;AAE3E,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,OAAD,EAAA,UAAA;KACE,kBAAC,MAAD;MAAI,WAAU;gBACZ,kBAAC,GAAD,EAAA,UAAc,eAA0B,CAAA;MACrC,CAAA;KACL,kBAAC,KAAD;MAAG,WAAU;gBAA8B;MAEvC,CAAA;KACJ,kBAAC,GAAD;MAAa,WAAU;gBAAO;MAA2I,CAAA;KACrK,EAAA,CAAA,EACN,kBAAC,GAAD;KAAQ,MAAK;eAAb,CACE,kBAAC,GAAD,EAAM,WAAU,gBAAiB,CAAA,EAAA,iBAE1B;OACL;;GAEN,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,GAAD;MAAW,WAAU;MAAQ,MAAA;MAAK,WAAU;gBAA5C,CACE,kBAAC,GAAD;OAAY,WAAU;iBAAtB,CACE,kBAAC,GAAD;QAA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AAhB;SAAsC;SACvB,KAAK,MAAM,EAAK,SAAS,EAAK,gBAAgB,IAAK;SAAC;SAC5D;UACH;;MACM,EAAA,CAAA,CACT,EAAA,EAxCI,EAAK,GAwCT;MAET;IACE,CAAA;GACF"}
|
|
1
|
+
{"version":3,"file":"HrDepartmentsPagePage.js","names":[],"sources":["../../../src/crewfoundry/pages/HrDepartmentsPagePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport {\n Badge,\n Button,\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n GlassCard,\n GradientText,\n PagePurpose,\n Separator,\n} from '@burdenoff/fe-libs/ui';\nimport { Building2, DollarSign, MapPin, Pencil, Plus, Trash2, Users } from 'lucide-react';\nimport { useCrewFoundryStore, type Department } from '../store/crewfoundryStore';\nimport { FormModal, useFormModal, type FieldConfig, type FormValues } from '../components/forms/FormModal';\nimport { ConfirmDialog } from '../components/forms/ConfirmDialog';\nimport { getNumber, getText, newClientId } from '../components/forms/formValues';\n\nconst DEPARTMENT_FIELDS: FieldConfig[] = [\n { name: 'name', label: 'Department name', type: 'text', required: true, colSpan: 2 },\n { name: 'headName', label: 'Department head', type: 'text', required: true },\n { name: 'location', label: 'Location', type: 'text', required: true },\n { name: 'budget', label: 'Annual budget', type: 'number', required: true },\n {\n name: 'status',\n label: 'Status',\n type: 'select',\n required: true,\n options: [\n { label: 'Active', value: 'active' },\n { label: 'Restructuring', value: 'restructuring' },\n ],\n },\n];\n\nconst toFormValues = (department: Department): FormValues => ({\n name: department.name,\n headName: department.headName,\n location: department.location,\n budget: department.budget,\n status: department.status,\n});\n\nexport function HrDepartmentsPagePage() {\n const { departments, employees, addDepartment, updateDepartment, removeDepartment } =\n useCrewFoundryStore();\n const form = useFormModal<Department>();\n const [deleting, setDeleting] = useState<Department | null>(null);\n\n const totalBudget = departments.reduce((s, d) => s + d.budget, 0);\n const totalHeadcount = departments.reduce((s, d) => s + d.employeeCount, 0);\n\n const editing = form.context;\n\n const handleSubmit = async (values: FormValues) => {\n const payload: Department = {\n id: editing?.id ?? newClientId(),\n name: getText(values, 'name'),\n headId: editing?.headId ?? '',\n headName: getText(values, 'headName'),\n employeeCount: editing?.employeeCount ?? 0,\n budget: getNumber(values, 'budget'),\n location: getText(values, 'location'),\n status: getText(values, 'status') as Department['status'],\n };\n if (editing) {\n await updateDepartment(editing.id, payload);\n } else {\n await addDepartment(payload);\n }\n };\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">\n <GradientText>Departments</GradientText>\n </h1>\n <p className=\"text-sm text-text-secondary\">\n Organizational structure and department management\n </p>\n <PagePurpose className=\"mt-1\">Organize your company into departments — set up structure, assign heads, and see how headcount is distributed across the org.</PagePurpose>\n </div>\n <Button size=\"sm\" onClick={() => form.openModal()}>\n <Plus className=\"h-4 w-4 mr-1\" />\n Add Department\n </Button>\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-3\">\n <GlassCard treatment=\"glass\" glow className=\"border-border-seam\">\n <CardHeader className=\"flex flex-row items-center justify-between space-y-0 pb-2\">\n <CardTitle className=\"text-sm font-medium\">Total Departments</CardTitle>\n <Building2 className=\"h-4 w-4 text-text-secondary\" />\n </CardHeader>\n <CardContent>\n <div className=\"text-2xl font-bold tabular-nums\">{departments.length}</div>\n </CardContent>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"border-border-seam\">\n <CardHeader className=\"flex flex-row items-center justify-between space-y-0 pb-2\">\n <CardTitle className=\"text-sm font-medium\">Total Headcount</CardTitle>\n <Users className=\"h-4 w-4 text-text-secondary\" />\n </CardHeader>\n <CardContent>\n <div className=\"text-2xl font-bold tabular-nums\">{totalHeadcount}</div>\n </CardContent>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"border-border-seam\">\n <CardHeader className=\"flex flex-row items-center justify-between space-y-0 pb-2\">\n <CardTitle className=\"text-sm font-medium\">Total Budget</CardTitle>\n <DollarSign className=\"h-4 w-4 text-text-secondary\" />\n </CardHeader>\n <CardContent>\n <div className=\"text-2xl font-bold tabular-nums\">\n ${(totalBudget / 1000000).toFixed(1)}M\n </div>\n </CardContent>\n </GlassCard>\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-2\">\n {departments.map((dept) => {\n const deptEmps = employees.filter((e) => e.department === dept.name);\n const avgSalary =\n deptEmps.length > 0\n ? Math.round(deptEmps.reduce((s, e) => s + e.salary, 0) / deptEmps.length)\n : 0;\n const avgPerf =\n deptEmps.length > 0\n ? (deptEmps.reduce((s, e) => s + e.performanceScore, 0) / deptEmps.length).toFixed(1)\n : '0';\n\n return (\n <Card key={dept.id}>\n <CardHeader>\n <div className=\"flex items-center justify-between\">\n <CardTitle className=\"text-lg\">{dept.name}</CardTitle>\n <div className=\"flex items-center gap-1\">\n <Badge variant={dept.status === 'active' ? 'default' : 'secondary'}>\n {dept.status}\n </Badge>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-8 w-8 p-0\"\n aria-label={`Edit ${dept.name}`}\n onClick={() => form.openModal(dept)}\n >\n <Pencil className=\"h-4 w-4\" />\n </Button>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-8 w-8 p-0\"\n aria-label={`Delete ${dept.name}`}\n onClick={() => setDeleting(dept)}\n >\n <Trash2 className=\"h-4 w-4 text-status-error-text\" />\n </Button>\n </div>\n </div>\n <CardDescription className=\"flex items-center gap-1\">\n <MapPin className=\"h-3 w-3\" />\n {dept.location}\n </CardDescription>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-2 gap-4 mb-4\">\n <div>\n <p className=\"text-xs text-text-secondary\">Department Head</p>\n <p className=\"text-sm font-medium\">{dept.headName}</p>\n </div>\n <div>\n <p className=\"text-xs text-text-secondary\">Headcount</p>\n <p className=\"text-sm font-medium\">{dept.employeeCount} employees</p>\n </div>\n <div>\n <p className=\"text-xs text-text-secondary\">Annual Budget</p>\n <p className=\"text-sm font-medium\">${(dept.budget / 1000000).toFixed(1)}M</p>\n </div>\n <div>\n <p className=\"text-xs text-text-secondary\">Avg Salary</p>\n <p className=\"text-sm font-medium\">${avgSalary.toLocaleString()}</p>\n </div>\n </div>\n <Separator className=\"mb-3\" />\n <div className=\"flex items-center justify-between text-xs\">\n <span className=\"text-text-secondary\">Avg Performance: {avgPerf}/5</span>\n <span className=\"text-text-secondary\">\n Cost/Head: ${Math.round(dept.budget / dept.employeeCount / 1000)}K\n </span>\n </div>\n </CardContent>\n </Card>\n );\n })}\n </div>\n\n <FormModal\n open={form.open}\n onOpenChange={form.onOpenChange}\n title={editing ? 'Edit department' : 'Add department'}\n description={\n editing\n ? 'Update this department’s details.'\n : 'Create a new department in your organization.'\n }\n fields={DEPARTMENT_FIELDS}\n initialValues={editing ? toFormValues(editing) : undefined}\n submitLabel={editing ? 'Save changes' : 'Add department'}\n onSubmit={handleSubmit}\n />\n\n <ConfirmDialog\n open={deleting !== null}\n onOpenChange={(open) => {\n if (!open) {\n setDeleting(null);\n }\n }}\n title=\"Delete department?\"\n description={\n deleting\n ? `${deleting.name} will be removed. This cannot be undone.`\n : undefined\n }\n confirmLabel=\"Delete\"\n destructive\n onConfirm={async () => {\n if (deleting) {\n await removeDepartment(deleting.id);\n setDeleting(null);\n }\n }}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAoBA,IAAM,IAAmC;CACvC;EAAE,MAAM;EAAQ,OAAO;EAAmB,MAAM;EAAQ,UAAU;EAAM,SAAS;EAAG;CACpF;EAAE,MAAM;EAAY,OAAO;EAAmB,MAAM;EAAQ,UAAU;EAAM;CAC5E;EAAE,MAAM;EAAY,OAAO;EAAY,MAAM;EAAQ,UAAU;EAAM;CACrE;EAAE,MAAM;EAAU,OAAO;EAAiB,MAAM;EAAU,UAAU;EAAM;CAC1E;EACE,MAAM;EACN,OAAO;EACP,MAAM;EACN,UAAU;EACV,SAAS,CACP;GAAE,OAAO;GAAU,OAAO;GAAU,EACpC;GAAE,OAAO;GAAiB,OAAO;GAAiB,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