-
Notifications
You must be signed in to change notification settings - Fork 295
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
SwG module should allow admins to choose a revenue model #4230
Comments
@ChrisAntaki This IB is a bit hard to digest/review, because you started with a PR. The almost only thing to review here without looking at actual code is the first point, the proposed component name, which is always worth including in an IB. Other than that though, you're merely referencing file names where this somehow needs to be included. The IB should be more higher-level, something you can write before writing the PR. Looking at the code and file structure is typically needed for that, but you shouldn't get down to the level of mentioning a file here for example just because it needs that as an import or export etc. It's more about explaining the high-level approach. Things that would be good to cover here for example would be:
The above would be points relevant to think through before writing the code. |
Thanks for your feedback, I tried improving the IB based on it. Please let me know what you think |
Thanks @ChrisAntaki, looks good! IB ✅ |
@ChrisAntaki Can you also add an estimate for the issue? When deciding on one, please factor in a high-level estimate of how much code there will be to review, including potential rounds of feedback - as in, just because something might take you 1 hour to initially come up with, don't just put a 1 on it, unless it's super-straightforward to implement, code-review and test (which essentially applies almost only to wording changes). Other than that, this is now ready for engineering execution! |
Sounds good! I estimated 7 to be safe |
QA Update: ❌@ChrisAntaki I have a few observations.
This is a screencast. Would you like me to create a ticket for this? swg.mp4 |
@ChrisAntaki Can you address the three points by @wpdarren in a follow-up PR?
|
Nice finds, @wpdarren I'll create the follow-up PR today, @felixarntz 👍 |
@aaemnnosttv One question for you in #4281 (comment) |
QA Update: ❌@ChrisAntaki @felixarntz this has passed the QAB and the previous issues fixed other than one observation. The spacing between fields and button seems too big. If you look at my previous screenshots you will see the difference. If you're happy with the spacing that's fine, just wanted to check. Everything else is looking great. Verified:
|
Are you referring to the first screenshot in your comment? Just want to double-check, since in the other screenshot that particular spacing is less (and looks better), so I wonder whether those other screenshots were from a previous iteration. In the first screenshot I agree though that the space above the button looks like too much. However, I'd say this is okay for now, especially since the eventual setup UI will look slightly different. Thanks for flagging it though! Based on your feedback, I'll mark this as QA ✅ now. |
@felixarntz yes, I was referring to the first screenshot. The screenshots below are what they looked like previously. Thanks for taking a look. |
Feature Description
SwG shows different UX to website visitors, depending on what kind of monetization model the publisher chose. Currently there are two options: "subscription" and "contribution". The SwG module should let admins choose one
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
revenueModel
module setting which can be set to eithersubscription
orcontribution
.revenueModel
. The value of the setting should also be displayed in the settings view UI.revenueModel
.revenueModel
should be required to be set in order for the SwG module to be considered "connected".Implementation Brief
RevenueModelInput
SettingsEdit
component to show a loading indicator if the revenue model setting is undefinedRevenueModelInput
component to SwG'sSettingsForm
component, and update corresponding StorybookSettingsView
component, and update corresponding StorybookRevenueModelInput
component to SwG'sSetupForm
component, and update corresponding StorybookrevenueModel
in SwG'sdatastore/base
classdatastore/settings
class (plus tests)revenueModel
setting, defaulting to an empty string (PHP)Test Coverage
SettingsForm
,SettingsView
, andSetupForm
defaultSettings
andvalidSettings
in theSetupForm
testsdatastore/settings
classQA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: