Skip to content

Resolve a commission's render projects without fetching every CD project #4148

Description

@atomantic

Section: Creative Commission detail-page follow-ups

client/src/pages/CreativeCommissionDetail.jsx fetches listCreativeDirectorProjects() (every CD project, non-slim) on load just to index the ≤50 referenced by runs[].projectId (see the useEffect around line 106). It scales with the install's total project count, not the commission's.

Fix shape

Once a by-id/batch resolver exists (see the useVideoFileSrc follow-up — same "no by-id endpoint" root cause), swap this to fetch only the referenced projects.

Deferred from the detail-page PR to avoid adding a server endpoint in a client-only change.

Migrated from PLAN.md by /do:replan --issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

planTracked by /do:replan

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions