Repository navigation
fix(features): keep resources and behaviors apart, detect VS Code extensions - #125
Merged
Merged
Conversation
…ensions Found by running 0.8.2 on a snippet manager (itsflaid/devnote): Snippet and Collection were swallowed by a "Share" feature through behavioral capabilities (sharing, publishing, discovery, social) that touch the same routes, and the VS Code extension was not a feature at all. - behavioral capabilities merge only by shared entity or the same name - CRUD capabilities carry entity identity, so they cannot be bridged into another resource - VS Code Extension feature from files that import `vscode` - tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019HJc4sv9pSLh7vhduSUxBE
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Welcome ke DevMap!Terima kasih sudah buat PR. Pastikan checklist ini terpenuhi sebelum review:
CI akan jalan otomatis pada setiap update. Kalau gagal, akan muncul link run di komentar ini. Kalau DevMap membantu, tolong star ya: https://github.com/itsflaid/devmap Terima kasih kontribusinya! 🙏 |
…b resources From the same devnote check: /api/sidebar, /api/saved and /api/user-stats each became a one-file "Management" feature, and user-stats showed up as "User-stat Management" next to "User Management". - in an API with 10+ routes, a read-only resource with a single file is not a capability or a route-hint entity - `user-stats` resolves to UserStat (matches a model of that name) - tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019HJc4sv9pSLh7vhduSUxBE
This branch was successfully deployed
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.
What
Second real-app check of 0.8.2, on
itsflaid/devnote(Next.js monorepo: web app, API, VS Code extension).Found
api/collections/route.ts): behavioral capabilities (Content Sharing, Publishing, Public Discovery, Social Interactions) touch the same/api/snippets/...routes and glued everything together by route resourceSnippet Management) could be pulled into the Collection entity first through a shared route, which then blocked it from ever merging with its own Snippet entity (order-dependent)apps/extension) was not a featureFix
VS Code Extensionfeature from files that importvscodedevnote now lists Snippet Management (12 files, entry
api/snippets/route.ts), Collection Management, Workspace (22), Share, Explore, Dashboard, the behaviors as their own features, and VS Code Extension.Also in this PR
GET /api/sidebar,/api/saved,/api/user-stats) is no longer a one-file "Management" feature; a small API keeps ituser-statsisUserStat, no more "User-stat Management")devnote went from 28 to 25 features with nothing real lost.
Verification
pnpm test: 422 pass (3 new feature-candidates tests, 3 new audit tests; 4 existing tests relabeled from "X Operations" to "X Management" because only CRUD capabilities define a resource)https://claude.ai/code/session_019HJc4sv9pSLh7vhduSUxBE
Generated by Claude Code