[pull] master from supabase:master#829
Merged
Merged
Conversation
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Adding a toggle feature to the Features page to enable users to see self hosted features only. ## What is the current behavior? N/A ## What is the new behavior? <img width="1690" height="1168" alt="Screenshot 2026-01-21 at 7 16 12 PM" src="https://github.com/user-attachments/assets/49938c82-e023-4126-b627-77a47f87bfc5" /> ## Additional context N/A <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added self-hosted feature filtering. Users can now toggle a checkbox to show only features available on self-hosted deployments. * Filter selections are preserved when sharing or bookmarking links. * Clear all filters action now includes resetting the self-hosted filter. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Ana Mogul <anamogulsupa@Anas-MacBook-Pro.local> Co-authored-by: Alan Daniel <stylesshjs@gmail.com>
…44792) ## Summary - The `availableTaxIds` memo and preselect `useEffect` in `NewPaymentMethodElement` depended on the full `stripeAddress` object. Since the Stripe `AddressElement` fires `onChange` on every keystroke (org name, street, city, etc.), this created a new object reference each time, causing the memo to recompute and the effect to re-fire, which cleared `tax_id_value` to `''`. - Narrowed both dependencies to `addressCountry`, so the tax ID is only reset when the billing country actually changes. - Used a `prevCountryRef` to distinguish initial mount from country changes: on mount we preserve any existing `currentTaxId`, on country change we always reset to the new country's default. ## Test plan - [ ] New org flow: select paid plan, check "purchasing as a business", fill in tax ID value, type in org name / address fields - tax ID should persist - [ ] New org flow: change country - tax ID selector should update to the new country's default - [ ] Plan upgrade flow: open upgrade dialog with existing tax ID, type in address fields - tax ID should persist - [ ] Plan upgrade flow: change country - tax ID should reset to new country's default <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Tax ID handling is now country-aware and updates correctly when the billing country changes. * Address name and country persist across form remounts, preventing accidental resets when toggling purchase mode. * Tax ID selection/reset logic refined to avoid overwriting existing tax IDs on initial load and to choose appropriate defaults after country changes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )