fix: keep API key migration instructions visible after JWT migration#45156
fix: keep API key migration instructions visible after JWT migration#45156
Conversation
…(FE-3055) The callout on the legacy JWT secret page that explains how to migrate to the new API keys was gated on !legacyKey, which made it disappear as soon as the user clicked "Migrate JWT secret". The callout describes a 4-step flow, so steps 2-4 need to remain visible after step 1. Keep the callout mounted whenever disableLegacyJwtSecretRotation is on (the new migration flow), while preserving the original behavior for the legacy "Change legacy JWT secret" UX.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthroughThe conditional rendering logic for the legacy JWT secret rotation UI was extended to display not only when requests are not pending and no legacy key exists, but also whenever the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |

Summary
Fixes FE-3055.
Fix: keep the callout mounted whenever
disableLegacyJwtSecretRotationis on, while preserving the original behavior for the legacy flow.Test plan
disableLegacyJwtSecretRotationenabled, open the legacy JWT secret page — callout is visibledisableLegacyJwtSecretRotationoff, verify the original behavior is unchanged (callout hides oncelegacyKeyexists)Summary by CodeRabbit