We are setting an initial billing limit of $500 for data warehouse users just in case they decide to sync a very large database without realizing it. This limit shows up on the billing page, so users should know why it's there, and also be alerted that it exists when they set up their first sync.
Changes
Tells users on billing page if it's an initial limit and why it's there
Alerts users about initial limit after setting up their first sync.
Shows persistently until cleared with the X
only if the current billing limit matches the initial limit
only if they have more than 1 source set up (no sense in telling them if they haven't set something up)
Problem
We are setting an initial billing limit of $500 for data warehouse users just in case they decide to sync a very large database without realizing it. This limit shows up on the billing page, so users should know why it's there, and also be alerted that it exists when they set up their first sync.
Changes
Tells users on billing page if it's an initial limit and why it's there![Arc 2024-07-01 15 19 17](https://github.com/PostHog/posthog/assets/18598166/60d18e85-496a-4b77-9c92-f474ca314296)
Alerts users about initial limit after setting up their first sync.
đ Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
Shouldn't impact self-hosted as they can't have billing limits set
How did you test this code?
đ