mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 15:13:07 +00:00
fix: normalize activity detail action row indentation (simplify)
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
This commit is contained in:
parent
5696aef9ed
commit
9bcbfaf96d
2 changed files with 21 additions and 22 deletions
|
|
@ -70,8 +70,7 @@ flowchart LR
|
|||
- **E2E que asserta `h1`:** atualizar para chrome slot
|
||||
- **Atividade sem locationLabel:** fallback para `municipality?.name`
|
||||
|
||||
## Aceite de engenharia
|
||||
## Débitos deferidos (capture-review-debts autônomo)
|
||||
|
||||
- [x] Aceite de produto da intenção ainda coberto
|
||||
- [x] Invariantes AGENTS/engineering-standards
|
||||
- [x] Testes de domínio previstos (unit chrome + e2e zone map)
|
||||
- **Domain `*DetailPageChrome` builders** (score 4, defer_trigger): quando um 3º detalhe precisar de lógica de subtítulo compartilhada além do padrão SetCampaignPageChrome — extrair no módulo dono do view model, não HOF genérico.
|
||||
- **`cache()` em loaders de detalhe** (score 3, defer_trigger): edit routes já duplicam fetch MD+página; otimizar loaders no dono quando houver evidência de custo em prod.
|
||||
|
|
|
|||
|
|
@ -119,28 +119,28 @@ export default async function ActivityDetailPage({
|
|||
</span>
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{isStaff ? (
|
||||
<Button asChild variant="outline" className="min-h-11">
|
||||
<Link href={`/campanha/atividades/${view.slug}/editar`}>
|
||||
<PencilIcon data-icon="inline-start" aria-hidden="true" />
|
||||
Editar
|
||||
</Link>
|
||||
</Button>
|
||||
) : null}
|
||||
{isStaff ? (
|
||||
<Button asChild variant="outline" className="min-h-11">
|
||||
<Link href={`/campanha/atividades/${view.slug}?tab=updates&newUpdate=1`}>
|
||||
<PlusIcon data-icon="inline-start" aria-hidden="true" />
|
||||
Nova atualização
|
||||
<Link href={`/campanha/atividades/${view.slug}/editar`}>
|
||||
<PencilIcon data-icon="inline-start" aria-hidden="true" />
|
||||
Editar
|
||||
</Link>
|
||||
</Button>
|
||||
{canManageLifecycle ? (
|
||||
<>
|
||||
<MarkActivityRealizedDialog activityId={view.id} />
|
||||
<CancelActivityDialog activityId={view.id} />
|
||||
</>
|
||||
) : null}
|
||||
</div>
|
||||
) : null}
|
||||
<Button asChild variant="outline" className="min-h-11">
|
||||
<Link href={`/campanha/atividades/${view.slug}?tab=updates&newUpdate=1`}>
|
||||
<PlusIcon data-icon="inline-start" aria-hidden="true" />
|
||||
Nova atualização
|
||||
</Link>
|
||||
</Button>
|
||||
{canManageLifecycle ? (
|
||||
<>
|
||||
<MarkActivityRealizedDialog activityId={view.id} />
|
||||
<CancelActivityDialog activityId={view.id} />
|
||||
</>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ActivityTabNav activeTab={activeTab} activitySlug={view.slug} searchParams={query} />
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue