Skip to content
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

Highlight Restricted live newsletters in detail view #307

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

phillipbarron
Copy link
Contributor

What does this change?

Where a newsletter is live and restricted, show an alert in the newsletters UI to explain that this will prevent it from appearing in MMA or in article promotions appearing. Also, allow editing of this property in the form

How to test

Run locally, set a newsletter to restricted and live, check that the alert appears

Check the the restricted checkbox appears in the edit form

How can we measure success?

By meeting the above conditions

Have we considered potential risks?

Always

Images

Kapture 2024-02-02 at 16 41 14

…etters UI to explain that this will prevent it from appearing in MMA or in article promotions appearing. Also, allow editing of this property in the form
@phillipbarron phillipbarron requested a review from a team as a code owner February 2, 2024 16:49
@@ -76,7 +76,7 @@ export const newsletterDataSchema = z.object({
identityName: kebabOrUnderscoreCasedString().describe('identity name'),
name: nonEmptyString().describe('Name'),
category: newsletterCategoriesSchema,
restricted: z.boolean(),
restricted: z.boolean().describe('Restricted'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could have a longer description for the form field here - maybe something like "Restricted (not shown on frontend)"
Not easy to define since the 'purpose' of restricted it a bit vague.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good shout 👍

@phillipbarron phillipbarron merged commit c5ab1e5 into main Feb 5, 2024
2 checks passed
@phillipbarron phillipbarron deleted the highlight-restricted-live-newsletters branch February 5, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants