diff --git a/.claude/.pre-pr-sweep-state b/.claude/.pre-pr-sweep-state
new file mode 100644
index 0000000000..f6f2d8d645
--- /dev/null
+++ b/.claude/.pre-pr-sweep-state
@@ -0,0 +1 @@
+alt-blur@3076a2b5a593b0d7b37198b5aebfe3a222afd52d
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000000..9404af75f7
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,44 @@
+version: 2
+# Dependabot auto-update config.
+#
+# Cooldown (7 days) is the point of this config: it delays version-update
+# PRs until a newly-published version has aged. Supply-chain attacks like
+# the tanstack Shai-Hulud compromise (2026-05-11) live minutes-to-hours
+# before the registry yanks them; a 7-day cooldown keeps poisoned
+# versions out of our lockfiles.
+#
+# Security updates bypass cooldown and continue to flow immediately. See:
+# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#cooldown
+#
+# Auto-merge is deliberately NOT enabled. Every dependabot PR gets human
+# review.
+
+updates:
+ - package-ecosystem: npm
+ directory: /
+ schedule:
+ interval: weekly
+ day: monday
+ cooldown:
+ default-days: 7
+ open-pull-requests-limit: 5
+ groups:
+ production:
+ dependency-type: production
+ update-types: [minor, patch]
+ development:
+ dependency-type: development
+ update-types: [minor, patch]
+
+ - package-ecosystem: github-actions
+ directory: /
+ schedule:
+ interval: weekly
+ day: monday
+ cooldown:
+ default-days: 7
+ open-pull-requests-limit: 3
+ groups:
+ actions:
+ patterns: ["*"]
+ update-types: [minor, patch]
diff --git a/.github/workflows/build-submit-android.yml b/.github/workflows/build-submit-android.yml
index 2748f783ba..fe9d5b1c5b 100644
--- a/.github/workflows/build-submit-android.yml
+++ b/.github/workflows/build-submit-android.yml
@@ -47,7 +47,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: 🔨 Setup Expo CLI
- uses: expo/expo-github-action@main
+ uses: expo/expo-github-action@v9
with:
eas-version: '19.0.5'
packager: 'pnpm --allow-build=dtrace-provider'
@@ -128,7 +128,7 @@ jobs:
- name: 🔔 Notify Slack of Production Build
if: ${{ inputs.profile == 'production' }}
- uses: slackapi/slack-github-action@v2.1.1
+ uses: slackapi/slack-github-action@v3.0.3
with:
webhook: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
webhook-type: incoming-webhook
@@ -138,7 +138,7 @@ jobs:
- name: 🔔 Notify Slack of Testflight Build
if: ${{ inputs.profile != 'production' }}
- uses: slackapi/slack-github-action@v2.1.1
+ uses: slackapi/slack-github-action@v3.0.3
with:
webhook: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
webhook-type: incoming-webhook
@@ -174,7 +174,7 @@ jobs:
- name: 🔔 Notify Slack of Production APK Build
if: ${{ inputs.profile == 'production' }}
- uses: slackapi/slack-github-action@v2.1.1
+ uses: slackapi/slack-github-action@v3.0.3
with:
webhook: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
webhook-type: incoming-webhook
diff --git a/.github/workflows/build-submit-ios.yml b/.github/workflows/build-submit-ios.yml
index fd09b64577..d2cc7a7abb 100644
--- a/.github/workflows/build-submit-ios.yml
+++ b/.github/workflows/build-submit-ios.yml
@@ -47,7 +47,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: 🔨 Setup Expo CLI
- uses: expo/expo-github-action@main
+ uses: expo/expo-github-action@v9
with:
eas-version: '19.0.5'
packager: 'pnpm --allow-build=dtrace-provider'
@@ -155,7 +155,7 @@ jobs:
- name: 🔔 Notify Slack of Production Build
if: ${{ inputs.profile == 'production' }}
- uses: slackapi/slack-github-action@v2.1.1
+ uses: slackapi/slack-github-action@v3.0.3
with:
webhook: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
webhook-type: incoming-webhook
diff --git a/.github/workflows/bundle-deploy-eas-update.yml b/.github/workflows/bundle-deploy-eas-update.yml
index f4be27b0de..983494dd18 100644
--- a/.github/workflows/bundle-deploy-eas-update.yml
+++ b/.github/workflows/bundle-deploy-eas-update.yml
@@ -87,7 +87,7 @@ jobs:
run: pnpm typecheck
- name: 🔨 Setup EAS
- uses: expo/expo-github-action@main
+ uses: expo/expo-github-action@v9
if: ${{ !steps.fingerprint.outputs.includes-changes }}
with:
eas-version: '19.0.5'
@@ -180,7 +180,7 @@ jobs:
cache: pnpm
- name: 🔨 Setup EAS
- uses: expo/expo-github-action@main
+ uses: expo/expo-github-action@v9
with:
eas-version: '19.0.5'
packager: 'pnpm --allow-build=dtrace-provider'
@@ -327,7 +327,7 @@ jobs:
cache: pnpm
- name: 🔨 Setup EAS
- uses: expo/expo-github-action@main
+ uses: expo/expo-github-action@v9
with:
eas-version: '19.0.5'
packager: 'pnpm --allow-build=dtrace-provider'
@@ -386,7 +386,7 @@ jobs:
path: build.apk
- name: 🔔 Notify Slack
- uses: slackapi/slack-github-action@v2.1.1
+ uses: slackapi/slack-github-action@v3.0.3
with:
webhook: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
webhook-type: incoming-webhook
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index d7715e8ea2..93729874b6 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -6,33 +6,42 @@ on:
branches:
- main
concurrency:
- group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
+ group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: true
+# These jobs only check out the repo and run checks, so read access to the
+# repo contents is all the GITHUB_TOKEN needs.
+permissions:
+ contents: read
+
jobs:
linting:
name: Run linters
runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ job: [lint, prettier]
steps:
- name: Check out Git repository
uses: actions/checkout@v5
- - name: Verify Node version pins match .nvmrc
+ - name: Verify Node version pins match package.json
run: |
set -euo pipefail
- expected=$(tr -d '[:space:]' < .nvmrc)
+ expected=$(node -p "require('./package.json').engines.node.replace(/[^0-9.]/g, '')")
rc=0
check() {
if [ "$2" != "$expected" ]; then
- echo "::error file=$1::Node version mismatch: $1 pins '$2' but .nvmrc is '$expected'"
+ echo "::error file=$1::Node version mismatch: $1 pins '$2' but package.json is '$expected'"
rc=1
fi
}
- # FROM node:X.Y.Z — service runtime images
+ # FROM node:X.Y.Z - service runtime images
for f in Dockerfile.bskylink Dockerfile.bskyogcard; do
v=$(grep -oE 'FROM node:[0-9]+\.[0-9]+\.[0-9]+' "$f" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | sort -u)
check "$f" "$v"
done
- # ENV NODE_VERSION=X.Y.Z — Go images that nvm-install Node for the JS build stage
+ # ENV NODE_VERSION=X.Y.Z - Go images that nvm-install Node for the JS build stage
for f in Dockerfile.embedr; do
v=$(grep -oE 'NODE_VERSION=[0-9]+\.[0-9]+\.[0-9]+' "$f" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | sort -u)
check "$f" "$v"
@@ -53,10 +62,42 @@ jobs:
command: pnpm install --frozen-lockfile
attempt_limit: 3
attempt_delay: 2000
- - name: Lint check
- run: pnpm lint
- - name: Prettier check
- run: pnpm prettier --check .
+ - name: Lint checks
+ run: pnpm ${{ matrix.job }}
+ # Aggregates the matrix results into a single stable check name so branch
+ # protection can require "Run linters" regardless of how many matrix jobs run.
+ # The result is asserted in `run` (not `if`) so a malformed expression can
+ # never silently skip the check and report a false pass.
+ linting-summary:
+ name: Run linters
+ if: always()
+ needs: [linting]
+ runs-on: ubuntu-latest
+ steps:
+ - name: Require linting to have succeeded
+ env:
+ RESULT: ${{ needs.linting.result }}
+ run: |
+ echo "linting result: $RESULT"
+ test "$RESULT" = "success"
+ typechecking:
+ name: Run typecheck
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out Git repository
+ uses: actions/checkout@v5
+ - uses: pnpm/action-setup@v6
+ - name: Install node
+ uses: actions/setup-node@v6
+ with:
+ node-version-file: package.json
+ cache: pnpm
+ - name: pnpm install
+ uses: Wandalen/wretry.action@master
+ with:
+ command: pnpm install --frozen-lockfile
+ attempt_limit: 3
+ attempt_delay: 2000
- name: Check & compile i18n
run: pnpm intl:build
- name: Type check
@@ -64,6 +105,10 @@ jobs:
testing:
name: Run tests
runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ shard: [1, 2, 3, 4]
steps:
- name: Check out Git repository
uses: actions/checkout@v5
@@ -83,4 +128,20 @@ jobs:
run: pnpm intl:build
- name: Run tests
run: |
- NODE_ENV=test pnpm test --forceExit
+ NODE_ENV=test pnpm test --forceExit --shard=${{ matrix.shard }}/${{ strategy.job-total }}
+ # Aggregates the sharded test results into a single stable check name so branch
+ # protection can require "Run tests" regardless of how many shards run.
+ # The result is asserted in `run` (not `if`) so a malformed expression can
+ # never silently skip the check and report a false pass.
+ testing-summary:
+ name: Run tests
+ if: always()
+ needs: [testing]
+ runs-on: ubuntu-latest
+ steps:
+ - name: Require testing to have succeeded
+ env:
+ RESULT: ${{ needs.testing.result }}
+ run: |
+ echo "testing result: $RESULT"
+ test "$RESULT" = "success"
diff --git a/.github/workflows/pull-request-comment.yml b/.github/workflows/pull-request-comment.yml
index 3b70b754ca..a497a5625d 100644
--- a/.github/workflows/pull-request-comment.yml
+++ b/.github/workflows/pull-request-comment.yml
@@ -94,7 +94,7 @@ jobs:
core.setOutput('head-ref', pr.data.head.ref);
- name: 💬 Drop a comment
- uses: marocchino/sticky-pull-request-comment@v2
+ uses: marocchino/sticky-pull-request-comment@v3
with:
header: pull-request-eas-build-${{ steps.pr-info.outputs.head-sha }}
number: ${{ github.event.issue.number }}
@@ -141,7 +141,7 @@ jobs:
run: pnpm typecheck
- name: 🔨 Setup EAS
- uses: expo/expo-github-action@main
+ uses: expo/expo-github-action@v9
with:
eas-version: '19.0.5'
packager: 'pnpm --allow-build=dtrace-provider'
@@ -181,7 +181,7 @@ jobs:
RUNTIME_VERSION:
- name: 💬 Drop a comment
- uses: marocchino/sticky-pull-request-comment@v2
+ uses: marocchino/sticky-pull-request-comment@v3
env:
ISSUE_NUMBER: ${{ github.event.issue.number }}
with:
@@ -198,7 +198,7 @@ jobs:
*Generated by [PR labeler](https://github.com/expo/expo/actions/workflows/pr-labeler.yml) 🤖*
- name: 💬 Drop a comment
- uses: marocchino/sticky-pull-request-comment@v2
+ uses: marocchino/sticky-pull-request-comment@v3
if: failure()
with:
header: pull-request-eas-build-${{ steps.pr-info.outputs.head-sha }}
diff --git a/.github/workflows/pull-request-commit.yml b/.github/workflows/pull-request-commit.yml
index 722af1f000..976fa35662 100644
--- a/.github/workflows/pull-request-commit.yml
+++ b/.github/workflows/pull-request-commit.yml
@@ -96,7 +96,7 @@ jobs:
excluded_assets: "(.+).chunk.js|(.+).js.map|(.+).json|(.+).png|(.+).svg|(.+).webp|(.+).jpg|(.+).ico"
- name: 💬 Drop a comment
- uses: marocchino/sticky-pull-request-comment@v2
+ uses: marocchino/sticky-pull-request-comment@v3
with:
header: bundle-diff
message: |
@@ -133,7 +133,7 @@ jobs:
profile: pull-request
- name: 💬 Drop a comment
- uses: marocchino/sticky-pull-request-comment@v2
+ uses: marocchino/sticky-pull-request-comment@v3
if: ${{ steps.fingerprint.outputs.includes-changes }}
with:
header: fingerprint-diff
@@ -151,7 +151,7 @@ jobs:
*Generated by [PR labeler](https://github.com/expo/expo/actions/workflows/pr-labeler.yml) 🤖*
- name: 💬 Delete comment
- uses: marocchino/sticky-pull-request-comment@v2
+ uses: marocchino/sticky-pull-request-comment@v3
if: ${{ !steps.fingerprint.outputs.includes-changes }}
with:
header: fingerprint-diff
diff --git a/.github/workflows/sync-internal.yaml b/.github/workflows/sync-internal.yaml
index 562ce96bea..03120eaebc 100644
--- a/.github/workflows/sync-internal.yaml
+++ b/.github/workflows/sync-internal.yaml
@@ -15,7 +15,7 @@ jobs:
fetch-depth: 0
- name: Generate GitHub App Token
id: app-token
- uses: actions/create-github-app-token@v1
+ uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.SYNC_INTERNAL_APP_ID }}
private-key: ${{ secrets.SYNC_INTERNAL_PK }}
diff --git a/assets/images/chat-desktop-bg-dark.webp b/assets/images/chat-desktop-bg-dark.webp
new file mode 100644
index 0000000000..9a3929f2f2
Binary files /dev/null and b/assets/images/chat-desktop-bg-dark.webp differ
diff --git a/assets/images/chat-desktop-bg-light.webp b/assets/images/chat-desktop-bg-light.webp
new file mode 100644
index 0000000000..099a1045a3
Binary files /dev/null and b/assets/images/chat-desktop-bg-light.webp differ
diff --git a/assets/images/chat-mobile-bg-dark.webp b/assets/images/chat-mobile-bg-dark.webp
new file mode 100644
index 0000000000..1ed3c11051
Binary files /dev/null and b/assets/images/chat-mobile-bg-dark.webp differ
diff --git a/assets/images/chat-mobile-bg-light.webp b/assets/images/chat-mobile-bg-light.webp
new file mode 100644
index 0000000000..f14a816c70
Binary files /dev/null and b/assets/images/chat-mobile-bg-light.webp differ
diff --git a/bskyweb/cmd/bskyweb/server.go b/bskyweb/cmd/bskyweb/server.go
index 4a4ba2fde3..cc5119e8d4 100644
--- a/bskyweb/cmd/bskyweb/server.go
+++ b/bskyweb/cmd/bskyweb/server.go
@@ -339,6 +339,7 @@ func serve(cctx *cli.Context) error {
e.GET("/messages/inbox", server.WebGeneric)
e.GET("/messages/:conversation", server.WebGeneric)
e.GET("/messages/:conversation/settings", server.WebGeneric)
+ e.GET("/messages/:conversation/requests", server.WebGeneric)
// profile endpoints; only first populates info
e.GET("/profile/:handleOrDID", server.WebProfile)
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index 40b918e771..5b7eef4c94 100644
--- a/eslint-suppressions.json
+++ b/eslint-suppressions.json
@@ -76,7 +76,7 @@
},
"src/components/Post/Embed/ImageEmbed.tsx": {
"@typescript-eslint/no-explicit-any": {
- "count": 1
+ "count": 2
}
},
"src/components/Post/Embed/VideoEmbed/VideoEmbedInner/web-controls/utils.tsx": {
@@ -169,7 +169,7 @@
},
"src/components/images/AutoSizedImage.tsx": {
"@typescript-eslint/no-explicit-any": {
- "count": 1
+ "count": 2
}
},
"src/components/images/Gallery/index.tsx": {
diff --git a/modules/bottom-sheet/android/src/main/java/expo/modules/bottomsheet/BottomSheetView.kt b/modules/bottom-sheet/android/src/main/java/expo/modules/bottomsheet/BottomSheetView.kt
index b7e81a61f6..1b9224c6e7 100644
--- a/modules/bottom-sheet/android/src/main/java/expo/modules/bottomsheet/BottomSheetView.kt
+++ b/modules/bottom-sheet/android/src/main/java/expo/modules/bottomsheet/BottomSheetView.kt
@@ -41,11 +41,14 @@ class BottomSheetView(
private val screenHeight: Float =
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.VANILLA_ICE_CREAM) {
// API 35+: edge-to-edge is mandatory, heightPixels is the full display
- context.resources.displayMetrics.heightPixels.toFloat()
+ context.resources.displayMetrics.heightPixels
+ .toFloat()
} else if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.R) {
// API 30-34: heightPixels may exclude nav bar, use currentWindowMetrics
val wm = context.getSystemService(Context.WINDOW_SERVICE) as android.view.WindowManager
- wm.currentWindowMetrics.bounds.height().toFloat()
+ wm.currentWindowMetrics.bounds
+ .height()
+ .toFloat()
} else {
// API < 30: currentWindowMetrics not available, use getRealSize
// which includes system bars (heightPixels may exclude them)
@@ -166,6 +169,7 @@ class BottomSheetView(
when {
// Full height sheets
contentHeight >= screenHeight -> 0.99f
+
else -> this.clampRatio(this.getTargetHeight() / screenHeight)
}
@@ -271,8 +275,9 @@ class BottomSheetView(
}
// Apply deferred layout update after gesture completes
if (newState != BottomSheetBehavior.STATE_DRAGGING &&
- newState != BottomSheetBehavior.STATE_SETTLING &&
- pendingLayoutUpdate) {
+ newState != BottomSheetBehavior.STATE_SETTLING &&
+ pendingLayoutUpdate
+ ) {
pendingLayoutUpdate = false
updateLayout()
}
@@ -292,7 +297,6 @@ class BottomSheetView(
if (!fullHeight) {
this.startObservingContentHeight()
}
-
}
fun updateLayout() {
@@ -365,17 +369,18 @@ class BottomSheetView(
val innerViewGroup = this.innerView as? ViewGroup ?: return
- val listener = OnLayoutChangeListener { _, _, top, _, bottom, _, _, oldTop, oldBottom ->
- val newHeight = bottom - top
- val oldHeight = oldBottom - oldTop
- if (newHeight != oldHeight) {
- val contentHeight = getContentHeight()
- if (contentHeight != lastObservedContentHeight && contentHeight > 0 && (isOpen || isOpening) && !isClosing) {
- lastObservedContentHeight = contentHeight
- updateLayout()
+ val listener =
+ OnLayoutChangeListener { _, _, top, _, bottom, _, _, oldTop, oldBottom ->
+ val newHeight = bottom - top
+ val oldHeight = oldBottom - oldTop
+ if (newHeight != oldHeight) {
+ val contentHeight = getContentHeight()
+ if (contentHeight != lastObservedContentHeight && contentHeight > 0 && (isOpen || isOpening) && !isClosing) {
+ lastObservedContentHeight = contentHeight
+ updateLayout()
+ }
}
}
- }
val children = mutableListOf()
for (i in 0 until innerViewGroup.childCount) {
diff --git a/package.json b/package.json
index e76f590e99..b8bd26e241 100644
--- a/package.json
+++ b/package.json
@@ -89,7 +89,8 @@
"make-deploy-bundle": "bash scripts/bundleUpdate.sh",
"generate-webpack-stats-file": "EXPO_PUBLIC_GENERATE_STATS=1 pnpm build-web",
"open-analyzer": "EXPO_PUBLIC_OPEN_ANALYZER=1 pnpm build-web",
- "icons:optimize": "svgo -f ./assets/icons"
+ "icons:optimize": "svgo -f ./assets/icons",
+ "prettier": "prettier --check ."
},
"dependencies": {
"@atproto/api": "0.20.8",
@@ -101,6 +102,7 @@
"@bsky.app/expo-image-crop-tool": "^0.5.1",
"@bsky.app/expo-scroll-edge-effect": "^0.1.4",
"@bsky.app/expo-translate-text": "^0.2.9",
+ "@bsky.app/peek-menu": "^0.2.4",
"@bsky.app/react-native-mmkv": "2.12.5",
"@bsky.app/sift": "^0.3.8",
"@bsky.app/tapper": "^0.5.7",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6d9210cc2d..b3d0003107 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -268,6 +268,9 @@ importers:
'@bsky.app/expo-translate-text':
specifier: ^0.2.9
version: 0.2.9(expo@54.0.34(@babel/core@7.29.0)(react-native-webview@13.15.0(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
+ '@bsky.app/peek-menu':
+ specifier: ^0.2.4
+ version: 0.2.4(expo@54.0.34(@babel/core@7.29.0)(react-native-webview@13.15.0(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
'@bsky.app/react-native-mmkv':
specifier: 2.12.5
version: 2.12.5(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
@@ -1649,6 +1652,13 @@ packages:
react: '*'
react-native: '*'
+ '@bsky.app/peek-menu@0.2.4':
+ resolution: {integrity: sha512-3E5FwgCXMU6baye3NWoBKih3SCh6s8AgAtxN523YBHZGC5TxpjGaBsjFi765y31nKmTll3QH7x4wtDgYqVvCQg==}
+ peerDependencies:
+ expo: '*'
+ react: '*'
+ react-native: '*'
+
'@bsky.app/react-native-mmkv@2.12.5':
resolution: {integrity: sha512-3vUz1nQY1DiKIPAWRkpp5ZGxH5f2G6Ui0UuQuEYjYv81xx1qFcSzS9KQ2sHcOKYdkOM9amWV2Q8TQCxt1lrAHg==}
peerDependencies:
@@ -10461,6 +10471,12 @@ snapshots:
react: 19.1.0
react-native: 0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0)
+ '@bsky.app/peek-menu@0.2.4(expo@54.0.34(@babel/core@7.29.0)(react-native-webview@13.15.0(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)':
+ dependencies:
+ expo: 54.0.34(@babel/core@7.29.0)(react-native-webview@13.15.0(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
+ react: 19.1.0
+ react-native: 0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0)
+
'@bsky.app/react-native-mmkv@2.12.5(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)':
dependencies:
react: 19.1.0
diff --git a/src/App.native.tsx b/src/App.native.tsx
index 2654c6ed83..22dd39f9d7 100644
--- a/src/App.native.tsx
+++ b/src/App.native.tsx
@@ -47,18 +47,18 @@ import {
import {readLastActiveAccount} from '#/state/session/util'
import {Provider as ShellStateProvider} from '#/state/shell'
import {Provider as ComposerProvider} from '#/state/shell/composer'
+import {Provider as LandingProvider} from '#/state/shell/landing'
import {Provider as LoggedOutViewProvider} from '#/state/shell/logged-out'
import {Provider as OnboardingProvider} from '#/state/shell/onboarding'
import {Provider as ProgressGuideProvider} from '#/state/shell/progress-guide'
import {Provider as SelectedFeedProvider} from '#/state/shell/selected-feed'
-import {Provider as StarterPackProvider} from '#/state/shell/starter-pack'
import {Provider as HiddenRepliesProvider} from '#/state/threadgate-hidden-replies'
import {TestCtrls} from '#/view/com/testing/TestCtrls'
import {Shell} from '#/view/shell'
import {atoms as a, ThemeProvider as Alf} from '#/alf'
import {useColorModeTheme} from '#/alf/util/useColorModeTheme'
import {Provider as ContextMenuProvider} from '#/components/ContextMenu'
-import {useStarterPackEntry} from '#/components/hooks/useStarterPackEntry'
+import {useLandingEntry} from '#/components/hooks/useLandingEntry'
import {Provider as IntentDialogProvider} from '#/components/intents/IntentDialogs'
import {Provider as LightboxStateProvider} from '#/components/Lightbox/state'
import {Provider as PolicyUpdateOverlayProvider} from '#/components/PolicyUpdateOverlay'
@@ -113,7 +113,7 @@ function InnerApp() {
const {resumeSession} = useSessionApi()
const theme = useColorModeTheme()
const {t: l} = useLingui()
- const hasCheckedReferrer = useStarterPackEntry()
+ const hasCheckedLanding = useLandingEntry()
// init
useEffect(() => {
@@ -146,7 +146,7 @@ function InnerApp() {
-
+
-
+
-
+
diff --git a/src/App.web.tsx b/src/App.web.tsx
index 5c22b3c921..6faf6f2218 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -40,17 +40,17 @@ import {
import {readLastActiveAccount} from '#/state/session/util'
import {Provider as ShellStateProvider} from '#/state/shell'
import {Provider as ComposerProvider} from '#/state/shell/composer'
+import {Provider as LandingProvider} from '#/state/shell/landing'
import {Provider as LoggedOutViewProvider} from '#/state/shell/logged-out'
import {Provider as OnboardingProvider} from '#/state/shell/onboarding'
import {Provider as ProgressGuideProvider} from '#/state/shell/progress-guide'
import {Provider as SelectedFeedProvider} from '#/state/shell/selected-feed'
-import {Provider as StarterPackProvider} from '#/state/shell/starter-pack'
import {Provider as HiddenRepliesProvider} from '#/state/threadgate-hidden-replies'
import {Shell} from '#/view/shell/index'
import {ThemeProvider as Alf} from '#/alf'
import {useColorModeTheme} from '#/alf/util/useColorModeTheme'
import {Provider as ContextMenuProvider} from '#/components/ContextMenu'
-import {useStarterPackEntry} from '#/components/hooks/useStarterPackEntry'
+import {useLandingEntry} from '#/components/hooks/useLandingEntry'
import {Provider as IntentDialogProvider} from '#/components/intents/IntentDialogs'
import {Provider as LightboxStateProvider} from '#/components/Lightbox/state'
import {Provider as PolicyUpdateOverlayProvider} from '#/components/PolicyUpdateOverlay'
@@ -92,7 +92,7 @@ function InnerApp() {
const {resumeSession} = useSessionApi()
const theme = useColorModeTheme()
const {t: l} = useLingui()
- const hasCheckedReferrer = useStarterPackEntry()
+ const hasCheckedLanding = useLandingEntry()
// init
useEffect(() => {
@@ -125,7 +125,7 @@ function InnerApp() {
-
+
-
+
-
+
diff --git a/src/Navigation.tsx b/src/Navigation.tsx
index 6284aff34b..efd1125295 100644
--- a/src/Navigation.tsx
+++ b/src/Navigation.tsx
@@ -44,6 +44,7 @@ import {
type State,
} from '#/lib/routes/types'
import {bskyTitle} from '#/lib/strings/headings'
+import {CHAT_INVITE_CODE_REGEX} from '#/lib/strings/url-helpers'
import {useUnreadNotifications} from '#/state/queries/notifications/unread'
import {useSession} from '#/state/session'
import {useLoggedOutViewControls} from '#/state/shell/logged-out'
@@ -81,6 +82,7 @@ import {MessagesScreen} from '#/screens/Messages/ChatList'
import {MessagesConversationScreen} from '#/screens/Messages/Conversation'
import {MessagesConversationSettingsScreen} from '#/screens/Messages/ConversationSettings'
import {MessagesInboxScreen} from '#/screens/Messages/Inbox'
+import {MessagesJoinRequestsScreen} from '#/screens/Messages/JoinRequests'
import {MessagesSettingsScreen} from '#/screens/Messages/Settings'
import {ModerationScreen} from '#/screens/Moderation'
import {Screen as ModerationVerificationSettings} from '#/screens/Moderation/VerificationSettings'
@@ -487,6 +489,11 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
getComponent={() => MessagesConversationSettingsScreen}
options={{title: title(msg`Group chat settings`), requireAuth: true}}
/>
+ MessagesJoinRequestsScreen}
+ options={{title: title(msg`Requests to join`), requireAuth: true}}
+ />
MessagesSettingsScreen}
@@ -797,6 +804,19 @@ const LINKING = {
return buildStateObject('Flat', 'Home', params)
}
+ // Chat invite URLs (`/c/:code`) are handled by `useIntentHandler`, which
+ // opens the GroupChatJoinDialog (or the logged-out join flow). Route the
+ // path to Home so the dialog overlays Home instead of NotFound. On native,
+ // react-navigation strips the `bluesky://` prefix and passes the path
+ // without a leading slash, so normalize before matching.
+ const normalizedPath = path.startsWith('/') ? path : `/${path}`
+ if (CHAT_INVITE_CODE_REGEX.test(normalizedPath.split('?')[0])) {
+ if (IS_NATIVE) {
+ return buildStateObject('HomeTab', 'Home', params)
+ }
+ return buildStateObject('Flat', 'Home', params)
+ }
+
if (IS_NATIVE) {
if (name === 'Search') {
return buildStateObject('SearchTab', 'Search', params)
diff --git a/src/analytics/features/types.ts b/src/analytics/features/types.ts
index bd48bd5851..c8a8cd72d9 100644
--- a/src/analytics/features/types.ts
+++ b/src/analytics/features/types.ts
@@ -9,14 +9,11 @@ export enum Features {
ImportContactsOnboardingDisable = 'import_contacts:onboarding:disable',
ImportContactsSettingsDisable = 'import_contacts:settings:disable',
LiveNowBetaDisable = 'live_now_beta:disable',
- ImageUploadsHighResolution = 'image_uploads:high_resolution',
- ImageUploadsBlobSize2mbEnabled = 'image_uploads:blob_size_2mb:enabled',
GroupChatsEnable = 'group_chats:enable',
GroupChatsHasBeenReleased = 'group_chats:has_been_released',
DmsNewMessageComposerEnable = 'dms:new_message_composer:enable',
ComposerLanguageDetectionEnable = 'composer:language_detection:enable',
PostGalleryEmbedEnable = 'post_gallery_embed:enable',
- LargeVideoUploads = 'large_video_uploads:enable',
AATest = 'aa-test',
}
diff --git a/src/components/AvatarBubbles.tsx b/src/components/AvatarBubbles.tsx
index 880a5284f0..c49dada16f 100644
--- a/src/components/AvatarBubbles.tsx
+++ b/src/components/AvatarBubbles.tsx
@@ -28,23 +28,29 @@ type Layout = {
border?: boolean
}
-type Props = {
- animate?: boolean
- profiles: bsky.profile.AnyProfileView[]
- size?: number
- moderationOpts?: ModerationOpts
-}
-
export function AvatarBubbles({
animate = false,
profiles: allProfiles,
+ self = false,
size = 120,
moderationOpts,
-}: Props) {
+}: {
+ animate?: boolean
+ profiles: bsky.profile.AnyProfileView[]
+ /**
+ * By default, when there are more than 2 profiles, the current user is
+ * filtered out (so you don't see yourself among your own group's members).
+ * Set this to `true` for cases where every passed profile should appear,
+ * e.g. an invite preview where the owner is meaningful regardless of viewer.
+ */
+ self?: boolean
+ size?: number
+ moderationOpts?: ModerationOpts
+}) {
const {currentAccount} = useSession()
const profiles =
- allProfiles.length > 2
- ? allProfiles.filter(p => p.did !== currentAccount?.did)
+ !self && allProfiles.length > 2
+ ? allProfiles.filter(p => p?.did != null && p.did !== currentAccount?.did)
: allProfiles
const moderations = useMemo(() => {
if (!moderationOpts) return []
diff --git a/src/components/Button.tsx b/src/components/Button.tsx
index aa705b1897..5f74595029 100644
--- a/src/components/Button.tsx
+++ b/src/components/Button.tsx
@@ -757,11 +757,11 @@ export function useSharedButtonTextStyles() {
}
if (size === 'large') {
- baseStyles.push(a.text_md, a.leading_snug, a.font_medium)
+ baseStyles.push(a.text_md, a.font_medium)
} else if (size === 'small') {
- baseStyles.push(a.text_sm, a.leading_snug, a.font_medium)
+ baseStyles.push(a.text_sm, a.font_medium)
} else if (size === 'tiny') {
- baseStyles.push(a.text_xs, a.leading_snug, a.font_semi_bold)
+ baseStyles.push(a.text_xs, a.font_semi_bold)
}
return flatten(baseStyles)
diff --git a/src/components/Lightbox/Lightbox.web.tsx b/src/components/Lightbox/Lightbox.web.tsx
index 641b2c3402..8883bfb5e5 100644
--- a/src/components/Lightbox/Lightbox.web.tsx
+++ b/src/components/Lightbox/Lightbox.web.tsx
@@ -230,7 +230,11 @@ function LightboxGallery({
style={[
a.px_4xl,
a.py_2xl,
- {backgroundColor: 'rgba(0, 0, 0, 0.45)'},
+ {
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
+ // @ts-expect-error web only
+ backdropFilter: 'blur(16px)',
+ },
delayedFadeInAnim,
]}>
- {
- isMomentumScrolling.current = true
- }}
- onMomentumScrollEnd={() => {
- isMomentumScrolling.current = false
- }}
- contentContainerStyle={[a.px_md, a.py_sm]}>
-
- {/*
- * The press handlers must live on the Text itself, not on a
- * wrapping Pressable. Text selection is driven by the platform's
- * native text view long-press (RN Text on Android, UITextView on
- * iOS). A parent touchable consumes that long-press before the
- * selectable Text can begin a selection - on Android this prevents
- * selection entirely. Keeping onPress/onLongPress on the Text lets
- * the same native node own both the tap-to-expand and the
- * long-press-to-select. The empty onLongPress is intentional: it
- * reserves the long-press for the OS selection gesture instead of
- * firing the expand toggle. RN exposes no API to arbitrate tap vs
- * native selection on a single node, so this is the supported
- * workaround, and it behaves consistently on both platforms.
- */}
- {
- if (isMomentumScrolling.current) return
- LayoutAnimation.configureNext({
- duration: 450,
- update: {type: 'spring', springDamping: 1},
- })
- onToggleAltExpanded()
- }}
- onLongPress={() => {}}>
- {altText}
-
-
-
+
+ {
+ isMomentumScrolling.current = true
+ }}
+ onMomentumScrollEnd={() => {
+ isMomentumScrolling.current = false
+ }}
+ contentContainerStyle={[a.px_md, a.py_sm]}>
+
+ {/*
+ * The press handlers must live on the Text itself, not on a
+ * wrapping Pressable. Text selection is driven by the platform's
+ * native text view long-press (RN Text on Android, UITextView on
+ * iOS). A parent touchable consumes that long-press before the
+ * selectable Text can begin a selection - on Android this prevents
+ * selection entirely. Keeping onPress/onLongPress on the Text lets
+ * the same native node own both the tap-to-expand and the
+ * long-press-to-select. The empty onLongPress is intentional: it
+ * reserves the long-press for the OS selection gesture instead of
+ * firing the expand toggle. RN exposes no API to arbitrate tap vs
+ * native selection on a single node, so this is the supported
+ * workaround, and it behaves consistently on both platforms.
+ */}
+ {
+ if (isMomentumScrolling.current) return
+ LayoutAnimation.configureNext({
+ duration: 450,
+ update: {type: 'spring', springDamping: 1},
+ })
+ onToggleAltExpanded()
+ }}
+ onLongPress={() => {}}>
+ {altText}
+
+
+
+
)
@@ -83,7 +98,6 @@ export function Footer({altText, isAltExpanded, onToggleAltExpanded}: Props) {
const styles = StyleSheet.create({
altWrap: {
- backgroundColor: 'rgba(0, 0, 0, 0.45)',
borderRadius: 12,
overflow: 'hidden',
},
diff --git a/src/components/Link.tsx b/src/components/Link.tsx
index fcb2e8a87f..8795c8e899 100644
--- a/src/components/Link.tsx
+++ b/src/components/Link.tsx
@@ -12,6 +12,7 @@ import {
} from '@react-navigation/native'
import {BSKY_DOWNLOAD_URL} from '#/lib/constants'
+import {useGroupChatJoinIntent} from '#/lib/hooks/useIntentHandler'
import {useNavigationDeduped} from '#/lib/hooks/useNavigationDeduped'
import {useOpenLink} from '#/lib/hooks/useOpenLink'
import {type AllNavigatorParams, type RouteParams} from '#/lib/routes/types'
@@ -19,6 +20,7 @@ import {shareUrl} from '#/lib/sharing'
import {
convertBskyAppUrlIfNeeded,
createProxiedUrl,
+ getChatInviteCodeFromUrl,
isBskyDownloadUrl,
isExternalUrl,
linkRequiresWarning,
@@ -130,6 +132,7 @@ export function useLink({
const {closeModal} = useModalControls()
const {linkWarningDialogControl} = useGlobalDialogsControlContext()
const openLink = useOpenLink()
+ const groupChatJoinIntent = useGroupChatJoinIntent()
const onPress = useCallback(
(e: GestureResponderEvent) => {
@@ -148,6 +151,12 @@ export function useLink({
e.preventDefault()
}
+ const chatInviteCode = getChatInviteCodeFromUrl(href)
+ if (chatInviteCode) {
+ groupChatJoinIntent(chatInviteCode, href)
+ return
+ }
+
if (requiresWarning) {
linkWarningDialogControl.open({
displayText,
@@ -228,6 +237,7 @@ export function useLink({
overridePresentation,
shouldProxy,
linkWarningDialogControl,
+ groupChatJoinIntent,
],
)
diff --git a/src/components/MediaPreview.tsx b/src/components/MediaPreview.tsx
index 530c85ae66..9aad6da864 100644
--- a/src/components/MediaPreview.tsx
+++ b/src/components/MediaPreview.tsx
@@ -1,11 +1,16 @@
import {type StyleProp, StyleSheet, View, type ViewStyle} from 'react-native'
import {Image} from 'expo-image'
-import {type AppBskyFeedDefs} from '@atproto/api'
-import {Trans} from '@lingui/react/macro'
+import {type AppBskyEmbedImages, type AppBskyFeedDefs} from '@atproto/api'
+import {Trans, useLingui} from '@lingui/react/macro'
+import {shareImageModal} from '#/lib/media/manip'
+import {useSaveImageToMediaLibrary} from '#/lib/media/save-image'
import {isGifEmbed} from '#/lib/strings/embed-player'
-import {atoms as a, useTheme} from '#/alf'
+import {atoms as a, tokens, useTheme} from '#/alf'
+import {ArrowShareRight_Stroke2_Corner2_Rounded as ShareIcon} from '#/components/icons/ArrowShareRight'
+import {Download_Stroke2_Corner0_Rounded as DownloadIcon} from '#/components/icons/Download'
import {MediaInsetBorder} from '#/components/MediaInsetBorder'
+import * as PeekMenu from '#/components/PeekMenu'
import {Text} from '#/components/Typography'
import {PlayButtonIcon} from '#/components/video/PlayButtonIcon'
import * as bsky from '#/types/bsky'
@@ -16,9 +21,11 @@ import * as bsky from '#/types/bsky'
export function Embed({
embed,
style,
+ peekable = false,
}: {
embed: AppBskyFeedDefs.PostView['embed']
style?: StyleProp
+ peekable?: boolean
}) {
const e = bsky.post.parseEmbed(embed)
@@ -27,13 +34,17 @@ export function Embed({
if (e.type === 'images') {
return (
- {e.view.images.map(image => (
-
- ))}
+ {e.view.images.map(image =>
+ peekable ? (
+
+ ) : (
+
+ ),
+ )}
)
} else if (e.type === 'link') {
@@ -156,6 +167,45 @@ export function VideoItem({
)
}
+function PeekableImageItem({image}: {image: AppBskyEmbedImages.ViewImage}) {
+ const {t: l} = useLingui()
+ const saveImage = useSaveImageToMediaLibrary()
+
+ const aspect =
+ image.aspectRatio && image.aspectRatio.height > 0
+ ? image.aspectRatio.width / image.aspectRatio.height
+ : undefined
+
+ return (
+
+ 0 ? aspect : 1,
+ }}
+ borderRadius={tokens.borderRadius.xs}>
+
+
+
+ void saveImage(image.fullsize)}>
+
+ {l`Save image`}
+
+ void shareImageModal({uri: image.fullsize})}>
+
+ {l`Share`}
+
+
+
+ )
+}
+
const styles = StyleSheet.create({
altContainer: {
backgroundColor: 'rgba(0, 0, 0, 0.75)',
diff --git a/src/components/PeekMenu.tsx b/src/components/PeekMenu.tsx
new file mode 100644
index 0000000000..53732ec3e8
--- /dev/null
+++ b/src/components/PeekMenu.tsx
@@ -0,0 +1 @@
+export * from '@bsky.app/peek-menu'
diff --git a/src/components/Post/Embed/ImageContextMenu.tsx b/src/components/Post/Embed/ImageContextMenu.tsx
new file mode 100644
index 0000000000..3aadb56901
--- /dev/null
+++ b/src/components/Post/Embed/ImageContextMenu.tsx
@@ -0,0 +1,79 @@
+import {type ReactNode} from 'react'
+import {type StyleProp, type ViewStyle} from 'react-native'
+import {useLingui} from '@lingui/react/macro'
+
+import {shareImageModal} from '#/lib/media/manip'
+import {useSaveImageToMediaLibrary} from '#/lib/media/save-image'
+import {ArrowShareRight_Stroke2_Corner2_Rounded as ShareIcon} from '#/components/icons/ArrowShareRight'
+import {Download_Stroke2_Corner0_Rounded as DownloadIcon} from '#/components/icons/Download'
+import * as PeekMenu from '#/components/PeekMenu'
+import {IS_IOS} from '#/env'
+
+/**
+ * Wraps an image embed with the iOS peek-and-menu interaction. On non-iOS
+ * platforms this renders children unchanged.
+ *
+ * The aspect ratio is consumed by the native side to size the preview
+ * viewController correctly — which is what makes the lift animation clean
+ * for portrait/panorama images.
+ */
+export function ImageContextMenu({
+ fullsizeUri,
+ thumbUri,
+ aspectRatio,
+ borderRadius,
+ onPreviewPress,
+ style,
+ children,
+}: {
+ fullsizeUri: string
+ /** Thumbnail URL. Used as an instant placeholder in the native preview
+ * while the fullsize loads, so there's no black flash on first peek. */
+ thumbUri?: string
+ /** width / height; defaults to 1 if missing. */
+ aspectRatio: number | undefined
+ borderRadius?: number
+ onPreviewPress?: () => void
+ style?: StyleProp
+ children: ReactNode
+}) {
+ const {t: l} = useLingui()
+ const saveImage = useSaveImageToMediaLibrary()
+
+ if (!IS_IOS) {
+ return children
+ }
+
+ const handleSave = () => {
+ void saveImage(fullsizeUri)
+ }
+ const handleShare = () => {
+ void shareImageModal({uri: fullsizeUri})
+ }
+
+ return (
+
+ 0 ? aspectRatio : 1,
+ }}
+ borderRadius={borderRadius}
+ onPreviewPress={onPreviewPress}>
+ {children}
+
+
+
+
+ {l`Save image`}
+
+
+
+ {l`Share`}
+
+
+
+ )
+}
diff --git a/src/components/Post/Embed/ImageEmbed.tsx b/src/components/Post/Embed/ImageEmbed.tsx
index d779d04876..ccd1ceb270 100644
--- a/src/components/Post/Embed/ImageEmbed.tsx
+++ b/src/components/Post/Embed/ImageEmbed.tsx
@@ -1,3 +1,4 @@
+import {useRef} from 'react'
import {InteractionManager, View} from 'react-native'
import {type AnimatedRef} from 'react-native-reanimated'
import {Image} from 'expo-image'
@@ -8,6 +9,7 @@ import {Gallery} from '#/components/images/Gallery'
import {ImageLayoutGrid} from '#/components/images/ImageLayoutGrid'
import {useLightboxControls} from '#/components/Lightbox/state'
import {type Dimensions} from '#/components/Lightbox/types'
+import {ImageContextMenu} from '#/components/Post/Embed/ImageContextMenu'
import {PostEmbedViewContext} from '#/components/Post/Embed/types'
import {useAnalytics} from '#/analytics'
import {type EmbedType} from '#/types/bsky/post'
@@ -24,6 +26,11 @@ export function ImageEmbed({
const {images} = embed.view
const galleryEnabled = ax.features.enabled(ax.features.PostGalleryEmbedEnable)
+ // Captured from AutoSizedImage so the peek-commit handler can reuse the same
+ // ref + dims that a tap would — keeps the lightbox's return animation intact.
+ const singleContainerRef = useRef | null>(null)
+ const singleDimsRef = useRef(null)
+
if (images.length > 0) {
const items = images.map(img => ({
uri: img.fullsize,
@@ -59,24 +66,49 @@ export function ImageEmbed({
if (images.length === 1) {
const image = images[0]
+ const aspect =
+ image.aspectRatio && image.aspectRatio.height > 0
+ ? image.aspectRatio.width / image.aspectRatio.height
+ : undefined
+ const openFromSingle = () => {
+ if (singleContainerRef.current) {
+ onPress(0, [singleContainerRef.current], [singleDimsRef.current])
+ }
+ }
return (
- onPress(0, [containerRef], [dims])}
- onPressIn={() => onPressIn(0)}
- hideBadge={
- rest.viewContext === PostEmbedViewContext.FeedEmbedRecordWithMedia
- }
- />
+
+ {
+ singleContainerRef.current = ref
+ }}
+ onDimsChange={dims => {
+ singleDimsRef.current = dims
+ }}
+ onPress={(containerRef, dims) =>
+ onPress(0, [containerRef], [dims])
+ }
+ onPressIn={() => onPressIn(0)}
+ hideBadge={
+ rest.viewContext ===
+ PostEmbedViewContext.FeedEmbedRecordWithMedia
+ }
+ />
+
)
}
diff --git a/src/components/RichText.tsx b/src/components/RichText.tsx
index 322fb9ebd9..25af851723 100644
--- a/src/components/RichText.tsx
+++ b/src/components/RichText.tsx
@@ -66,7 +66,7 @@ export function RichText({
}
}, [value])
- const plainStyles = [a.leading_snug, style]
+ const plainStyles = style
const interactiveStyles = [plainStyles, interactiveStyle]
const {text, facets} = richText
diff --git a/src/components/Typography.tsx b/src/components/Typography.tsx
index 04b5e5499d..a65889f67e 100644
--- a/src/components/Typography.tsx
+++ b/src/components/Typography.tsx
@@ -31,6 +31,7 @@ export function Text({
[
a.text_sm,
t.atoms.text,
+ a.leading_snug,
web(numberOfLines === 1 && numberOfLinesClippingFix),
style,
],
diff --git a/src/components/dms/AddMembersFlow.tsx b/src/components/dms/AddMembersFlow.tsx
index 1601594dab..749e6976ed 100644
--- a/src/components/dms/AddMembersFlow.tsx
+++ b/src/components/dms/AddMembersFlow.tsx
@@ -219,7 +219,7 @@ export function AddMembersFlow({
}
}
- if (searchText === '') {
+ if (searchText === '' && _items.length > 0) {
_items.unshift({
type: 'label',
key: 'suggested',
diff --git a/src/components/dms/InitiateChatFlow.tsx b/src/components/dms/InitiateChatFlow.tsx
index 09760aefdf..32da1e3e5b 100644
--- a/src/components/dms/InitiateChatFlow.tsx
+++ b/src/components/dms/InitiateChatFlow.tsx
@@ -316,6 +316,7 @@ export function InitiateChatFlow({
if (
searchText === '' &&
+ _items.length > 0 &&
(chatState === ChatState.NEW_CHAT ||
chatState === ChatState.NEW_GROUP_CHAT)
) {
diff --git a/src/components/hooks/useStarterPackEntry.native.ts b/src/components/hooks/useLandingEntry.native.ts
similarity index 64%
rename from src/components/hooks/useStarterPackEntry.native.ts
rename to src/components/hooks/useLandingEntry.native.ts
index 31221d599d..c5950a6469 100644
--- a/src/components/hooks/useStarterPackEntry.native.ts
+++ b/src/components/hooks/useLandingEntry.native.ts
@@ -1,22 +1,45 @@
import {useEffect, useState} from 'react'
+import * as Linking from 'expo-linking'
+import {parseLinkingUrl} from '#/lib/parseLinkingUrl'
import {
createStarterPackLinkFromAndroidReferrer,
httpStarterPackUriToAtUri,
} from '#/lib/strings/starter-pack'
+import {CHAT_INVITE_CODE_REGEX} from '#/lib/strings/url-helpers'
import {useHasCheckedForStarterPack} from '#/state/preferences/used-starter-packs'
-import {useSetActiveStarterPack} from '#/state/shell/starter-pack'
+import {
+ useSetActiveLanding,
+ useSetActiveStarterPack,
+} from '#/state/shell/landing'
import {IS_ANDROID} from '#/env'
import {Referrer, SharedPrefs} from '../../../modules/expo-bluesky-swiss-army'
-export function useStarterPackEntry() {
+export function useLandingEntry() {
const [ready, setReady] = useState(false)
const setActiveStarterPack = useSetActiveStarterPack()
+ const setActiveLanding = useSetActiveLanding()
const hasCheckedForStarterPack = useHasCheckedForStarterPack()
useEffect(() => {
if (ready) return
+ // Check for group chat invite link from the initial deep link URL
+ const linkingUrl = Linking.getLinkingURL()
+ if (linkingUrl) {
+ const urlp = parseLinkingUrl(linkingUrl)
+ const chatInviteMatch = urlp.pathname.match(CHAT_INVITE_CODE_REGEX)
+ if (chatInviteMatch) {
+ setActiveLanding({
+ type: 'groupchat',
+ uri: linkingUrl,
+ code: chatInviteMatch[1],
+ })
+ setReady(true)
+ return
+ }
+ }
+
// On Android, we cannot clear the referral link. It gets stored for 90 days and all we can do is query for it. So,
// let's just ensure we never check again after the first time.
if (hasCheckedForStarterPack) {
@@ -29,7 +52,8 @@ export function useStarterPackEntry() {
setReady(true)
}, 500)
- ;(async () => {
+ void (async () => {
+ // Check for starter pack
let uri: string | null | undefined
if (IS_ANDROID) {
@@ -58,7 +82,7 @@ export function useStarterPackEntry() {
return () => {
clearTimeout(timeout)
}
- }, [ready, setActiveStarterPack, hasCheckedForStarterPack])
+ }, [ready, setActiveStarterPack, setActiveLanding, hasCheckedForStarterPack])
return ready
}
diff --git a/src/components/hooks/useStarterPackEntry.ts b/src/components/hooks/useLandingEntry.ts
similarity index 76%
rename from src/components/hooks/useStarterPackEntry.ts
rename to src/components/hooks/useLandingEntry.ts
index ccbd991574..e3b728a5a0 100644
--- a/src/components/hooks/useStarterPackEntry.ts
+++ b/src/components/hooks/useLandingEntry.ts
@@ -1,25 +1,27 @@
import {useEffect, useState} from 'react'
import {httpStarterPackUriToAtUri} from '#/lib/strings/starter-pack'
-import {useSetActiveStarterPack} from '#/state/shell/starter-pack'
+import {useSetActiveStarterPack} from '#/state/shell/landing'
-export function useStarterPackEntry() {
+export function useLandingEntry() {
const [ready, setReady] = useState(false)
-
const setActiveStarterPack = useSetActiveStarterPack()
useEffect(() => {
const href = window.location.href
- const atUri = httpStarterPackUriToAtUri(href)
+ const url = new URL(href)
+ // Check for starter pack
+ const atUri = httpStarterPackUriToAtUri(href)
if (atUri) {
- const url = new URL(href)
// Determines if an App Clip is loading this landing page
const isClip = url.searchParams.get('clip') === 'true'
setActiveStarterPack({
uri: atUri,
isClip,
})
+ setReady(true)
+ return
}
setReady(true)
diff --git a/src/components/icons/TEMPLATE.tsx b/src/components/icons/TEMPLATE.tsx
index 4feaaef359..a7ef371cd1 100644
--- a/src/components/icons/TEMPLATE.tsx
+++ b/src/components/icons/TEMPLATE.tsx
@@ -1,8 +1,20 @@
-import {forwardRef} from 'react'
+import {
+ forwardRef,
+ type ForwardRefExoticComponent,
+ type RefAttributes,
+} from 'react'
import Svg, {Path} from 'react-native-svg'
import {type Props, useCommonSVGProps} from '#/components/icons/common'
+export type IconWithSvgMeta = ForwardRefExoticComponent<
+ Props & RefAttributes