@bitcobblers/wod-wiki-ui 0.7.37 → 0.7.38

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.
@@ -3626,7 +3626,7 @@ function diagnoseClauses(clauses) {
3626
3626
  return {
3627
3627
  valid: false,
3628
3628
  wql: clausesToWql(clauses),
3629
- ast: { raw: "", error },
3629
+ ast: { family: "aggregate", raw: "", agg: "sum", metric: "", filters: [], groupBy: [], error },
3630
3630
  error,
3631
3631
  offendingClauseId: clause.id
3632
3632
  };
@@ -3696,7 +3696,7 @@ function WqlDiagnosticsStrip({
3696
3696
  summary.hasJoin && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-testid": "diag-summary-join", className: "text-primary font-semibold", children: "+join" })
3697
3697
  ] });
3698
3698
  })() }),
3699
- valid && !wodWikiWql.isFindQuery(ast) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-x-3 text-[11px] opacity-80 border-l border-border/50 pl-3", children: (() => {
3699
+ valid && wodWikiWql.isAggregateQuery(ast) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-x-3 text-[11px] opacity-80 border-l border-border/50 pl-3", children: (() => {
3700
3700
  const summary = summarizeAggregate(ast);
3701
3701
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3702
3702
  /* @__PURE__ */ jsxRuntime.jsx(SummaryChip, { label: "agg", value: summary.agg, testId: "diag-summary-agg" }),