0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
Commit Graph

10 Commits

Author SHA1 Message Date
Raquel Smith
91de4af59c
fix: support feature objects from billing (#15243)
* save available_product_features to the org

* use new feature objects and gaurd on limits

* guard playlists based on feature limit frontend

* handle feature limits on backend for playlists

* migrations

* Update query snapshots

* fix a couple things

* fix / add playlist tests

* fix dashboard collab tests

* fix types

* fix some tests

* fix collab test

* fix dashboard collab tests?

* Update query snapshots

* fix migration

* Update query snapshots

* remove default on field

* debug geoip test failure

* remove print

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-27 14:50:17 +00:00
Raquel Smith
d03fa0a953
feat(billing): create product-specific billing page (#15035)
* 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>
2023-04-13 17:43:33 +00:00
Emanuele Capparelli
20881d9701
fix: current_usage wrongly displayed (#15061)
* fix: current_usage wrongly displayed

* fix
2023-04-12 22:54:38 +00:00
Emanuele Capparelli
c86e490bc4
fix: small UI fixes for new billing API (#15024)
* 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>
2023-04-11 09:52:46 -07:00
Ben White
aeec7ba10c
feat: Added code to sync quota limits when updated (#14227)
* Added code to sync quota limits when updated

* Fixed syncing of rate limited teams

* fix

* Fix types

* Reverse changes

* fix import

---------

Co-authored-by: Emanuele Capparelli <k@emkpp.com>
2023-02-14 19:17:26 +00:00
Emanuele Capparelli
2272fca0b5
fix: avoid sending distinct ids to billing (#14224)
* fix: avoid sending distinct ids to billing

* fix test
2023-02-14 02:38:02 +00:00
Emanuele Capparelli
7a0a7283e0
fix: better billing debug (#14223)
* fix: better billing debugging

* fix error handler
2023-02-13 16:24:16 -08:00
Ben White
3234aaf081
feat: Billing limits take 2 (#14198)
* Revert "revert: Billing change (#14195)"

This reverts commit e0a65353e5.

* Fix up access
2023-02-13 14:43:53 -08:00
Ben White
e0a65353e5
revert: Billing change (#14195) 2023-02-13 08:58:30 +00:00
Emanuele Capparelli
037b635945
feat: chron job to rate limit orgs based on usage (#13521) 2023-02-13 09:03:22 +01:00