Truth-in-UI cleanup: wire real dashboard data, fix delete/dialog gaps
Phase 1 of frontend_tasks.md - stop showing fabricated/broken UI:
- Dashboard now fetches real stats (projects, tasks, users, pending
approvals, API keys, developer stats, pending reviews, admin
activity) instead of hardcoded numbers. Added services/developer.ts
and services/review.ts wrappers for previously-unused backend
endpoints.
- Wired ActivityFeed into every project's Overview page in place of
the "coming soon" placeholder.
- Registered the missing /projects/:id/technical-specs route (view
and service already existed, just unreachable).
- Fixed AssetDeleteConfirmDialog's raw styled divs to use the shared
Alert component and wired it into AssetBrowser, matching
ShotBrowser's impact-summary + type-to-confirm safety pattern
(asset deletion was previously less safe than shot deletion).
- Fixed a shared bug in both delete dialogs where the impact-summary
section never rendered (watch on the open prop needed
{ immediate: true }).
- Replaced native confirm()/alert() with styled AlertDialog/Dialog in
NoteItem, TaskAttachments, and UserMenu's keyboard-shortcuts item.
- Removed dead-end UI: Google OAuth stub buttons, UserMenu items
pointing at non-existent routes, the /developer/docs dead link, and
the no-op action button on the API Keys placeholder page.
- Removed leftover debug console logging across 8 files.
Added frontend_report.md (full audit) and frontend_tasks.md (phased
checklist) as the reference for this and future phases.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,19 +37,8 @@ const assetsStore = useAssetsStore()
|
||||
// Computed properties
|
||||
const projectId = computed(() => {
|
||||
const id = route.params.projectId
|
||||
const parsedId = typeof id === 'string' ? parseInt(id) : Array.isArray(id) ? parseInt(id[0]) : 0
|
||||
console.log('ProjectAssetsView - Route params:', route.params)
|
||||
console.log('ProjectAssetsView - Raw project ID:', id)
|
||||
console.log('ProjectAssetsView - Parsed project ID:', parsedId)
|
||||
return parsedId
|
||||
return typeof id === 'string' ? parseInt(id) : Array.isArray(id) ? parseInt(id[0]) : 0
|
||||
})
|
||||
|
||||
const totalAssets = computed(() => {
|
||||
console.log('ProjectAssetsView - Total assets:', assetsStore.assets.length)
|
||||
return assetsStore.assets.length
|
||||
})
|
||||
|
||||
// Debug logging on mount
|
||||
console.log('ProjectAssetsView - Component mounted')
|
||||
console.log('ProjectAssetsView - Route params:', route.params)
|
||||
const totalAssets = computed(() => assetsStore.assets.length)
|
||||
</script>
|
||||
Reference in New Issue
Block a user