fix(04-05): three post-deploy bug fixes

- Admin client list: remove Timer column, rename Acconto→Importo incassato
  and Saldo→Importo da saldare (calculated from payment amounts, not badges)
- Project workspace timer: pass projectId prop to TimerCell so it calls
  startTimer(projectId) directly instead of startTimerForClient(projectId)
  which was failing with "nessun progetto trovato"
- Public client page: pass client.token (real DB token) not the URL path
  segment (which may be a slug) to ClientDashboard → fixes approve/chat APIs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-22 12:13:31 +02:00
parent 4d8678b1a3
commit e6a9774cfe
5 changed files with 31 additions and 34 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ export default async function ClientPage({
return (
<ClientDashboard
view={projectViewToClientView(client, view)}
token={token}
token={client.token}
comments={view.comments as unknown as Comment[]}
/>
);
@@ -155,7 +155,7 @@ export default async function ClientPage({
{view ? (
<ClientDashboard
view={projectViewToClientView(client, view)}
token={token}
token={client.token}
comments={view.comments as unknown as Comment[]}
/>
) : (