UI styling improvements: dashboard headers and navigation
- Restore blue PageHeader on Dashboard (/app-components) - Update homepage (/) with subtle header design without blue bar - Add uniform PageHeader styling to application edit page - Fix Rapporten link on homepage to point to /reports overview - Improve header descriptions spacing for better readability
This commit is contained in:
38
backend/scripts/discover-schema.ts
Normal file
38
backend/scripts/discover-schema.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env npx tsx
|
||||
|
||||
/**
|
||||
* Schema Discovery CLI
|
||||
*
|
||||
* Manually trigger schema discovery from Jira Assets API.
|
||||
* This script fetches the schema and stores it in the database.
|
||||
*
|
||||
* Usage: npm run discover-schema
|
||||
*/
|
||||
|
||||
import { schemaDiscoveryService } from '../src/services/schemaDiscoveryService.js';
|
||||
import { schemaCacheService } from '../src/services/schemaCacheService.js';
|
||||
import { logger } from '../src/services/logger.js';
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
console.log('Starting schema discovery...');
|
||||
logger.info('Schema Discovery CLI: Starting manual schema discovery');
|
||||
|
||||
// Force discovery (ignore cache)
|
||||
await schemaDiscoveryService.discoverAndStoreSchema(true);
|
||||
|
||||
// Invalidate cache so next request gets fresh data
|
||||
schemaCacheService.invalidate();
|
||||
|
||||
console.log('✅ Schema discovery completed successfully!');
|
||||
logger.info('Schema Discovery CLI: Schema discovery completed successfully');
|
||||
|
||||
process.exit(0);
|
||||
} catch (error) {
|
||||
console.error('❌ Schema discovery failed:', error);
|
||||
logger.error('Schema Discovery CLI: Schema discovery failed', error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user