Граф коммитов

70 Коммитов

Автор SHA1 Сообщение Дата
groovecoder 5f182c7d98 MPP-2405: add new API_DOCS_ENABLED env var for api docs 2022-11-16 13:31:55 -06:00
Vincent 1513e44565 Remove back-end references to old Premium plans 2022-11-07 15:50:28 +01:00
groovecoder cd52a6d1bb fix MPP-2332: add relay numbers to messaging service 2022-09-21 15:26:56 -05:00
Vincent bc2d944046 Add phone product IDs, plan IDs, and prices 2022-09-20 21:06:50 +02:00
Vincent d48c32b705 Insert final plan IDs for new Premium and Bundle
These should be the final plan and product IDs for the new Premium
and Bundle subscriptions in production.

The actual prices, as well as the product and plan IDs for the
phone plans, are yet to come.
2022-09-20 21:06:50 +02:00
John Whitlock c9b03d837e
Add STATSD_DEBUG env variable
Setting STATSD_DEBUG will enable metrics as well as the the logging
backend for markus. Setting DJANGO_STATSD_ENABLED is still required to
enable the Datadog backend (statsd plus tags)
2022-09-15 09:40:23 -05:00
Vincent adf9164f5f Also check for stage VPN products 2022-09-15 12:33:30 +02:00
Vincent d7f2aa45b2 Add has_vpn property to Profile
This will allow the UI to determine whether to show Bundle
callouts.
2022-09-15 12:33:30 +02:00
Vincent bc8c837a27 Add new Premium/phone/bundle products
Many values still aren't clear, but at least this will give the UI
something to query.
2022-09-09 16:40:50 +02:00
John Whitlock 9ed34829a9
Add SENTRY_DEBUG config
Add SENTRY_DEBUG config that defaults to the same value as DEBUG.
2022-07-28 15:59:40 -05:00
groovecoder 84e4520c30 use PHONES_ENABLED env var to better separate phones app 2022-07-19 20:24:56 -05:00
groovecoder c8d1082e75 add RelayNumber.save() to provision Twilio number 2022-06-30 15:52:36 -05:00
groovecoder c3fb9bc6dc start phone API 2022-06-30 15:52:33 -05:00
Vincent dc84a3799c Remove unused flag DOMAIN_REGISTRATION_MODAL 2022-06-29 23:40:10 +02:00
Vincent 747e6b8fe4 Remove PREMIUM_RELEASE_DATE feature flag 2022-06-29 23:40:10 +02:00
Vincent b1d2d5b5d2 Remove code made redundant by the React UI
This removes most of the views rendered by Django, linters applying
only to those files, and the infra to compile Sass. It preserves
the package.json file at the root, primarily for our Heroku
configuration (to set the Node and npm versions, and the commands
to run to build the website - i.e. heroku-postbuild), but also to
list the one in `frontend` as an npm workspace, leading to an npm
install in the root also running frontend/'s postinstall scripts
and thereby set up the Git hooks.

I've left the routes to the Django-rendered FAQ and home pages in
place (even though those views are now empty), because they're
still used to generate links. It might be more sensible to just
replace those with direct links, but I'll let people with more
Django experience decide on that.

I've also left the template tags in place, in case they still come
in useful when e.g. rendering the forwarded email.
2022-06-28 13:04:10 +02:00
luke crouch 8188174c00
start new phones page behind waffle flag (#1996)
* start new phones page behind  PHONE_PROD_ID and "phones" waffle flag

Adds a new PHONE_PROD_ID environment variable for a new Stripe product
ID which grants the new relay-phones capability.

Adds new WAFFLE_FLAGS, WAFFLE_SWITCHES, and WAFFLE_SAMPLES arrays to the
/api/v1/runtime_data endpoint.

Adds a new flagIsActive React function.

Adds a new /phone route and page, which only shows up if flagIsActive()
returns true for the user.

* restore phoneLink to new Navigation.tsx

* fix WaffleFlag type and mockData to match

* update locales submodule to fresh rebase

* move phone UI messages to pendingTranslations.ftl

* set privaterelay/locales submodule to match main

Co-authored-by: Maxx Crawford <maxx.crawford@gmail.com>
2022-06-14 11:20:05 -05:00
groovecoder 7f86950fa4 refactor RELAY_CHANNEL to come from SITE_ORIGIN 2022-06-03 11:22:09 -05:00
groovecoder fecc8e0481 change ON_HEROKU to RELAY_CHANNEL and add Bitwarden QA origin
Bitwarden Web Vault integrates Relay. So, our production server allows
the Bitwarden production origin. Our stage server should also allow
the Bitwarden stage origin.
2022-06-03 09:31:22 -05:00
groovecoder 66bb2c21f8 for mpp-1813: add new_from_address flag 2022-05-13 11:27:27 -05:00
Vincent 327bc94bdf Use an environment-specific Basket URL
On stage, we want to send data to the Basket dev (not stage,
according to the Basket folks!) environment.
2022-05-03 08:26:35 +02:00
John Whitlock ac82b26e20
Add process_emails_from_sqs management command
This command is based on process_delayed_emails_from_sqs, but is
designed to run until interrupted (or for a maximum duration)
rather than until the queue is empty.

The command logs to eventsinfo.process_emails_from_sqs:
* At the start and end of execution (INFO)
* For each polling loop (INFO if messages, DEBUG if none)
* For each processed message (INFO if failed, DEBUG if success)
* For AWS errors (ERROR)

Adds two new environment variables:
* AWS_SQS_EMAIL_QUEUE_URL - The SQS queue for incoming emails
* AWS_SQS_EMAIL_DLQ_URL - The dead letter queue for that queue

Adds three new stats gauges:
* email_queue_count - Estimated messages in SQS
* email_queue_count_delayed - ...that are not yet availabled
* email_queue_count_not_visible - ...that are reserved by a receiver

The current SNS workflow uses AWS_SQS_QUEUE_URL as its dead-letter
queue, and AWS_SQS_EMAIL_DLQ_URL could have the same value.
AWS_SQS_QUEUE_URL can be deprected and dropped after the transition
from SNS POSTs to SQS pulls.

Adds docs to test these changes in a local developer environment, and
tests to cover the new commands.
2022-04-15 14:58:26 -05:00
Maxx Crawford 9801b429e9
Update SUBSCRIPTIONS_WITH_UNLIMITED env with correct Relay subscription name (#1681) 2022-03-24 11:26:12 -05:00
Vincent b0538352f8 Add environment variable to enable the React app
If SERVE_REACT is False, the old website will continue to show.
When it is set to True, the React-based version of the website will
be served by Whitenoise.
2022-03-16 03:02:49 -07:00
Vincent 0caf334bb0 Remove the `premiumEnabled` feature flag
Premium has now been enabled for everyone.
2022-01-05 12:57:52 +01:00
Maxx Crawford 12377a5fcb
Onboarding Domain Registration UI Fixes (#1369)
* Fix issue where premium dashboard would prompt user who registered domain during onboarding step to register their domain

* Adjust premium dashboard UI to match Figma more

* Add comment in SCSS

* Submodule updates
2021-11-17 13:49:59 -06:00
Se Yeon Kim b562e18018
Remove TEST_MOZMAIL flag 2021-11-16 08:28:45 -06:00
Maxx Crawford 53d7acb601
Multi-part Premium Onboarding (#1318)
* Add sourcemaps to SCSS build process

* Adjust off-white background color to match Figma/Nebula color

* Add markup HTML/CSS scaffolding for multi-step process

* Move buttons into same container as progress bar, update JS, mobile styles

* Add install/not installed states for add-on on Step 3,

* Update domain registration js function to accept mutliple forms, and accept additional logic based on which form is submitted

* Revise position for desktop to be more responsive, revise desktop content area to 50/50 split, add logic to update Step 3 CTA based if addon is installed

* Add logic to only show onboarding if user is premium, add TODO about additional logic needed on profile template

* Update spellig comment static/js/domain-registration.js

Co-authored-by: Vincent <Vinnl@users.noreply.github.com>

* change POST profile_subdomain to always return JSON

* WIP Commit for Fetch Subdomain

* Update Content-Type

* add Profile.onboarding_state

to store how much onboarding the user has seen

* start onboarding_state HTML & JS code

* refactor into new api.js

* MAX_ONBOARDING_AVAILABLE=3

* Add eslint fix, test usage in onboarding setting

* Lint fixes

* Add logic to show active/last completed onboarding step or hide altogether if dismissed

* Update current slide/next button logic

* Add success state to onboarding domain registration

* Add DOM messaging support during domain registration

* Mobile refinements, add analytics pings during onboarding process to measure funnel completion

* Update UTM for add-on install

* Add code comment for magic number value

Co-authored-by: Vincent <Vinnl@users.noreply.github.com>

* Fix regression wher delete modal buttons are flipped on desktop

* Replace text with L10N strings

* Remove HTML comments

* JavaScript cleanup: Moved function to api.js, renamed variables to be more readable, add logic to only run premiumOnboarding function when needed

* Adjust Protocol token, lint fixes

* Spacing adjustment

Co-authored-by: Peter deHaan <pdehaan@hey.com>

* Adjusted string IDs based on L10N changes

* New l10n string IDs

* Add logic to show/hide addon prompt step CTAs on mobile/non-Fx browsers

* Lint fixes

* Submodule updates

Co-authored-by: Vincent <Vinnl@users.noreply.github.com>
Co-authored-by: groovecoder <lcrouch@mozilla.com>
Co-authored-by: Peter deHaan <pdehaan@hey.com>
2021-11-05 17:40:46 -05:00
groovecoder f2bb5251ec get_delayed_emails_from_sqs command
to get failed SNS messages from our SQS dead-letter queue, and
re-process them thru the same _sns_inbound_logic function.
2021-11-03 21:15:09 -05:00
groovecoder 900bbac07f remove PREMIUM_PRICE_ID_OVERRIDE from .env-dist
This env var should only apply to local, dev, and stage environments.
2021-10-27 14:16:13 -05:00
groovecoder 82041842f9 launch premium relay on stage on Friday at 5pm 2021-10-22 16:43:33 -05:00
groovecoder 11f8321ff4 fix mpp-1242: dynamic purchase urls by lang & country
refactor purchase urls into new premium_subscribe_url template tag

it accepts an accept-language value, and returns the proper subscription
url based on the first language and/or country code in the
accept-language header.

it uses a hard-coded map of currency, language, and country to the
appropriate stripe product plan ID.
2021-10-22 16:29:58 -05:00
luke crouch 2d015f22dd
fix local dev stripe env vars (#1269) 2021-10-22 13:55:07 -05:00
groovecoder 06ef0b71e1 new FXA_SUPPORT_URL based on new FXA_BASE_ORIGIN
also refactored FXA_SETTINGS_URL and FXA_SUBSCRIPTIONS_URL to base them
on new FXA_BASE_ORIGIN too
2021-10-21 13:20:08 +02:00
Se Yeon Kim ae6377c7f2
Use release date from env
and test that joined_before_premium_release property works as expected
2021-10-14 12:56:01 -05:00
Se Yeon Kim 1cb1328ab1
Set env for testing mozmail to false 2021-08-30 16:03:21 -05:00
Se Yeon Kim 75ba71f5c8
Add domains environment variables to sample 2021-08-18 14:08:34 -05:00
Se Yeon Kim 53c061e21c
Use mozmail.com based on env var 2021-08-05 00:21:46 -05:00
Se Yeon Kim 94b06cfca1
Add domain field in Relay Address model
Set possible options for domain fields and set default domain
2021-07-29 12:00:52 -05:00
Maxx Crawford 300fd7e02a Remove commented code, add FxA Subscriptions URL to settings/env variables with prod fallback 2021-06-11 12:48:43 -05:00
Se Yeon Kim c6edf1faff
Default to premium disabled 2021-05-11 15:29:53 -05:00
groovecoder 009bbcee40 start unlimited aliases for premium subscribers 2021-02-26 09:59:24 -06:00
groovecoder f8c70a45ce fix #395: pause email forwarding for bounced addresses 2021-01-26 10:47:39 -06:00
groovecoder 78b9bbbd98 review updates 2020-12-02 06:43:19 -06:00
groovecoder 1f0b61749e remove MAX_NUM_BETA_ALIASES 2020-12-01 17:31:08 -06:00
groovecoder b483461444 remove waitlist and invitations from back-end 2020-08-12 11:14:49 -05:00
groovecoder eaa988df70 wip: add-on metrics events via GMP 2020-07-08 15:09:16 -05:00
luke crouch afcac31c65
Merge branch 'master' into add-ses-309 2020-05-26 10:30:54 -05:00
groovecoder d90b8458aa for #309: start sns_inbound view 2020-05-21 13:09:12 -05:00
luke crouch 21eaaf8494
Merge pull request #209 from mozilla/start-email-wrapping-56
wip: start wrapped_email.html
2020-05-20 12:39:01 -05:00