synthesisui 0.16.394 → 0.16.395
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/doctor/style-ledger.js +20 -0
- package/package.json +1 -1
|
@@ -450,6 +450,26 @@ export function describeValueRuler(values) {
|
|
|
450
450
|
const decisions = values.seen - values.structure;
|
|
451
451
|
const closed = values.interpreted + values.answered;
|
|
452
452
|
const percent = decisions > 0 ? Math.round((closed / decisions) * 100) : 0;
|
|
453
|
+
/**
|
|
454
|
+
* NADA PARA MEDIR NÃO É ZERO POR CENTO - e a frase dizia zero três vezes.
|
|
455
|
+
*
|
|
456
|
+
* O QUE O CLIENTE VIA, caminhado em 07/09 num `create-next-app` recém-criado: *"Of the 0 class
|
|
457
|
+
* declarations on your components, 0 are structure. Of the 0 design decisions, 0 are interpreted -
|
|
458
|
+
* 0%."* Três zeros e um 0% sobre um projeto onde a régua não tinha o que medir, porque ele ainda
|
|
459
|
+
* não escreveu um componente - só páginas, e uma página não é componente de design system, o que o
|
|
460
|
+
* próprio relatório explica seis linhas acima.
|
|
461
|
+
*
|
|
462
|
+
* `0%` é um número de DESEMPENHO, e ali não houve desempenho nenhum. É a lei 14 do `CLAUDE.md`:
|
|
463
|
+
* *"um zero pelado lê como falha nossa; um zero com motivo lê como fato"* - e para quem acabou de
|
|
464
|
+
* apontar a plataforma para o próprio projeto, uma linha de 0% é a primeira impressão.
|
|
465
|
+
*
|
|
466
|
+
* A frase que substitui diz o FATO e o caminho, sem inventar percentual: não há componente para
|
|
467
|
+
* medir ainda.
|
|
468
|
+
*/
|
|
469
|
+
if (values.seen === 0)
|
|
470
|
+
return [
|
|
471
|
+
"No component of yours carries a class declaration yet - so there is nothing for this ruler to read. It starts answering once a component exists, and pages do not count as components.",
|
|
472
|
+
];
|
|
453
473
|
return [
|
|
454
474
|
`Of the ${values.seen} class declarations on your components, ${values.structure} are structure (layout plumbing, not design decisions). Of the ${decisions} design decisions, ${closed} are interpreted${values.answered > 0 ? ` (${values.answered} of them answered by you)` : ""} - ${percent}%.`,
|
|
455
475
|
];
|
package/package.json
CHANGED