a whole lot of app clip commits...

Revert "another attempt"

This reverts commit adfd562f02defc8d1e031b7a007d352f69eeb274.

Revert "sigh"

This reverts commit de6296d2814165c59d100f18af23df5b94ceb7c4.

sigh

another attempt

okay maybe a solid solution

change some things

and....try again

try again

sigh...only support iphone

fix app config

remove unused files

temp eas update

cleanup plugin

get app clip working

progress

add more to plugin

start working on build plugin

rename

setup app clip

fix created at

oops, wrong workflow

temp workflow edit

add a bunch of libs to exclusion

drop the fork

rm manual config for clip

fix name as well

fix target name
This commit is contained in:
Hailey
2024-06-14 17:02:57 -07:00
parent 988d41161c
commit 6e69b0a987
22 changed files with 285 additions and 91 deletions
+3 -3
View File
@@ -26,6 +26,7 @@ export function NewskieDialog({
const control = useDialogControl()
const {joinedViaStarterPack} = profile
const profileName = profile.displayName || `@${profile.handle}`
const createdAt = profile.createdAt ?? 0
return (
<>
@@ -52,8 +53,7 @@ export function NewskieDialog({
joinedViaStarterPack?.record,
) ? (
<Trans>
{profileName} joined Bluesky {ago(profile.createdAt, true)}{' '}
ago with{' '}
{profileName} joined Bluesky {ago(createdAt, true)} ago with{' '}
{joinedViaStarterPack?.creator.did === currentAccount?.did
? 'your'
: `${joinedViaStarterPack?.creator.displayName}'s` ||
@@ -63,7 +63,7 @@ export function NewskieDialog({
) : (
<Trans>
<Text style={[a.font_bold, a.text_md]}>{profileName}</Text>{' '}
recently joined Bluesky {ago(profile.createdAt, true)} ago
recently joined Bluesky {ago(createdAt, true)} ago
</Trans>
)}
</Text>
@@ -9,10 +9,12 @@ export function useStarterPackEntry() {
const url = new URL(window.location.href)
if (url.pathname.startsWith('/start/')) {
const [_, _start, name, rkey] = url.pathname.split('/')
const isClip = url.searchParams.get('clip') === 'true'
if (name && rkey) {
setUsedStarterPack({
uri: window.location.href,
isClip,
})
}
}
+4 -11
View File
@@ -20,19 +20,12 @@ export function ProfileHeaderHandle({
const t = useTheme()
const invalidHandle = isInvalidHandle(profile.handle)
const blockHide = profile.viewer?.blocking || profile.viewer?.blockedBy
const createdAt = new Date(profile.createdAt).getTime()
const createdAt = profile.createdAt
? new Date(profile.createdAt).getTime()
: 0
const isNewskie =
createdAt > 0 &&
Date.now() + 60e3 * 24 * DAYS_TO_SHOW_NEWSKIE >
new Date(profile.createdAt).getTime()
console.log({
date: Date.now() + 60e3 * 24 * DAYS_TO_SHOW_NEWSKIE,
createdAt: new Date(profile.createdAt).getTime(),
})
console.log(isNewskie)
createdAt > 0 && Date.now() + 60e3 * 24 * DAYS_TO_SHOW_NEWSKIE > createdAt
return (
<View
@@ -93,6 +93,7 @@ function LandingScreenInner({
const {_} = useLingui()
const t = useTheme()
const setUsedStarterPack = useSetUsedStarterPack()
const usedStarterPack = useUsedStarterPack()
const {isTabletOrDesktop} = useWebMediaQueries()
const sampleProfiles = listItemsSample?.map(item => item.subject)
@@ -119,6 +120,9 @@ function LandingScreenInner({
borderBottomLeftRadius: 10,
borderBottomRightRadius: 10,
},
usedStarterPack?.isClip && {
paddingTop: 100,
},
]}>
<View style={[a.flex_row, a.gap_md, a.pb_sm]}>
<Logo width={76} fill="white" />
+1
View File
@@ -93,6 +93,7 @@ export const schema = z.object({
uri: z.string(),
cid: z.string().optional(),
initialFeed: z.string().optional(),
isClip: z.boolean().optional(),
})
.optional(),
})
+1 -1
View File
@@ -3,7 +3,7 @@ import React from 'react'
import * as persisted from '#/state/persisted'
type StateContext =
| {uri: string; cid?: string; initialFeed?: string}
| {uri: string; cid?: string; initialFeed?: string; isClip?: boolean}
| undefined
type SetContext = (v: StateContext) => void