Skip to content

fix: column selection + latest Docker tag#34

Merged
acmeguy merged 8 commits intomasterfrom
feat/map-field-opt-in-ui
Apr 18, 2026
Merged

fix: column selection + latest Docker tag#34
acmeguy merged 8 commits intomasterfrom
feat/map-field-opt-in-ui

Conversation

@acmeguy
Copy link
Copy Markdown

@acmeguy acmeguy commented Apr 18, 2026

Summary

  • Column selection fix: Initialize selectedColumns with ALL columns, not just active ones. User's checkboxes are now the source of truth.
  • CI fix: Push latest Docker tag on master builds so ArgoCD dev overlay auto-deploys.

Test plan

  • Profile a table → all columns checked by default
  • Uncheck some → preview/apply respects selection
  • CI build pushes both SHA and latest tags

🤖 Generated with Claude Code

acmeguy and others added 6 commits March 31, 2026 09:00
Smart Generation UI improvements:
- Map, nested (ARRAY JOIN), and AI fields default to unchecked (opt-in)
- Count measure and required fields (rewrite rules + filters) always selected
- "Start Over" button on change preview step resets to table selection
- "Skip LLM enrichment" checkbox on column selection step
- AI metrics section starts unchecked (opt-in, not opt-out)
- AI metrics empty selection sends empty array to prevent backend include-all bug
- Source tag support in ChangeField interface (map, nested, ai)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The frontend checkbox existed but the GraphQL variable was never declared
in the mutation, so URQL silently dropped it. Now wired end-to-end.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
setSelectedModelFields was called on preview result and start-over
but never declared via useState, causing a ReferenceError that crashed
the smart gen UI and prevented models from being created.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… generated document

excludedFields was referenced but never declared, causing ReferenceError
that crashed the apply step — no models could be created.

Also add skip_llm variable declaration to the generated GraphQL document
so URQL actually sends it to Hasura (codegen couldn't run due to schema
mismatches, so the document was manually updated).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The infra dev overlay now uses `latest` tags for all synmetrix images.
Client-v2 was only pushing the SHA tag — ArgoCD couldn't pick up new builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
selectedColumns was initialized to only columns with data (has_values &&
value_rows > 0). For empty tables/partitions, this meant zero columns
selected, so selected_columns was never sent and the backend built models
with all columns regardless of the user's checkbox selections.

Now all columns start checked — the user's deselections are the source
of truth. The isSubset check compares against total column count, not
active-data column count.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@acmeguy acmeguy changed the title ci: push latest Docker tag on master builds fix: column selection + latest Docker tag Apr 18, 2026
- Map and nested fields now included by default in change preview
  (previously opt-in with no UI to select them — dead on arrival)
- Only AI-generated fields remain opt-in (has separate selection UI)
- Initialize selectedColumns from all columns, not just active ones
- Add excluded_fields to GraphQL document
- Compare column subset against total count, not active-data count

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…in-ui

# Conflicts:
#	src/components/SmartGeneration/index.tsx
#	src/graphql/generated.ts
#	src/graphql/gql/datasources.gql
@acmeguy acmeguy merged commit 8693264 into master Apr 18, 2026
@acmeguy acmeguy deleted the feat/map-field-opt-in-ui branch April 18, 2026 15:16
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