feat: Milestone 2 Task 1 - Content Factory Kanban Board
- Backend: Updated 'generated_articles' schema with Kanban status (Queued -> Published) and CRM fields - Backend: Fixed Directus Preview URL to point to valid Astro frontend - Frontend: Implemented full Kanban Board with Drag & Drop (@dnd-kit) - Frontend: Created Article Cards with priority, assignee, and status indicators - Frontend: Added /admin/factory/kanban page
This commit is contained in:
24
backend/scripts/check_status.ts
Normal file
24
backend/scripts/check_status.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { createDirectus, rest, authentication, readField } from '@directus/sdk';
|
||||
import * as dotenv from 'dotenv';
|
||||
import * as path from 'path';
|
||||
|
||||
dotenv.config({ path: path.resolve(__dirname, '../credentials.env') });
|
||||
|
||||
const DIRECTUS_URL = process.env.DIRECTUS_PUBLIC_URL || 'https://spark.jumpstartscaling.com';
|
||||
const EMAIL = process.env.DIRECTUS_ADMIN_EMAIL;
|
||||
const PASSWORD = process.env.DIRECTUS_ADMIN_PASSWORD;
|
||||
|
||||
const client = createDirectus(DIRECTUS_URL).with(authentication()).with(rest());
|
||||
|
||||
async function checkStatusField() {
|
||||
await client.login(EMAIL!, PASSWORD!);
|
||||
|
||||
try {
|
||||
const field = await client.request(readField('generated_articles', 'status'));
|
||||
console.log('Status Field Choices:', JSON.stringify(field.meta?.options?.choices, null, 2));
|
||||
} catch (e: any) {
|
||||
console.error('Error reading status field:', e.message);
|
||||
}
|
||||
}
|
||||
|
||||
checkStatusField();
|
||||
Reference in New Issue
Block a user