Update Owliver language and suggestions
This commit is contained in:
@@ -12,6 +12,7 @@ import { composePage } from '@/lib/ui/composition';
|
||||
import { DAY, RANGES, formatDate } from '@/pages/admin/hired-history/nodes';
|
||||
import '@/components/ui-tree/nodeTypes';
|
||||
import '@/pages/admin/hired-history/nodes';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
/**
|
||||
* Admin Hired History — the record of who was hired.
|
||||
@@ -44,6 +45,7 @@ function Fact({ label, children }) {
|
||||
|
||||
/** The full record for one hire — the page's own detail view. */
|
||||
function HireDetail({ hire, onClose }) {
|
||||
const { t } = useTranslation();
|
||||
if (!hire) return null;
|
||||
|
||||
return (
|
||||
@@ -68,15 +70,15 @@ function HireDetail({ hire, onClose }) {
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<SectionTitle title="The hire" />
|
||||
<SectionTitle title={t('hiredHistory.theHire')} />
|
||||
<Surface variant="solid" radius="lg" padding="none" elevation="xs" className="mt-2 border border-border">
|
||||
<Fact label="Position">{hire.role}</Fact>
|
||||
<Fact label="Client">{hire.company}</Fact>
|
||||
<Fact label="Department">{hire.department}</Fact>
|
||||
<Fact label="Hired">{formatDate(hire.hire_date)}</Fact>
|
||||
<Fact label="Time to hire">{hire.timeToHire ? `${hire.timeToHire} days` : null}</Fact>
|
||||
<Fact label="AI score">{hire.score}</Fact>
|
||||
<Fact label="Client review">
|
||||
<Fact label={t('hiredHistory.position')}>{hire.role}</Fact>
|
||||
<Fact label={t('hiredHistory.client')}>{hire.company}</Fact>
|
||||
<Fact label={t('hiredHistory.department')}>{hire.department}</Fact>
|
||||
<Fact label={t('hiredHistory.hired')}>{formatDate(hire.hire_date)}</Fact>
|
||||
<Fact label={t('hiredHistory.timeToHire')}>{hire.timeToHire ? `${hire.timeToHire} days` : null}</Fact>
|
||||
<Fact label={t('hiredHistory.aiScore')}>{hire.score}</Fact>
|
||||
<Fact label={t('hiredHistory.clientReview')}>
|
||||
{hire.client_rating ? `${hire.client_rating} / 5` : 'Not reviewed yet'}
|
||||
</Fact>
|
||||
</Surface>
|
||||
@@ -84,7 +86,7 @@ function HireDetail({ hire, onClose }) {
|
||||
|
||||
{(hire.email || hire.phone) && (
|
||||
<section>
|
||||
<SectionTitle title="Contact" />
|
||||
<SectionTitle title={t('hiredHistory.contact')} />
|
||||
<Surface variant="solid" radius="lg" padding="lg" elevation="xs" className="mt-2 space-y-2 border border-border">
|
||||
{hire.email && (
|
||||
<a
|
||||
@@ -117,6 +119,7 @@ function HireDetail({ hire, onClose }) {
|
||||
}
|
||||
|
||||
export default function AdminHiredHistory() {
|
||||
const { t } = useTranslation();
|
||||
const { data: staff = [], isLoading } = useStaff();
|
||||
const { data: applications = [] } = useApplications();
|
||||
const { data: postings = [] } = useJobPostings();
|
||||
@@ -183,8 +186,8 @@ export default function AdminHiredHistory() {
|
||||
|
||||
return (
|
||||
<AdminPage
|
||||
title="Hired History"
|
||||
subtitle="Who was hired, for which position, and what has happened since."
|
||||
title={t('hiredHistory.hiredHistory')}
|
||||
subtitle={t('hiredHistory.whoWasHiredForWhichPosition')}
|
||||
meta={`${hires.length} on record`}
|
||||
>
|
||||
<UiEditor />
|
||||
|
||||
Reference in New Issue
Block a user