Add daily-poll extension
Description
Create a daily poll to users to fill out. Saves to a supabase database and allows users to see past polls.
Screencast
Checklist
- [x] I read the extension guidelines
- [x] I read the documentation about publishing
- [x] I ran
npm run buildand tested this distribution build in Raycast - [x] I checked that files in the
assetsfolder are used by the extension itself - [x] I checked that assets used by the
READMEare placed outside of themetadatafolder
Congratulations on your new Raycast extension! :rocket:
Due to our current reduced availability, the initial review may take up to 10-15 business days.
Once the PR is approved and merged, the extension will be available on our Store.
Greptile Summary
This PR adds a new daily-poll extension that enables shared daily polls with anonymous voting via Supabase. The extension includes two view commands: one for voting on today's poll and another for viewing previous poll results.
Key changes:
- New extension with proper package configuration and dependencies
- Anonymous voting system using device UUID hashing for privacy
- Shared Supabase backend for global poll data across all users
- Poll timezone handling via PostgreSQL functions (Eastern Time)
- Clean UI with vote tallies, rankings, and percentage displays
Issues found:
- Manual Preferences type definition in
previous-polls.tsx(should use auto-generated types fromraycast-env.d.ts) - Missing
CHANGELOG.mdfile (required for all PRs) - Missing
metadatafolder with screenshots (required for new extensions with view-type commands)
Confidence Score: 3/5
- This PR requires fixes before merging - missing required documentation and metadata
- The code logic is solid with good error handling and privacy considerations, but the PR is missing required elements: CHANGELOG.md, metadata folder with screenshots, and has a type definition issue that violates Raycast's auto-generation pattern
- extensions/daily-poll/src/previous-polls.tsx needs the Preferences type fix; extensions/daily-poll/package.json needs CHANGELOG.md and metadata folder added
Important Files Changed
| Filename | Overview |
|---|---|
| extensions/daily-poll/package.json | New extension package configuration with proper metadata and dependencies; missing CHANGELOG.md |
| extensions/daily-poll/src/lib/poll-api.ts | Poll data fetching and vote submission logic with proper error handling |
| extensions/daily-poll/src/poll.tsx | Main poll voting interface with results display and proper state management |
| extensions/daily-poll/src/previous-polls.tsx | Previous polls viewer with manual Preferences type definition (violates auto-generation rule) |
This pull request has been automatically marked as stale because it did not have any recent activity.
It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊
This pull request has been automatically closed due to inactivity.
Feel free to comment in the thread when you're ready to continue working on it 🙂
You can also catch us in Slack if you want to discuss this.