PostHog / posthog

đŸĻ” PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
19.45k stars 1.14k forks source link

feat(billing): support initial billing limit for data warehouse #23384

Closed raquelmsmith closed 5 days ago

raquelmsmith commented 6 days ago

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

  1. Tells users on billing page if it's an initial limit and why it's there Arc 2024-07-01 15 19 17

  2. 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) Arc 2024-07-01 19 18 36

👉 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?

👀

github-actions[bot] commented 6 days ago

Size Change: 0 B

Total Size: 1.06 MB

ℹī¸ View Unchanged | Filename | Size | | :--- | :---: | | `frontend/dist/toolbar.js` | 1.06 MB |

compressed-size-action