Use title case for Starter Pack (#11653)

This commit is contained in:
DS Boyce
2026-09-03 12:26:51 -07:00
committed by GitHub
parent 23d8fcf5ea
commit edcd363fcb
39 changed files with 295 additions and 393 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ export function useListMembershipAddMutation({
onError,
}: {
/**
* Needed for optimistic update of starter pack query
* Needed for optimistic update of Starter Pack query
*/
subject?: bsky.profile.AnyProfileView
onSuccess?: (data: {uri: AtUriString; cid: string}) => void
@@ -66,7 +66,7 @@ export function useListMembershipAddMutation({
})
}, 1e3)
// update WITH_MEMBERSHIPS query for starter packs
// update WITH_MEMBERSHIPS query for Starter Packs
if (subject) {
queryClient.setQueryData<
InfiniteData<app.bsky.graph.getStarterPacksWithMembership.$OutputBody>
@@ -161,7 +161,7 @@ export function useListMembershipRemoveMutation({
})
}, 1e3)
// update WITH_MEMBERSHIPS query for starter packs
// update WITH_MEMBERSHIPS query for Starter Packs
queryClient.setQueryData<
InfiniteData<app.bsky.graph.getStarterPacksWithMembership.$OutputBody>
>(STARTER_PACKS_WITH_MEMBERSHIPS_RKEY(variables.actorDid), old => {
@@ -39,7 +39,7 @@ function makeFollowNotification(
}
describe('groupNotifications', () => {
it('does not group a starter pack follow with an organic follow', () => {
it('does not group a Starter Pack follow with an organic follow', () => {
const pack = 'at://did:plc:alice/app.bsky.graph.starterpack/a'
const grouped = groupNotifications([
@@ -56,7 +56,7 @@ describe('groupNotifications', () => {
expect(grouped[1].additional).toBeUndefined()
})
it('groups follows by starter pack', () => {
it('groups follows by Starter Pack', () => {
const packA = 'at://did:plc:alice/app.bsky.graph.starterpack/a'
const packB = 'at://did:plc:bob/app.bsky.graph.starterpack/b'
+3 -3
View File
@@ -98,7 +98,7 @@ export function useReferenceListOptOutMutation({
>({
mutationFn: async ({referenceListOptOut}) => {
if (!starterPack.list) {
throw new Error('Starter pack does not have a reference list')
throw new Error('Starter Pack does not have a reference list')
}
let nextOptOut: AtUriString | undefined
@@ -292,7 +292,7 @@ export function useCreateStarterPackMutation({
})
onSuccess(data)
},
onError: async error => {
onError: error => {
onError(error)
},
})
@@ -333,7 +333,7 @@ export function useEditStarterPackMutation({
}
if (!bsky.isType(app.bsky.graph.starterpack, currentStarterPack.record)) {
throw new Error('Invalid starter pack')
throw new Error('Invalid Starter Pack')
}
const removedItems = currentListItems.filter(