Skip to content

Commit 7da69f4

Browse files
committed
Remove outdated constellation/blacksky-verification overlay system
The canonical appview handles verification server-side via the trustedVerifier flag on the actor table. The client-side constellation-based overlay was from an earlier fork and is no longer needed. Removes: constellation.ts, blacksky-verification.ts, and 4 dead preference providers (constellation-enabled, constellation-instance, blacksky-verification, direct-fetch-records).
1 parent aba77bf commit 7da69f4

10 files changed

Lines changed: 5 additions & 744 deletions

File tree

src/components/verification/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {useMemo} from 'react'
22

3-
import {useMaybeBlackskyVerificationProfileOverlay} from '#/state/queries/blacksky-verification'
43
import {usePreferencesQuery} from '#/state/queries/preferences'
54
import {useCurrentAccountProfile} from '#/state/queries/useCurrentAccountProfile'
65
import {useSession} from '#/state/session'
@@ -46,9 +45,9 @@ export function useFullVerificationState({
4645
verifications.length > 0
4746
const hasIssuedVerification = Boolean(
4847
viewerState &&
49-
viewerState.role === 'verifier' &&
50-
// profileState.role === 'default' &&
51-
verifications.find(v => v.issuer === currentAccount?.did),
48+
viewerState.role === 'verifier' &&
49+
// profileState.role === 'default' &&
50+
verifications.find(v => v.issuer === currentAccount?.did),
5251
)
5352

5453
return {
@@ -89,7 +88,7 @@ export function useSimpleVerificationState({
8988
() => preferences.data?.verificationPrefs || {hideBadges: false},
9089
[preferences.data?.verificationPrefs],
9190
)
92-
const profile = useMaybeBlackskyVerificationProfileOverlay(baseProfile)
91+
const profile = baseProfile
9392

9493
return useMemo(() => {
9594
if (!profile || !profile.verification) {

src/state/cache/profile-shadow.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import {findAllProfilesInQueryData as findAllProfilesInSuggestedFollowsQueryData
2828
import {findAllProfilesInQueryData as findAllProfilesInSuggestedUsersQueryData} from '#/state/queries/trending/useGetSuggestedUsersQuery'
2929
import {findAllProfilesInQueryData as findAllProfilesInPostThreadV2QueryData} from '#/state/queries/usePostThread/queryCache'
3030
import type * as bsky from '#/types/bsky'
31-
import {useBlackskyVerificationProfileOverlay} from '../queries/blacksky-verification'
3231
import {castAsShadow, type Shadow} from './types'
3332

3433
export type {Shadow} from './types'
@@ -75,7 +74,7 @@ export function useProfileShadow<
7574
return castAsShadow(profile)
7675
}
7776
}, [profile, shadow])
78-
return useBlackskyVerificationProfileOverlay(shadowed)
77+
return shadowed
7978
}
8079

8180
/**

src/state/persisted/schema.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,11 @@ const schema = z.object({
128128

129129
// blacksky
130130
goLinksEnabled: z.boolean().optional(),
131-
constellationEnabled: z.boolean().optional(),
132-
directFetchRecords: z.boolean().optional(),
133131
noAppLabelers: z.boolean().optional(),
134132
noDiscoverFallback: z.boolean().optional(),
135133
repostCarouselEnabled: z.boolean().optional(),
136134
hideFollowNotifications: z.boolean().optional(),
137-
constellationInstance: z.string().optional(),
138135
showLinkInHandle: z.boolean().optional(),
139-
blackskyVerification: z
140-
.object({
141-
enabled: z.boolean(),
142-
trusted: z.array(z.string()),
143-
})
144-
.optional(),
145136

146137
/** @deprecated */
147138
mutedThreads: z.array(z.string()),
@@ -197,25 +188,11 @@ export const defaults: Schema = {
197188

198189
// blacksky
199190
goLinksEnabled: true,
200-
constellationEnabled: false,
201-
directFetchRecords: false,
202191
noAppLabelers: false,
203192
noDiscoverFallback: false,
204193
repostCarouselEnabled: false,
205194
hideFollowNotifications: false,
206-
constellationInstance: 'https://constellation.microcosm.blue/',
207195
showLinkInHandle: false,
208-
blackskyVerification: {
209-
enabled: false,
210-
// https://blacksky.community/profile/did:plc:p2cp5gopk7mgjegy6wadk3ep/post/3lndyqyyr4k2k
211-
trusted: [
212-
'did:plc:z72i7hdynmk6r22z27h6tvur',
213-
'did:plc:eclio37ymobqex2ncko63h4r',
214-
'did:plc:inz4fkbbp7ms3ixufw6xuvdi',
215-
'did:plc:b2kutgxqlltwc6lhs724cfwr',
216-
'did:plc:kta7dqcqoamo5ixlajxbtjps',
217-
],
218-
},
219196
}
220197

221198
export function tryParse(rawData: string): Schema | undefined {

src/state/preferences/blacksky-verification.tsx

Lines changed: 0 additions & 106 deletions
This file was deleted.

src/state/preferences/constellation-enabled.tsx

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/state/preferences/constellation-instance.tsx

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/state/preferences/direct-fetch-records.tsx

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)