chore: clean up and restructure repository
This commit is contained in:
@@ -15,7 +15,7 @@ import { toFICO } from '@/lib/talentHome';
|
||||
/* The vetting criteria's own labels. Read from the position model rather than
|
||||
restated here, so the panel calls a weight what the form calls it. */
|
||||
import { CRITERIA_LABELS } from '@/lib/positionModel';
|
||||
import { PERMISSIONS, PROFILE_ACTIONS } from '@/pages/admin/permissions';
|
||||
import { PERMISSIONS, PROFILE_ACTIONS } from '@/lib/admin/permissions';
|
||||
|
||||
/**
|
||||
* Admin capabilities — Control Center, Candidates Analysis, Activity.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { plural, verb } from './insights';
|
||||
import { prioritise, workforceStatusFor } from '@/lib/workforce';
|
||||
import { PERMISSIONS } from '@/pages/admin/permissions';
|
||||
import { PERMISSIONS } from '@/lib/admin/permissions';
|
||||
|
||||
/**
|
||||
* Dynamic greetings and suggested prompts.
|
||||
|
||||
@@ -162,7 +162,7 @@ function normalizeDraftChip(chip) {
|
||||
/* "Continue the Bartender draft", however it was stored: the label is the
|
||||
question, and no capability or route may intercept it. */
|
||||
if (CONTINUE_DRAFT.test(label) || CONTINUE_DRAFT.test(prompt)) {
|
||||
const { capability, route, ...rest } = chip;
|
||||
const { capability: _capability, route: _route, ...rest } = chip;
|
||||
return { ...rest, prompt: CONTINUE_DRAFT.test(label) ? label : prompt };
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ function normalizeDraftChip(chip) {
|
||||
and told the reader to open the form. The same words now resolve to the
|
||||
draft flow, which continues one or offers the several by name. */
|
||||
if (OLD_DRAFTS_PROMPT.test(prompt) || chip.capability === 'position-drafts') {
|
||||
const { capability, route, ...rest } = chip;
|
||||
const { capability: _capability, route: _route, ...rest } = chip;
|
||||
return { ...rest, prompt: prompt || 'Which positions are still in draft?' };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user