Skip to content

Commit

Permalink
Fix newsletter tags for docs/auth (#9335)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Cousens <[email protected]>
  • Loading branch information
benderham and dcousens committed Sep 18, 2024
1 parent b55081c commit 33258b5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-glasses-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@keystone-6/auth": minor
---

Updates the welcome page newsletter to include Thinkmill
2 changes: 1 addition & 1 deletion docs/app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function subscribeToButtondown (pathname: string, formData: FormDat
email: formData.get('email'),
tags: [
...formData.getAll('tags'),
`source:keystonejs.com${pathname}`,
`source:keystonejs.com${pathname}`.substring(0, 80),
],
}

Expand Down
4 changes: 2 additions & 2 deletions docs/components/SubscribeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function SubscribeForm ({ autoFocus, stacked, children, ...props }: Subsc
name="tags"
id="mailing-list-keystone"
css={{ height: '1rem', width: '1rem' }}
value="keystone_list"
value="list:keystone"
defaultChecked
/>
<label css={{ fontSize: '0.9rem' }} htmlFor="mailing-list-keystone">
Expand All @@ -97,7 +97,7 @@ export function SubscribeForm ({ autoFocus, stacked, children, ...props }: Subsc
name="tags"
id="mailing-list-thinkmill"
css={{ height: '1rem', width: '1rem' }}
value="thinkmill_list"
value="list:thinkmill"
/>
<label css={{ fontSize: '0.9rem' }} htmlFor="mailing-list-thinkmill">
Thinkmill news (
Expand Down
4 changes: 2 additions & 2 deletions packages/auth/src/pages/InitPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ function Welcome ({ value, onContinue }: { value: any, onContinue: () => void })
}

const tags = ['source:@keystone-6/auth']
if (subscribe.keystone) tags.push('keystone_list')
if (subscribe.thinkmill) tags.push('thinkmill_list')
if (subscribe.keystone) tags.push('list:keystone')
if (subscribe.thinkmill) tags.push('list:thinkmill')

const res = await fetch(signupURL, {
method: 'POST',
Expand Down

0 comments on commit 33258b5

Please sign in to comment.