-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New pricing #308
Merged
Merged
New pricing #308
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
48c6ad6
Rework public pricing page
loicknuchel b38b2f9
Use new plans constants and limits
loicknuchel b28f274
Use new plans on onboarding
loicknuchel 439a365
Add Stripe prices
loicknuchel f798c61
Add new pricing plans subscriptions
loicknuchel c65a3ea
Remove pricing from onboarding
loicknuchel f9e9c6e
fix
loicknuchel 5e505a3
List subscriptions instead of fetching the registered one
loicknuchel d10921e
Prepare stripe_subscription_id removal
loicknuchel bac5a25
Remove stripe_subscription_id and add plan in organization
loicknuchel e2ad364
Improve design
loicknuchel 1dcf34e
Cockpit check
loicknuchel 7b7c575
Add special support for enterprise plan
loicknuchel 1e4a806
Add legacy alerts on pro plan
loicknuchel 17bad45
Improve save project modal
loicknuchel 5f2bceb
Merge branch 'main' into new-pricing
loicknuchel e734b1e
Reformat
loicknuchel 24d0768
Refactor organization plan
loicknuchel aeb74d6
Refactor plan checks
loicknuchel c283895
Adapt streak
loicknuchel 1819d82
Last fixes
loicknuchel 99d9e8f
Fix
loicknuchel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,8 +154,10 @@ These are the basic variables you will **need** to set up Azimutt: | |
- `SMTP_USERNAME` (required) | ||
- `SMTP_PASSWORD` (required) | ||
- `SMTP_PORT` (required) | ||
- `SUPPORT_EMAIL` (optional, default `[email protected]`): email shown in Azimutt when users need support | ||
- `SENDER_EMAIL` (optional, default `[email protected]`): email Azimutt will us to send emails | ||
- `CONTACT_EMAIL` (optional, default `[email protected]`): email shown in Azimutt to reach out | ||
- `SUPPORT_EMAIL` (optional, default `[email protected]`): email shown in Azimutt when users need support | ||
- `ENTERPRISE_SUPPORT_EMAIL` (optional, default `[email protected]`): email shown in Azimutt for high priority support | ||
|
||
|
||
### Key features | ||
|
@@ -207,7 +209,12 @@ At least one of authentication methods should be defined: | |
- `STRIPE` (optional): if `true`, allow to purchase plans with [Stripe](https://stripe.com), you probably don't need it ^^ | ||
- `STRIPE_API_KEY` (required): Stripe api key (ex: `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`) | ||
- `STRIPE_WEBHOOK_SIGNING_SECRET` (required): Stripe webhook secret (ex: `whsec_ayZAyKqOLy34UKNeI3eq4icXVWJam0IW`) | ||
- `STRIPE_PRICE_PRO_MONTHLY` (required): the Stripe price for the pro plan (ex: `price_uJINukB78aAbajUQHy6Ra523`) | ||
- `STRIPE_PRICE_SOLO_MONTHLY` (required): Stripe price for the monthly solo plan (ex: `price_uJINukB78aAbajUQHy6Ra523`) | ||
- `STRIPE_PRICE_SOLO_YEARLY` (required): Stripe price for the yearly solo plan (ex: `price_uJINukB78aAbajUQHy6Ra523`) | ||
- `STRIPE_PRICE_TEAM_MONTHLY` (required): Stripe price for the monthly team plan (ex: `price_uJINukB78aAbajUQHy6Ra523`) | ||
- `STRIPE_PRICE_TEAM_YEARLY` (required): Stripe price for the yearly team plan (ex: `price_uJINukB78aAbajUQHy6Ra523`) | ||
- `STRIPE_PRODUCT_ENTERPRISE` (required): Stripe product for enterprise plan (ex: `prod_eBlQLUZPVprdAo`) | ||
- `STRIPE_PRICE_PRO_MONTHLY` (required): Stripe price for the monthly legacy pro plan (ex: `price_uJINukB78aAbajUQHy6Ra523`) | ||
- `CLEVER_CLOUD` (optional): if `true`, enable auth & hooks for [Clever Cloud Add-on](https://www.clever-cloud.com/doc/extend/add-ons-api) | ||
- `CLEVER_CLOUD_ADDON_ID` (required) | ||
- `CLEVER_CLOUD_PASSWORD` (required) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,10 @@ config :azimutt, | |
organization_default_plan: System.get_env("ORGANIZATION_DEFAULT_PLAN"), | ||
global_organization: global_organization, | ||
global_organization_alone: global_organization && System.get_env("GLOBAL_ORGANIZATION_ALONE") == "true", | ||
support_email: System.get_env("SUPPORT_EMAIL") || "[email protected]", | ||
sender_email: System.get_env("SENDER_EMAIL") || "[email protected]", | ||
sender_email: System.get_env("SENDER_EMAIL") || Azimutt.config(:azimutt_email), | ||
contact_email: System.get_env("CONTACT_EMAIL") || Azimutt.config(:azimutt_email), | ||
support_email: System.get_env("SUPPORT_EMAIL") || System.get_env("CONTACT_EMAIL") || Azimutt.config(:azimutt_email), | ||
enterprise_support_email: System.get_env("ENTERPRISE_SUPPORT_EMAIL") || System.get_env("SUPPORT_EMAIL") || System.get_env("CONTACT_EMAIL") || Azimutt.config(:azimutt_email), | ||
server_started: DateTime.utc_now() | ||
|
||
config :azimutt, Azimutt.Repo, | ||
|
@@ -270,6 +272,11 @@ if System.get_env("STRIPE") == "true" do | |
|
||
config :azimutt, | ||
stripe: true, | ||
stripe_price_solo_monthly: System.fetch_env!("STRIPE_PRICE_SOLO_MONTHLY"), | ||
stripe_price_solo_yearly: System.fetch_env!("STRIPE_PRICE_SOLO_YEARLY"), | ||
stripe_price_team_monthly: System.fetch_env!("STRIPE_PRICE_TEAM_MONTHLY"), | ||
stripe_price_team_yearly: System.fetch_env!("STRIPE_PRICE_TEAM_YEARLY"), | ||
stripe_product_enterprise: System.fetch_env!("STRIPE_PRODUCT_ENTERPRISE"), | ||
stripe_price_pro_monthly: System.fetch_env!("STRIPE_PRICE_PRO_MONTHLY") | ||
|
||
config :stripity_stripe, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
Incomplete Integration of New Plan Attributes and Features
The new plan attributes and features (
:free
,:solo
,:team
,:enterprise
,:pro
) are only referenced inbackend/lib/azimutt.ex
andbackend/lib/azimutt_web/controllers/user_onboarding_controller.ex
. Ensure these attributes and features are correctly integrated and utilized throughout the codebase.backend/lib/azimutt.ex
backend/lib/azimutt_web/controllers/user_onboarding_controller.ex
Analysis chain
LGTM!
The new plan attributes and features align with the updated pricing plans. Ensure that these attributes and features are correctly integrated and used throughout the codebase.
Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 406
Script:
Length of output: 1646
Script:
Length of output: 10558