@bitcobblers/wod-wiki-ui 0.6.36 → 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.
@@ -3056,6 +3056,7 @@ function restoreFilters(rest) {
3056
3056
  }
3057
3057
  function wqlToClauses(wql2) {
3058
3058
  const suffixes = wodWikiWql.parseWqlSuffixes(wql2.trim());
3059
+ if (suffixes.conflicts?.length) return null;
3059
3060
  const { where, displayUnit, groupBy, rollup, last, scope, primaryText } = suffixes;
3060
3061
  const rowsMatch = /^rows(?:\:([a-zA-Z0-9_-]+))?\:?/.exec(primaryText);
3061
3062
  if (rowsMatch) {
@@ -3625,7 +3626,7 @@ function diagnoseClauses(clauses) {
3625
3626
  return {
3626
3627
  valid: false,
3627
3628
  wql: clausesToWql(clauses),
3628
- ast: { raw: "", error },
3629
+ ast: { family: "aggregate", raw: "", agg: "sum", metric: "", filters: [], groupBy: [], error },
3629
3630
  error,
3630
3631
  offendingClauseId: clause.id
3631
3632
  };
@@ -3695,7 +3696,7 @@ function WqlDiagnosticsStrip({
3695
3696
  summary.hasJoin && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-testid": "diag-summary-join", className: "text-primary font-semibold", children: "+join" })
3696
3697
  ] });
3697
3698
  })() }),
3698
- 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: (() => {
3699
3700
  const summary = summarizeAggregate(ast);
3700
3701
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3701
3702
  /* @__PURE__ */ jsxRuntime.jsx(SummaryChip, { label: "agg", value: summary.agg, testId: "diag-summary-agg" }),