-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add collaboration scope + validator gating #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…normalize paths for group check
Reviewer's GuideThis PR introduces a new “collaboration” scope in the style frontmatter schema, updates the validation logic to only warn on multi-artist names when the scope is “single-artist”, fixes cross‐platform path checks in the validator, flips three existing style cards to use the collaboration scope (with associated ratio updates), and adds documentation outlining the style data model and validator behavior. Entity relationship diagram for style cards with collaboration scopeerDiagram
STYLE_CARD {
id string
group string
display_name string
artist string
movement string
style_scope string
ratios string[]
modes string[]
}
COLLABORATION_STYLE_CARD {
style_scope string
artist string
movement string
ratios string[]
}
STYLE_CARD ||--|| COLLABORATION_STYLE_CARD : has
Class diagram for updated style frontmatter schemaclassDiagram
class Frontmatter {
+string id
+string group
+string display_name
+string artist
+string movement
+"single-artist"|"movement"|"collaboration" style_scope
+string[] ratios
+string[] modes
}
Frontmatter : style_scope = "single-artist" (default)
Flow diagram for updated validator logic on multi-artist namesflowchart TD
A["Start validation"] --> B["Read frontmatter.artist"]
B --> C["Check if artist string looks multi-artist"]
C --> D["Check style_scope"]
D -->|"single-artist"| E["Warn: multi-artist string not allowed"]
D -->|"movement or collaboration"| F["No warning"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there - I've reviewed your changes - here's some feedback:
- Consider extracting the path normalization logic (the norm helper) into a shared utility or using path.posix to keep scripts consistent rather than inlining regex replacements in validate-style.ts.
- Update the README or style-template to document the new "collaboration" style_scope so contributors know to set it when adding duo or studio styles.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider extracting the path normalization logic (the norm helper) into a shared utility or using path.posix to keep scripts consistent rather than inlining regex replacements in validate-style.ts.
- Update the README or style-template to document the new "collaboration" style_scope so contributors know to set it when adding duo or studio styles.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
What changed & why
artiststrings only when style_scope is "single-artist"; keep warnings off for "movement" and "collaboration".Validation / Build outputs
Risks & rollback
Follow-ups
Summary by Sourcery
Extend the style frontmatter schema with a collaboration scope and enhance the validator to reduce false positives, then update three existing style cards to use the new scope and document these changes.
New Features:
Enhancements:
Documentation: