feat: use modals for creation across all pages + fix profile prompt
All checks were successful
Deploy / deploy (push) Successful in 11s
All checks were successful
Deploy / deploy (push) Successful in 11s
- Campaigns: add create modal (name, brand, team, dates, budget) - PostProduction: add create modal (title, brand, campaign, assignee), auto-opens detail panel after creation - Tasks: add create modal (title, project, priority, assignee), auto-opens detail panel after creation - Fix profileComplete check: use !!user.name instead of !!user.team_role in /api/auth/me (was always showing profile prompt since team_role is now deprecated in favor of role_id) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -748,7 +748,7 @@ app.get('/api/auth/me', requireAuth, async (req, res) => {
|
||||
brands: user.brands, phone: user.phone,
|
||||
tutorial_completed: user.tutorial_completed,
|
||||
CreatedAt: user.CreatedAt, created_at: user.CreatedAt,
|
||||
profileComplete: !!user.team_role,
|
||||
profileComplete: !!user.name,
|
||||
modules,
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user