Merged
Conversation
…egies (#73) Extract common scaffolding from Single and Multi file strategies into reusable builders module. This reduces code duplication and ensures consistent formatting across both strategies. Key changes: - Created markdown-builders module with shared utilities - Extracted project header, empty state, and library section rendering - Unified iteration logic over layer/stack/library structure - Simplified both strategies to use shared builders Benefits: - Guarantees consistent formatting across strategies - Reduces effort when adding new strategies - Single source of truth for markdown generation logic - Easier maintenance and testing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
* refactor: centralize keyboard activation handling * test: add coverage for useKeyboardActivation hook
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ 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
|
✅ All checks have passed successfully!
Coverage reports have been uploaded as artifacts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Complete implementation of a feature-flagged, organization-based prompt library system for curated content sharing within the 10xDevs community.
Core Features
🔐 Multi-tenant Access Control
PROMPT_LIBRARY_ENABLED(disabled by default)📝 Prompt Management
.mdfiles🔗 Invite System
🎨 User Interfaces
Admin (
/prompts/admin):Member (
/prompts):Database Schema
New tables (all with RLS):
API Routes
Admin (
/api/prompts/admin/*):GET/POST /prompts- List/createGET/PUT/DELETE /prompts/:id- ManagePOST /prompts/:id/publish- Publish/unpublishGET/POST /invites- Invite managementGET /invites/:id/stats- AnalyticsMember (
/api/prompts/*):GET /prompts- List publishedGET /collections- Browse collectionsGET /collections/:id/segments- Browse segmentsSecurity
Testing
✅ Unit Tests (8 suites):
✅ Integration Tests (3 flows):
Key Refactors
Collections Disambiguation: Renamed existing "collections" to "rule collections" to avoid naming conflicts
collectionsStore→ruleCollectionsStore/api/collections→/api/rule-collectionsShared Markdown Builders: Extracted common markdown generation logic into reusable module
Test Infrastructure: Comprehensive Supabase client mocking with chainable query builders
Known Limitations
Review Focus Areas
supabase/migrations/20251004000000_consolidated_rls.sqlsrc/middleware/index.tssrc/store/promptsStore.tsPre-Merge Checklist