Skip to content

docs(templates): atualiza crisis-detail com padrões reais do PR #273 - #128

Merged
nevitonsantana merged 1 commit into
mainfrom
docs/crisis-detail-pattern-update
Jul 1, 2026
Merged

nevitonsantana merged 1 commit into
mainfrom
docs/crisis-detail-pattern-update

Conversation

@nevitonsantana

Copy link
Copy Markdown
Collaborator

Resumo

  • Corrige o template content/templates/crisis-detail.mdx, que estava desatualizado em relação à implementação real da tela de detalhe de crise (Crisis Monitor).
  • Remove descrição de "gauge circular" — o score é um bloco retangular tintado, sem SVG/conic-gradient.
  • Remove tokens --risk-stable/monitor-* que não existem no código; documenta as bandas reais de AttentionScore (Ruído/Atenção/Alerta/Crise/Crítico).
  • Sinaliza explicitamente a divergência entre o label da banda (5 faixas) e a cor do anel de score (4 tokens) — são escalas que não coincidem, para não induzir consistência que não existe.
  • Documenta os padrões novos do PR #273 do Crisis Monitor: acento de prioridade por tokens delta no card "Próxima Ação Recomendada", e KPI strip com DeltaChip inline ao label.

Contexto

Trabalho de retroalimentação de template pedido na Issue #272 do repositório Crisis-Monitor/Crisis-Monitor (Fatia 5), após o merge do PR #273 (score ring, acento de prioridade, KPI strip).

Test plan

  • Validado visualmente no dev server local (bun run dev --port 3002), página /templates/crisis-detail renderizando corretamente com as novas seções
  • Revisão humana do conteúdo técnico (bandas de score, tokens)

🤖 Generated with Claude Code

Corrige descrições desatualizadas (gauge circular, tokens --risk-stable/monitor
inexistentes) e documenta a implementação atual: bloco de score retangular,
acento de prioridade por tokens delta, KPI strip com chip inline. Sinaliza
explicitamente a divergência entre as bandas de AttentionScore (5 labels) e
os tokens de cor do anel de score (4 faixas) — são escalas que não coincidem.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e9620e0736

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Estrutura visual (não é gauge circular, é bloco retangular):

```tsx
<div className="flex flex-col items-center justify-center text-center rounded-[calc(var(--surface-radius)-0.5rem)] border-none bg-[color:color-mix(in_oklab,var(--card)_90%,var(--brand-muted))] px-4 py-3 shadow-none">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Replace the unexported surface radius token

This copyable score-block snippet depends on var(--surface-radius), but the published token sources expose --radius-xl and the surface role colors, not --surface-radius (checked src/app/globals.css and generated tokens/pulso-tokens.css). In apps that import the Pulso tokens, rounded-[calc(var(--surface-radius)-0.5rem)] resolves with an undefined custom property and the block loses its intended radius, so either document an exported radius token here or add this token to the source token files.

Useful? React with 👍 / 👎.

@nevitonsantana
nevitonsantana merged commit 3c01276 into main Jul 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants