* Send updated admin emails to billing
* add tests
* sync when a user is removed from an org
* fix the admin email filter
* sync admin emails on level change
* add more tests
* retrieve open invoices as part of /billing loading, show warning
* small fixes
* address pr feedback
* small grammar update
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* update tiers usage with local org usage information
* type finagling
* update addon tiers as well
* test
* Update ee/billing/billing_manager.py
* update tests
---------
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
* show error messages on billing page
* some more updates
* extraneous exception and pr feedback
* Move error display into the unsubscribe modal
* Only show link to stripe if the error detail is about open invoices
* Update frontend/src/scenes/billing/billingLogic.tsx
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
* remove opensupportform from billingLogic
---------
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
* use feature flag to control whether to quota limit or not
* add simple test
* Update query snapshots
* fix up the feature flag activation logic
* confirm that the fixed feature flag logic works
* remove unnecessary change
* Update query snapshots
* Update query snapshots
* fix up tests
* another fix for tests
* Update query snapshots
* still fixing tests
* Update query snapshots
* pr feedback, more tests
* tune up ff enabled call, add capture check to test for quota limit changed
* i really need to run tests locally
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Update the organization customer email upon signup
* Only do this is the person signing up is the owner of the org and there isn't already a
stripe subscription associated with the org
* undo local changes that shouldn't be in prod
* small tweaks to match backend
* fix test
* Update query snapshots
* Update query snapshots
---------
Co-authored-by: Bianca Yang <bianca@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* update billing distinct IDs on user join/leave org
* temporarily update on usage report send
to update existing orgs
* abstract a bit more
* update existing tests
* add billing_manager test for the method
* Update query snapshots
* specify date
* move outside the transaction
* cache the instance license
* use new instance license method in other places
* fix mypy and some tests
* Update query snapshots
* Update query snapshots
* fix caching in tests
* constrain try/except
* Update query snapshots
* make sure we hae license before update billing
* Update query snapshots
* Update query snapshots
* set to false if no instance license
* fix date
* Update query snapshots
* use correct var
* Update UI snapshots for `chromium` (1)
* clear license cache before running tests
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* fix tests
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* clean up and organize
* create ff and stub out new product layout
* Split main billing page
* refactor test billing product
* rename table bordered to borderedRows
* Add stealth display to table for minimal styling
* key the logic
* stub addons
* working version connected to api
* accept usage key from custom_limits_usd map
just in case some old ones are left dangling
* consolidate pricing tables and more
* add pricing modal
* avoid errors
* fix
* fix tests
* Handle contact_support products
* Update UI snapshots for `chromium` (2)
* incorporate fixes from em's other PR
* Update UI snapshots for `chromium` (2)
* Fix some tests and type errors
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* more type fixes
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Hide billing limit field if it's open & then unsub
* just say products not your products
* feat: add product comparisons and ingestion styling/logic (#15040)
* add upgrade CTA on plan card
* add a modal to show plan details
* make ingestion view work
* add upgrade all button on ingestion
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `firefox` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `firefox` (2)
* redirect back to ingestion if that's where they were
* stay on billing panel til they are done sub-ing
* upgrade to addons automatically in onbdg
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* only include free tier in gauge if there is one
* use proj_amt_usd instead of calculating on frontend
* usage_key not type
---------
Co-authored-by: Emanuele Capparelli <k@emkpp.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* fix: small UI fixes for new billing API
* fix tests
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>