Open
Conversation
added 10 commits
March 16, 2026 06:15
…, ReadabilityAnalyzer, SeoAnalyzer + unit tests - QualityAnalyzerContract interface (App\Services\Quality\Contracts) - QualityDimensionResult value object with getScore/getItems/getMetadata/countByType - ReadabilityAnalyzer: Flesch-Kincaid score, sentence length, paragraph structure, passive voice detection - SeoAnalyzer: title/meta description length, heading hierarchy, keyword density, link analysis, image alt coverage - Unit tests: 21 tests, 42 assertions, all passing
…gementPrediction + LLM prompt config
- BrandConsistencyAnalyzer: uses Persona system_prompt + voice_guidelines,
scores tone consistency / vocabulary / brand voice via LLM; heuristic fallback
when no persona or LLM unavailable
- FactualAccuracyAnalyzer: extracts claims via LLM, cross-references
ContentGraphNode entities, scores verifiable claims + citations;
regex heuristic fallback
- EngagementPredictionAnalyzer: predicts engagement (headline strength,
hook quality, emotional resonance, CTA, shareability) via LLM;
heuristic fallback with power-word + CTA detection
- config/quality-prompts.php: config-driven system + user prompt templates
with {{content}} / {{context}} placeholders for all 3 analyzers
- Unit tests (22 assertions) for all 3 analyzers with mocked LLM responses
- Pint + PHPStan both pass (0 errors)
…tyTrendAggregator - ContentQualityService orchestrates all 5 analyzers, calculates weighted overall score, persists ContentQualityScore + ContentQualityScoreItem records, fires ContentQualityScored event, caches result for 1h in Redis - ScoreContentQualityJob dispatches async scoring on 'quality' queue - QualityTrendAggregator: getSpaceTrends (daily averages), getSpaceLeaderboard (top-scoring content), getDimensionDistribution (histogram buckets) - Register ContentQualityService + QualityTrendAggregator as singletons in AppServiceProvider - Feature tests: full scoring flow, weighted calc, job dispatch/sync, trend aggregation, cache hit/miss
…routes, quality.scored webhook event
…yScorePanel + editor sidebar integration
…d, QualityDashboardController + /admin/quality route
… /admin/settings/quality route
… on publish, E2E tests
…st infrastructure fixes (phpunit.xml APP_BASE_PATH, PipelineRunFactory)
48ca452 to
b767c3e
Compare
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.
Features
Changes