Skip to content

feat(sheets): add table basics#548

Merged
steipete merged 2 commits intomainfrom
feat/sheets-table-basics
May 4, 2026
Merged

feat(sheets): add table basics#548
steipete merged 2 commits intomainfrom
feat/sheets-table-basics

Conversation

@steipete
Copy link
Copy Markdown
Collaborator

@steipete steipete commented May 4, 2026

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53d7eb316c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +58 to +60
if validation != nil && colType != "DROPDOWN" {
return nil, usagef("columns[%d].dataValidationRule requires columnType DROPDOWN", i)
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject invalid DROPDOWN column definitions early

The parser currently only rejects dataValidationRule on non-dropdown types, but it does not enforce the inverse requirement for DROPDOWN columns. Google Sheets’ tables guide requires dropdown columns to include a dataValidationRule with a ONE_OF_LIST condition, so gog sheets table create can accept inputs here that will only fail later at API time with a less actionable server error. Add validation to fail fast when columnType is DROPDOWN but the rule is missing or has a non-ONE_OF_LIST condition.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e6edf86fac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +247 to +250
tables, err := fetchSpreadsheetTables(ctx, svc, spreadsheetID)
if err != nil {
return err
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Short-circuit table delete dry-run before API lookup

sheets table delete --dry-run still performs a live Sheets lookup (fetchSpreadsheetTables) before exiting, so preview mode fails when credentials/network are unavailable and can return unknown table instead of a dry-run payload. This differs from the expected dry-run behavior used elsewhere (preview without contacting APIs) and makes non-interactive validation workflows unreliable.

Useful? React with 👍 / 👎.

@steipete steipete merged commit 322695f into main May 4, 2026
10 checks passed
@steipete steipete deleted the feat/sheets-table-basics branch May 4, 2026 08:41
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.

1 participant