Add UGC Content Creator to AdminShell; fix dashboard preview bugs
- AdminShell: add PAGE_TITLES and ROUTE_MODULE_KEYS entries for /admin/ugc-content-creators with UGC_CONTENT_CREATOR_MANAGEMENT keys - DashboardDesignPreview: fix portfolioMediaConfig to include DEVELOPER and FITNESS_TRAINER as visual portfolio roles - DashboardDesignPreview: add missing customerViewFor handlers for 'applications', 'shortlisted candidates', 'my applications', 'saved jobs' - external-dashboard-management: add 'Settings' to CUSTOMER sidebar array - Fix launch.json PATH so npm is found in sh shell Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8855b8b378
commit
ab658d826b
5 changed files with 16 additions and 3 deletions
|
|
@ -3,9 +3,9 @@
|
|||
"configurations": [
|
||||
{
|
||||
"name": "admin-solid",
|
||||
"runtimeExecutable": "/Users/ashwin/.bun/bin/bun",
|
||||
"runtimeArgs": ["run", "dev"],
|
||||
"port": 3000
|
||||
"runtimeExecutable": "/usr/local/bin/node",
|
||||
"runtimeArgs": ["/Users/ashwin/workspace/nxtgauge-admin-solid/node_modules/.bin/vinxi", "dev"],
|
||||
"port": 3001
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
4
.claude/start-dev.sh
Executable file
4
.claude/start-dev.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
export PATH="/usr/local/bin:$PATH"
|
||||
cd /Users/ashwin/workspace/nxtgauge-admin-solid
|
||||
npm run dev
|
||||
|
|
@ -41,6 +41,7 @@ const PAGE_TITLES: Array<{ prefix: string; label: string; exact?: boolean }> = [
|
|||
{ prefix: '/admin/video-editors', label: 'Video Editor Management' },
|
||||
{ prefix: '/admin/fitness-trainers', label: 'Fitness Trainer Management' },
|
||||
{ prefix: '/admin/catering-services', label: 'Catering Services Management' },
|
||||
{ prefix: '/admin/ugc-content-creators', label: 'UGC Content Creator Management' },
|
||||
{ prefix: '/admin/graphic-designers', label: 'Graphic Designer Management' },
|
||||
{ prefix: '/admin/social-media-managers', label: 'Social Media Manager Management' },
|
||||
{ prefix: '/admin/jobs', label: 'Jobs Management' },
|
||||
|
|
@ -93,6 +94,7 @@ const ROUTE_MODULE_KEYS: Array<{ prefix: string; keys: string[] }> = [
|
|||
{ prefix: '/admin/video-editors', keys: ['VIDEO_EDITOR_MANAGEMENT', 'VIDEO_EDITORS'] },
|
||||
{ prefix: '/admin/fitness-trainers', keys: ['FITNESS_TRAINER_MANAGEMENT', 'FITNESS_TRAINERS'] },
|
||||
{ prefix: '/admin/catering-services', keys: ['CATERING_SERVICES_MANAGEMENT', 'CATERING_SERVICES'] },
|
||||
{ prefix: '/admin/ugc-content-creators', keys: ['UGC_CONTENT_CREATOR_MANAGEMENT', 'UGC_CONTENT_CREATOR'] },
|
||||
{ prefix: '/admin/graphic-designers', keys: ['GRAPHIC_DESIGNER_MANAGEMENT', 'GRAPHIC_DESIGNERS'] },
|
||||
{ prefix: '/admin/social-media-managers', keys: ['SOCIAL_MEDIA_MANAGEMENT', 'SOCIAL_MEDIA_MANAGER_MANAGEMENT', 'SOCIAL_MEDIA_MANAGERS'] },
|
||||
{ prefix: '/admin/jobs', keys: ['JOBS_MANAGEMENT', 'JOBS'] },
|
||||
|
|
|
|||
|
|
@ -539,6 +539,8 @@ function portfolioMediaConfig(roleKey: string): {
|
|||
|| normalized === 'GRAPHIC_DESIGNER'
|
||||
|| normalized === 'SOCIAL_MEDIA_MANAGER'
|
||||
|| normalized === 'CATERING_SERVICES'
|
||||
|| normalized === 'DEVELOPER'
|
||||
|| normalized === 'FITNESS_TRAINER'
|
||||
) {
|
||||
return {
|
||||
mode: 'visual',
|
||||
|
|
@ -576,6 +578,10 @@ function customerViewFor(sidebar: string, roleKey: string): CustomerView {
|
|||
return { title: 'Received Professional Responses', subtitle: 'Review and manage professional applications for active requirements.', tabs: ['all responses', 'new', 'shortlisted', 'rejected'] };
|
||||
}
|
||||
if (key === 'shortlisted responses') return { title: 'Shortlisted Responses', subtitle: 'Focus on high-intent responses and convert them to confirmed engagements.', tabs: ['all shortlisted', 'interview scheduled', 'finalized'] };
|
||||
if (key === 'applications') return { title: 'Applications', subtitle: 'Review all candidate applications received for your active job postings.', tabs: ['all applications', 'shortlisted', 'under review', 'rejected'], cta: 'View Job Postings' };
|
||||
if (key === 'shortlisted candidates') return { title: 'Shortlisted Candidates', subtitle: 'Manage candidates you have shortlisted across all job postings.', tabs: ['shortlisted', 'interview scheduled', 'offer extended'] };
|
||||
if (key === 'my applications') return { title: 'My Applications', subtitle: 'Track the status of all jobs you have applied to.', tabs: ['all', 'under review', 'shortlisted', 'rejected'], cta: 'Browse Jobs' };
|
||||
if (key === 'saved jobs') return { title: 'Saved Jobs', subtitle: 'Jobs you have bookmarked. Apply before they expire.', tabs: ['saved', 'expiring soon'], cta: 'Browse Jobs' };
|
||||
if (key.includes('profile')) {
|
||||
const spec = profileSpecForRole(roleKey);
|
||||
return { title: spec.title, subtitle: spec.subtitle, tabs: spec.tabs, cta: 'Save Changes' };
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ const ROLE_BASED_SIDEBAR: Record<'PROFESSIONAL' | 'COMPANY' | 'JOB_SEEKER' | 'CU
|
|||
'Explore Nxtgauge',
|
||||
'Verification',
|
||||
'Help Center',
|
||||
'Settings',
|
||||
'Switch Services',
|
||||
'Logout',
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue