Add shared writing style preferences (#240)
* Add shared writing style preferences * Address PR review feedback * Add scoring instructions settings * Polish writing style inputs * Clarify do-not-use terms guidance * Normalize blank writing style overrides * Refactor writing style resolution to use effective values and enhance blank value handling
This commit is contained in:
@@ -200,6 +200,14 @@ export const settingsRegistry = {
|
||||
parse: parseJsonArrayOrNull,
|
||||
serialize: serializeNullableJsonArray,
|
||||
},
|
||||
scoringInstructions: {
|
||||
kind: "typed" as const,
|
||||
schema: z.string().trim().max(4000),
|
||||
default: (): string => "",
|
||||
parse: parseNonEmptyStringOrNull,
|
||||
serialize: (value: string | null | undefined): string | null =>
|
||||
value ?? null,
|
||||
},
|
||||
searchCities: {
|
||||
kind: "typed" as const,
|
||||
schema: z.string().trim().max(100),
|
||||
|
||||
@@ -163,6 +163,11 @@ export const createAppSettings = (
|
||||
default: [],
|
||||
override: null,
|
||||
},
|
||||
scoringInstructions: {
|
||||
value: "",
|
||||
default: "",
|
||||
override: null,
|
||||
},
|
||||
searchCities: {
|
||||
value: "United Kingdom",
|
||||
default: "United Kingdom",
|
||||
|
||||
@@ -126,6 +126,7 @@ export interface AppSettings {
|
||||
gradcrackerMaxJobsPerTerm: Resolved<number>;
|
||||
searchTerms: Resolved<string[]>;
|
||||
blockedCompanyKeywords: Resolved<string[]>;
|
||||
scoringInstructions: Resolved<string>;
|
||||
searchCities: Resolved<string>;
|
||||
jobspyResultsWanted: Resolved<number>;
|
||||
jobspyCountryIndeed: Resolved<string>;
|
||||
|
||||
Reference in New Issue
Block a user