Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

feat: Rename labels for clarity in admin, questions, automations

Khuram Niaz0fa14164d408
diff --git a/src/app/api/mcp/route.ts b/src/app/api/mcp/route.ts
index ff6c5fa..9edc4fa 100644
--- a/src/app/api/mcp/route.ts
+++ b/src/app/api/mcp/route.ts
@@ -41,12 +41,23 @@ async function handler(req: Request): Promise<Response> {
McpAddJobInputShape,
async (rawInput) => {
if (!auth.scopes.includes("jobs:write")) {
- return { content: [{ type: "text" as const, text: "Insufficient scope. Required: jobs:write" }] };
+ return {
+ content: [
+ {
+ type: "text" as const,
+ text: "Insufficient scope. Required: jobs:write",
+ },
+ ],
+ };
}
const parsed = McpAddJobSchema.safeParse(rawInput);
if (!parsed.success) {
const issues = parsed.error.issues.map((i) => i.message).join("; ");
- return { content: [{ type: "text" as const, text: `Validation error: ${issues}` }] };
+ return {
+ content: [
+ { type: "text" as const, text: `Validation error: ${issues}` },
+ ],
+ };
}
return handleAddJob(parsed.data, userId, tokenName);
},
@@ -58,12 +69,23 @@ async function handler(req: Request): Promise<Response> {
McpAddQuestionInputShape,
async (rawInput) => {
if (!auth.scopes.includes("questions:write")) {
- return { content: [{ type: "text" as const, text: "Insufficient scope. Required: questions:write" }] };
+ return {
+ content: [
+ {
+ type: "text" as const,
+ text: "Insufficient scope. Required: questions:write",
+ },
+ ],
+ };
}
const parsed = McpAddQuestionSchema.safeParse(rawInput);
if (!parsed.success) {
const issues = parsed.error.issues.map((i) => i.message).join("; ");
- return { content: [{ type: "text" as const, text: `Validation error: ${issues}` }] };
+ return {
+ content: [
+ { type: "text" as const, text: `Validation error: ${issues}` },
+ ],
+ };
}
return handleAddQuestion(parsed.data, userId, tokenName);
},
@@ -71,7 +93,7 @@ async function handler(req: Request): Promise<Response> {
const transport = new WebStandardStreamableHTTPServerTransport({
sessionIdGenerator: undefined, // stateless mode
- enableJsonResponse: true, // return plain JSON instead of SSE stream
+ enableJsonResponse: true, // return plain JSON instead of SSE stream
});
await server.connect(transport);
diff --git a/src/app/dashboard/admin/page.tsx b/src/app/dashboard/admin/page.tsx
index 0cf9bef..29ff7db 100644
--- a/src/app/dashboard/admin/page.tsx
+++ b/src/app/dashboard/admin/page.tsx
@@ -4,7 +4,7 @@ async function AdminPage() {
return (
<div className="flex flex-col col-span-3">
<h3 className="text-2xl font-semibold leading-none tracking-tight mb-4">
- Administration
+ Library
</h3>
<AdminTabsContainer />
</div>
diff --git a/src/components/automations/AutomationContainer.tsx b/src/components/automations/AutomationContainer.tsx
index bcfe4c7..57cbd4a 100644
--- a/src/components/automations/AutomationContainer.tsx
+++ b/src/components/automations/AutomationContainer.tsx
@@ -67,7 +67,7 @@ export function AutomationContainer({ resumes }: AutomationContainerProps) {
<>
<Card>
<CardHeader className="flex flex-row items-center justify-between">
- <CardTitle>Job Discovery Automations</CardTitle>
+ <CardTitle>Automations</CardTitle>
<div className="flex gap-2">
<Button variant="outline" size="icon" onClick={loadAutomations}>
<RefreshCw className="h-4 w-4" />
diff --git a/src/components/questions/QuestionsContainer.tsx b/src/components/questions/QuestionsContainer.tsx
index a79cf0c..1046bd3 100644
--- a/src/components/questions/QuestionsContainer.tsx
+++ b/src/components/questions/QuestionsContainer.tsx
@@ -51,11 +51,11 @@ function QuestionsContainer({
pageNum,
APP_CONSTANTS.RECORDS_PER_PAGE,
filter,
- search
+ search,
);
if (result?.success && result.data) {
setQuestions((prev) =>
- pageNum === 1 ? result.data : [...prev, ...result.data]
+ pageNum === 1 ? result.data : [...prev, ...result.data],
);
setTotalQuestions(result.total);
setPage(pageNum);
@@ -68,7 +68,7 @@ function QuestionsContainer({
}
setLoading(false);
},
- []
+ [],
);
const reloadQuestions = useCallback(async () => {
@@ -136,9 +136,13 @@ function QuestionsContainer({
<Card className="h-full">
<CardHeader className="flex-row justify-between items-center">
<div className="flex items-baseline gap-2">
- <CardTitle>Question Bank</CardTitle>
+ <CardTitle>Questions</CardTitle>
{!loading && totalQuestions > 0 && (
- <RecordsCount count={questions.length} total={totalQuestions} label="questions" />
+ <RecordsCount
+ count={questions.length}
+ total={totalQuestions}
+ label="questions"
+ />
)}
</div>
<div className="flex items-center">
@@ -184,11 +188,7 @@ function QuestionsContainer({
size="sm"
variant="outline"
onClick={() =>
- loadQuestions(
- page + 1,
- filterKey,
- searchTerm || undefined
- )
+ loadQuestions(page + 1, filterKey, searchTerm || undefined)
}
disabled={loading}
>
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index bfed7ea..80d35f5 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -165,7 +165,7 @@ export const SIDEBAR_LINKS = [
{
icon: BookOpen,
route: "/dashboard/questions",
- label: "Question Bank",
+ label: "Questions",
},
{
icon: UserRound,
@@ -175,7 +175,7 @@ export const SIDEBAR_LINKS = [
{
icon: Sheet,
route: "/dashboard/admin",
- label: "Administration",
+ label: "Library",
},
{
icon: Wrench,