Skip to content

feat(slides): add page thumbnail command (#98)#107

Merged
omriariav merged 3 commits intomainfrom
feat/slides-thumbnails
Feb 19, 2026
Merged

feat(slides): add page thumbnail command (#98)#107
omriariav merged 3 commits intomainfrom
feat/slides-thumbnails

Conversation

@omriariav
Copy link
Owner

Summary

  • Add gws slides thumbnail <presentation-id> command that returns the thumbnail URL for a specific slide page
  • --slide flag accepts either a slide object ID or a 1-based slide number (resolved automatically via the Presentations API)
  • --size flag controls thumbnail resolution: SMALL, MEDIUM (default), or LARGE
  • --download <path> flag optionally downloads the thumbnail image to a local file
  • Includes 4 new tests: flag validation, get by object ID, get by slide number, and download flow

Test plan

  • go vet ./... passes
  • go test ./cmd/... -run TestSlidesThumbnail — all 4 tests pass
  • go test ./cmd/... -run TestSlidesCommands — thumbnail registered in command structure
  • gofmt applied to modified files

🤖 Generated with Claude Code

omriariav and others added 3 commits February 19, 2026 09:50
Add `gws slides thumbnail` to get slide page thumbnail URLs via the
Slides API. Supports slide identification by object ID or 1-based number,
configurable thumbnail size (SMALL/MEDIUM/LARGE), and optional download
to a local file path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- CI was failing: staticcheck SA5011 nil pointer dereference after
  t.Error (doesn't stop test). Changed to t.Fatal.
- Added 30s timeout to HTTP client for thumbnail download to prevent
  indefinite stalls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Added thumbnail command to SKILL.md and references/commands.md
- Added thumbnail to TestSkillCommands_MatchCLI
- Changed t.Error to t.Fatal for nil flag checks (staticcheck SA5011)
- Added 30s HTTP timeout for thumbnail download

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@omriariav omriariav force-pushed the feat/slides-thumbnails branch from 804aa4b to 2c56c83 Compare February 19, 2026 08:00
@omriariav omriariav merged commit edeb38e into main Feb 19, 2026
1 check passed
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

Comments