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

@atproto/api@next integration #7344

Merged
merged 158 commits into from
Feb 18, 2025
Merged
Changes from 1 commit
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
3375460
Bump SDK
estrattonbailey Jan 2, 2025
f7ee3a5
Use consistent type in profile query
estrattonbailey Jan 2, 2025
e47f7a1
Omit from constraint for profile shadow
estrattonbailey Jan 2, 2025
8579fa9
Replace isRecord with isValidRecord in QuoteEmbed
estrattonbailey Jan 2, 2025
a9e6164
Omit type from constraint for old ProfileCard
estrattonbailey Jan 2, 2025
1c956a2
Omit type from constraint in profile queries where appropriate
estrattonbailey Jan 2, 2025
ae48fdf
Use correct type for update profile mutation
estrattonbailey Jan 2, 2025
cb4add1
Conslidate and fix check for isValidRecord in Post.tsx
estrattonbailey Jan 2, 2025
c98a97e
Replace isRecord with isValidRecord in PostThreadItem
estrattonbailey Jan 2, 2025
05eae07
Remove redundant cast in PostThreadFollowBtn
estrattonbailey Jan 2, 2025
f02f254
Ignore errors in DebugMod screen
estrattonbailey Jan 2, 2025
5c7e38e
Use matching type in ProfileFollows screen
estrattonbailey Jan 2, 2025
3ea6ec1
Use matching type in ProfileFollowers screen
estrattonbailey Jan 2, 2025
b0d195a
Migrate to isValidRecord in PostFeedItem
estrattonbailey Jan 2, 2025
aac65a8
Use matching type if PostRepostedBy
estrattonbailey Jan 2, 2025
ac55917
Omit type from constraint in avatar props
estrattonbailey Jan 2, 2025
b7da85d
Use matching types in NotificationFeedItem
estrattonbailey Jan 2, 2025
a238666
Todo
estrattonbailey Jan 2, 2025
2c782d7
Use isValidRecord in NotfyFeedItem
estrattonbailey Jan 2, 2025
9182a6a
Improve MediaPreview types
estrattonbailey Jan 2, 2025
37c5329
Migrate another isValidRecord in NotificationFeedItem
estrattonbailey Jan 2, 2025
b068561
Migrate to isValidView in queries/util
estrattonbailey Jan 2, 2025
68626a5
Migrate to isValidRecord in threadgate/util
estrattonbailey Jan 2, 2025
1e8823a
Fix types in threadgates
estrattonbailey Jan 2, 2025
876ce4a
Fix up types in starter-packs queries
estrattonbailey Jan 2, 2025
a7b0111
Todo
estrattonbailey Jan 2, 2025
3b3a5e0
Specify exact types in search-posts
estrattonbailey Jan 2, 2025
a5c1fd7
Use internal type util to align types
estrattonbailey Jan 2, 2025
626cfc8
Ditto last
estrattonbailey Jan 2, 2025
f2a8c5c
Migrate postgate/index
estrattonbailey Jan 3, 2025
46bf56e
Specify exact types in post-thread
estrattonbailey Jan 3, 2025
0531cc7
Use correct type in post-quotes
estrattonbailey Jan 3, 2025
16addd8
FIX potential bug in post-thread
estrattonbailey Jan 3, 2025
aa18e81
Use correct type in post-feed
estrattonbailey Jan 3, 2025
beb62f4
Add correct type guards to notifications/feed
estrattonbailey Jan 3, 2025
4053b72
Migrate a guard in notifications/util
estrattonbailey Jan 3, 2025
6c7cfc0
Migrate guard in Wizard/State
estrattonbailey Jan 3, 2025
e23ce16
[@next] Profile handling, migrate `ProfileCard` (#7347)
estrattonbailey Jan 6, 2025
55055c1
Add parseEmbed utils
estrattonbailey Jan 6, 2025
9e7d34a
Expand AnyProfileView to include chat profile view, update post shado…
estrattonbailey Jan 6, 2025
a4e4e12
Cast for perf reasons
estrattonbailey Jan 6, 2025
e1a60bf
Tighten up types now that we have AnyProfileView
estrattonbailey Jan 6, 2025
e4b6972
Add fastIsType util
estrattonbailey Jan 6, 2025
f58dc57
Use `assertDid`
estrattonbailey Jan 7, 2025
4e9388a
Use util types
estrattonbailey Jan 7, 2025
b100d18
Comment
estrattonbailey Jan 7, 2025
09cb5aa
Use fastIsType where no validation was happening before
estrattonbailey Jan 7, 2025
31ae185
suggestions (#7382)
matthieusieben Jan 7, 2025
1c8b989
Use new util
estrattonbailey Jan 7, 2025
248bff2
Rename to dangerousIsType
estrattonbailey Jan 7, 2025
964fc20
Convert object shape
estrattonbailey Jan 7, 2025
31673b6
Use dangerous util
estrattonbailey Jan 7, 2025
44cb25d
Use dangerous util
estrattonbailey Jan 7, 2025
e2c3600
Use dangerous util, we can trust post records
estrattonbailey Jan 7, 2025
7dcf6b8
Use dangerous util
estrattonbailey Jan 7, 2025
9990c83
Use AnyProfileVIew
estrattonbailey Jan 7, 2025
a5e03d1
Convert object shape
estrattonbailey Jan 7, 2025
9499e2f
Clean up handling
estrattonbailey Jan 7, 2025
54a5d56
Patch moderateProfile to accept known profile views, to discuss
estrattonbailey Jan 7, 2025
4a1695b
Add AnyStarterPackView and related, implement in first usage
estrattonbailey Jan 7, 2025
5dbb2c2
Remove validation, fix type, fix ref
estrattonbailey Jan 7, 2025
23672e0
Migrate over list-conversations
estrattonbailey Jan 7, 2025
283a647
Clarify intent behind precacheProfile and its unstable query cache
estrattonbailey Jan 7, 2025
e034443
Clean up unstable profile cache
estrattonbailey Jan 7, 2025
94d8253
Fix types during label creation in PwiOptOut (#7346)
estrattonbailey Jan 7, 2025
29ef63c
Tighten types in queries/list
estrattonbailey Jan 7, 2025
1b13ea5
Chat: use correct profile views
estrattonbailey Jan 7, 2025
374d28d
Chat: fix log type check
estrattonbailey Jan 7, 2025
d7d3b9e
Chat: construct lexically correct shape, even though it's only intern…
estrattonbailey Jan 7, 2025
996e857
Chat: use correct profile types
estrattonbailey Jan 7, 2025
227bef8
Chat: fix type check in logs
estrattonbailey Jan 7, 2025
085492e
Starter: use correct profile types
estrattonbailey Jan 7, 2025
ea4c2de
Starter: use correct profile types
estrattonbailey Jan 7, 2025
4299f0a
Starter: tighten types to match lex
estrattonbailey Jan 7, 2025
61bf929
Any profile type will work in blocked-and-muted
estrattonbailey Jan 7, 2025
2622c85
Use dangerous util
estrattonbailey Jan 7, 2025
9449edf
Use dangerousIsType
estrattonbailey Jan 7, 2025
ad71585
Update new ProfileCard to use AnyProfileView
estrattonbailey Jan 7, 2025
763dd5b
Use dangerousIsType
estrattonbailey Jan 7, 2025
839be5f
Remove outdated todo
estrattonbailey Jan 7, 2025
f5530aa
Use correct profile type
estrattonbailey Jan 7, 2025
db63cc1
Use correct profile types
estrattonbailey Jan 7, 2025
c691f7b
Tighten up types
estrattonbailey Jan 8, 2025
1cbbf2b
Use dangerousIsType
estrattonbailey Jan 8, 2025
cf814ed
Chat: more type fixes
estrattonbailey Jan 8, 2025
30fd3f5
Remove unused file
estrattonbailey Jan 8, 2025
6f1fab4
Add a few utils
estrattonbailey Jan 8, 2025
d35df90
Remove unused file
estrattonbailey Jan 8, 2025
3047644
Ignore feedPost.__source
estrattonbailey Jan 8, 2025
5d15b25
Clean up types, leave validation in critical path
estrattonbailey Jan 8, 2025
4020584
Use dangerousIstype
estrattonbailey Jan 8, 2025
7dea8b0
Use ANyProfileView
estrattonbailey Jan 8, 2025
9773355
Use isValidRecord
estrattonbailey Jan 8, 2025
f6488dd
Use dangerousIsType
estrattonbailey Jan 8, 2025
e7b17b5
Fix types in ListCard
estrattonbailey Jan 8, 2025
a9c8c77
Fix FeedInterstitials types
estrattonbailey Jan 8, 2025
d7c45f0
Fix types in FeedCard
estrattonbailey Jan 8, 2025
54ecbd7
Fix types in dms ReportDialog
estrattonbailey Jan 8, 2025
696e3f9
Fix types in SearchablePeopleList
estrattonbailey Jan 8, 2025
5641308
Fix bad type in composer opts
estrattonbailey Jan 8, 2025
18e329c
Starter: ok these need to be loose too
estrattonbailey Jan 8, 2025
c4810cb
Clarify docs
estrattonbailey Jan 8, 2025
976e830
Less code
estrattonbailey Jan 8, 2025
0d28fd5
Use package exports
estrattonbailey Jan 8, 2025
2f0dd92
Use package exports
estrattonbailey Jan 8, 2025
40db806
Bump sdk, update $Typed imports
estrattonbailey Jan 8, 2025
af3dcb2
Format
estrattonbailey Jan 8, 2025
fad1685
Format
estrattonbailey Jan 8, 2025
7822bcd
Fix weird TS error
estrattonbailey Jan 8, 2025
be7c6cb
Remove patch
estrattonbailey Jan 8, 2025
d05a11b
Beter name
estrattonbailey Jan 8, 2025
c488e92
It's memo, can validate
estrattonbailey Jan 8, 2025
27fe260
Tighten up parseEmbed, dogfood
estrattonbailey Jan 9, 2025
2583c17
Merge remote-tracking branch 'origin/main' into next/base
estrattonbailey Feb 5, 2025
3ed20f1
Bump sdk
estrattonbailey Feb 5, 2025
f6b2105
Use asPredicate
estrattonbailey Feb 5, 2025
155be64
Loosen types a bit
estrattonbailey Feb 5, 2025
fccc79f
use asPredicate
estrattonbailey Feb 5, 2025
eccbc56
Fix types
estrattonbailey Feb 5, 2025
df5c9be
Use asPredicate
estrattonbailey Feb 5, 2025
62ecada
Use asPredicate
estrattonbailey Feb 5, 2025
3a9f4c4
Use asPredicate
estrattonbailey Feb 5, 2025
6854e65
Clean up upsertProfile types
estrattonbailey Feb 5, 2025
7126d8c
Use asPredicate
estrattonbailey Feb 5, 2025
3147282
Use Un util
estrattonbailey Feb 5, 2025
704d3c7
Fix types
estrattonbailey Feb 5, 2025
98e7d74
Use new AnyProfileView
estrattonbailey Feb 5, 2025
c60346b
Use dangerousIsType
estrattonbailey Feb 5, 2025
06be7f8
Use asPredicate
estrattonbailey Feb 5, 2025
707bb3a
Use asPredicate
estrattonbailey Feb 5, 2025
e098581
Add fallback content-type to pass typecheck
estrattonbailey Feb 5, 2025
58f1e87
Clean up upsertProfile types
estrattonbailey Feb 5, 2025
2269acd
Align types
estrattonbailey Feb 5, 2025
8f57d6e
Use dangerousIsType
estrattonbailey Feb 5, 2025
4d8c580
Use dangerousIsType
estrattonbailey Feb 5, 2025
f8a52aa
Use asPredicate
estrattonbailey Feb 5, 2025
c68688a
Align types
estrattonbailey Feb 5, 2025
38a0d29
Convert findLast
estrattonbailey Feb 5, 2025
fbc30cc
Align types
estrattonbailey Feb 5, 2025
2ad2219
Just ignore type errors and use findLast
estrattonbailey Feb 6, 2025
59e32b3
Rename atproto -> bsky
estrattonbailey Feb 6, 2025
119f56b
Add validate util
estrattonbailey Feb 6, 2025
bf5f604
Fix type error
estrattonbailey Feb 6, 2025
1a210ac
Loosen types
estrattonbailey Feb 11, 2025
19a0569
Export post
estrattonbailey Feb 11, 2025
5a13c4c
rename atp bsky
estrattonbailey Feb 11, 2025
be40a03
Remove unused code
estrattonbailey Feb 11, 2025
e599f0b
minor changes
matthieusieben Feb 13, 2025
617f11b
Bump deps
estrattonbailey Feb 13, 2025
81ddda2
Merge remote-tracking branch 'origin/main' into next/base
estrattonbailey Feb 13, 2025
d204c8c
Fix types
estrattonbailey Feb 13, 2025
506f018
Tighten back up loose check
estrattonbailey Feb 13, 2025
1e92344
Tighten back up loose check
estrattonbailey Feb 13, 2025
1f4b768
Fix small bug
estrattonbailey Feb 13, 2025
6e40143
Update comment
estrattonbailey Feb 13, 2025
8e6b3a9
Revert change
estrattonbailey Feb 13, 2025
f8aeb8c
Merge remote-tracking branch 'origin/main' into next/base
estrattonbailey Feb 17, 2025
9190079
Merge remote-tracking branch 'origin/main' into next/base
estrattonbailey Feb 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Omit type from constraint for old ProfileCard
estrattonbailey committed Jan 8, 2025
commit a9e6164d299a25b55d47f9d4f6e8b1e09e033a72
2 changes: 1 addition & 1 deletion src/view/com/profile/ProfileCard.tsx
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ export function ProfileCard({
showKnownFollowers,
}: {
testID?: string
profile: AppBskyActorDefs.ProfileViewBasic
profile: Omit<AppBskyActorDefs.ProfileViewBasic, '$type'>
noModFilter?: boolean
noBg?: boolean
noBorder?: boolean