Show saved songwriters and producers in the artist roster picker

Merged
SI
1mo ago
+108-4

Saving a songwriter or producer refreshes only the separate professional list, leaving the workspace roster picker stale. Require the professional response's artist account ID and refresh the organization's artist query as well, so the saved member is immediately selectable through the existing artist picker.

Deploy after the migration in https://github.com/recoupable/database/pull/121 and the API response change in https://github.com/recoupable/api/pull/1115. The database change supplies the existing artist identity and preserves roles; this PR keeps the current UI and artist terminology.

Validation: 19 real-browser tests passed using installed Chrome, including the real form, response parser, artist hook and workspace picker together. Temporarily omitting artist-query invalidation made the picker regression fail; restoring it passed. Another 13 related app tests passed. Full app lint passed with 63 existing warnings; changed-file formatting passed. Auth and HTTP responses in browser tests are synthetic, not production verification.


Summary by cubic

Saving a songwriter or producer refreshes only the professional roster, leaving the workspace artist picker stale. This requires the API's professional.artist_id and invalidates the organization's artist query after saving, so the saved member is immediately selectable in the picker without a page reload.

Migration

  • Deploy after recoupable/database#121 and recoupable/api#1115.

Summary by CodeRabbit

  • New Features
    • Newly saved songwriters now appear in the workspace roster picker and can be selected without reloading the page.
  • Bug Fixes
    • The artist picker now refreshes after a professional is saved, so it reflects the latest roster.