Inline and CSV results: raw numbers, float noise, English labels, two-row headers

Aberta
#478 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
43/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
javascript, openapi, react

Direção de pesquisa

Start by comparing the saved CSV output with inline results, as the issue requests, then trace where view formatting, locale labels, headers, and JSON serialization are applied. Check the tool schema for the undocumented total markers and identify the existing file-output behavior to use as the reference. Done means the inline CSV and JSON meet the listed formatting requirements and the schema documents the markers.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

area:mcp area:server enhancement

Inline results (and CSV output) are raw, not ready to show:

  • a value's format (e.g. currency:eur) is not applied in csv;
  • averages come back like 452.23523364486, totals with float noise like 77430.1500000001 (also seen in the developer docs walkthrough: Grand Total,50850.6999999996);
  • no locale is applied and Grand Total stays English for a German request;
  • with a column field the csv has a two-row header (Region,East,North,… then Product,Sum of Amount,,,), which is hard to turn into a table;
  • the inline json is pretty-printed (about 9 times the csv for the same table) and its total markers (0, 2, presumably 1 for subtotals) are documented nowhere in the tool schema.

A model pastes these straight into a chat answer. I want numbers rounded or formatted the way the view says (at least float noise removed), locale and labels applied as in the file outputs, a flat header option for a single value with columns, compact json inline, and the total markers described. Check first whether the saved csv has the same issues.

Linguagem predominante
JavaScript
Estrelas
1
Forks
1
Merge médio
3h 34min
PRs com merge (30d)
213

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de eizedev/pivotkit

Todas as issues de eizedev/pivotkit

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.