Skip to content

Restore normalizeOpalLogo in apps API and surface submission status in profile API#53

Draft
Copilot wants to merge 2 commits intofix/app-submissionsfrom
copilot/sub-pr-48-again
Draft

Restore normalizeOpalLogo in apps API and surface submission status in profile API#53
Copilot wants to merge 2 commits intofix/app-submissionsfrom
copilot/sub-pr-48-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 4, 2026

fix/app-submissions dropped the normalizeOpalLogo function when adding UGC submission merging, and api/profile/[slug].ts selected submissionStatus from the DB but never included it in the response payload.

Changes

  • api/apps.ts: Restored normalizeOpalLogo from main; applied to official apps before merging with approved submissions
  • api/profile/[slug].ts: Added status field to submitted app objects in the profile response
// Before: submissionStatus selected but silently dropped
} else if (item.appType === 'submitted' && item.submissionId) {
  return {
    id: item.submissionId,
    ...
    category: item.submissionCategory,
    // status missing
    type: 'submitted' as const,
  };
}

// After
} else if (item.appType === 'submitted' && item.submissionId) {
  return {
    id: item.submissionId,
    ...
    category: item.submissionCategory,
    status: item.submissionStatus,
    type: 'submitted' as const,
  };
}

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
string-v2 Ready Ready Preview, Comment Mar 4, 2026 3:17pm

…n profile API

Co-authored-by: ghostleek <44336310+ghostleek@users.noreply.github.com>
Copilot AI changed the title [WIP] Update user-submitted apps display in profile Restore normalizeOpalLogo in apps API and surface submission status in profile API Mar 4, 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.

2 participants