Skip to content

Surface quality warnings and warning analytics#36

Merged
Abdulmuiz44 merged 4 commits into
mainfrom
codex/qc-warning-visibility
Jun 3, 2026
Merged

Surface quality warnings and warning analytics#36
Abdulmuiz44 merged 4 commits into
mainfrom
codex/qc-warning-visibility

Conversation

@Abdulmuiz44
Copy link
Copy Markdown
Collaborator

Summary

  • preserve non-blocking quality warnings during generation completion
  • persist warning details in generation style metadata
  • emit quality_warning analytics with warning codes and asset types
  • surface warning messages in asset cards for post-generation review

Verification

  • npm run typecheck
  • npm run build previously passed on this branch before warning-cherry-pick conflict; after conflict resolution the local environment entered long build hangs after type-check phase, so no fresh completed build artifact was produced in this run

@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for launchpix ready!

Name Link
🔨 Latest commit 14dcdda
🔍 Latest deploy log https://app.netlify.com/projects/launchpix/deploys/6a07d18290291f0008ae9d1c
😎 Deploy Preview https://deploy-preview-36--launchpix.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cae5df8e1e

ℹ️ 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 "@codex address that feedback".

const zip = new JSZip();
const renderSources: Record<string, number> = {};
const qualityFailures: Array<{ assetType: string; issues: string[] }> = [];
const qualityWarnings: QualityFailureDetail[] = [];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Define the quality warning detail type

qualityWarnings is annotated with QualityFailureDetail, but that type is not declared or imported anywhere in the repo, so this commit breaks the TypeScript build; I confirmed npm run typecheck fails with TS2304: Cannot find name 'QualityFailureDetail'. Add a local type/interface or import the intended quality issue type before using it here.

Useful? React with 👍 / 👎.

Comment on lines +73 to +74
const metadata = asset.metadata_json as { quality_report?: { issues?: Array<{ severity?: string; message?: string }> } } | null;
const issues = metadata?.quality_report?.issues || [];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Recompute warnings after asset rerenders

When a user fixes a warning by saving new copy and rerendering the asset, this display still reads the original metadata_json.quality_report; the rerender endpoint updates editable, render_source, and rerendered_at but preserves the old quality_report, so resolved warnings such as hero_headline_too_short continue to be shown after reload. Either recompute/clear the report during rerender or derive warnings from the current editable metadata before surfacing them here.

Useful? React with 👍 / 👎.

@Abdulmuiz44 Abdulmuiz44 merged commit f3a28de into main Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant