* add warning about auto paying open invoices on unsubscribe modal
* Update frontend/src/scenes/billing/UnsubscribeSurveyModal.tsx
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
* undo lemoncollapse
* wip
* some small tweaks
* Update UI snapshots for `chromium` (1)
* some dict accessor wrappers just in case
* add fix for sentry error
* wrong syntax for raising exception
---------
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* 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>
* 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>
* 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>
* Get rid of control version
* Don't show option to license on billing page
* Remove ff constant
* Include plans in billing response
* Update types for the plans
* Hook up the top of the table
* Fill out the rest of the table
* Hook up the rest of the table
* Add tooltip with feature descriptions
* Fix type errors
* Fix more type issues
* Remove old plan data
* clean up
* exclude features we don't want to show in table
* Tolerate missing plan keys
* fix mypy
* Update cypresss test
* Fix mypy again
* Just get whatever default plans
* fix tests
* Update snapshots
* Update snapshots
* moar test fixes
* use is_free to know if free plan
* Say the free allotment is incl'd if base has $ price
* Update snapshots
* Don't change anything having to do with licenses
* Fix type error
* Update snapshots
* Update snapshots
* Use product name from stripe
* only lowercase
* don't hardcode plan names
Co-authored-by: Emanuele Capparelli <k@emkpp.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Allow creating new team/project with is_demo flag
* make is_demo not read-only
* Give ppl option to create demo proj right away
* Load the demo data if it's a demo project
* Make sure the variable exists
* Add a demo tag next to demo projects in switcher
* Add a darker color to snack
so it shows up on a hovered button
* Swap bookmarklet for 'generating demo data' panel
* Finish getting rid of bookmarklet (test only)
* Show the demo flag in the main nav if Is_demo
* Update permissions to create a new proj if is_demo
and the org doesn't already have a demo proj
* If org already has a demo proj, just go there
* Add DemoProjectButton
* Don't show ingestion details if it's a demo team
* Don't show ingestion flow on demo project
I doubt people will land here, but just in case
I also renamed the ingestionLogic file name since we renamed the
logic itself previously
* Fix a couple ts errors
* Fix and write new pytests
* Don't change test strings
* Add a story for the snack
* Minor fixes
* Don't set completed_snippet_onboarding
just deal with it otherwise
* Remove the demo data option from platforms
* Change CTA to reflect existing demo project
* Only make the first button primary
* Fix ts error
* feat: prevent billing for events in demo projects (#12924)
* Don't include events in a demo proj in billing
* filter demo teams from usage reports
* Fix ts error
* Make sure demo teams actually aren't included
* take a stab at a test for this
* fix test
Co-authored-by: Emanuele Capparelli <k@emkpp.com>
* Enable master project demo data on Cloud too
* Use proper python
Co-authored-by: Michael Matloka <dev@twixes.com>
* Address review suggestions
* Remove color option from ProjectName
It was the same for all uses
Co-authored-by: Emanuele Capparelli <k@emkpp.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
* fix: customer group analytics
* Update snapshots
* customer group analytics when loading user
* fix api mock
* fix snapshot
* Update frontend/src/scenes/billing/v2/billingLogic.ts
Co-authored-by: Ben White <ben@benjackwhite.co.uk>
* fix
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben White <ben@benjackwhite.co.uk>