From 133476e0cdd38a36e113a0d485b50132694de270 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Tue, 30 Jun 2026 14:26:50 -0700 Subject: [PATCH] Update advanced search suggestions (#11036) --- .github/workflows/pull-request-commit.yml | 1 + CLAUDE.md | 3 +- .../components/AdvancedSearchDialog/index.tsx | 30 ++++++++++++------- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pull-request-commit.yml b/.github/workflows/pull-request-commit.yml index 7506c07c15..640d77845f 100644 --- a/.github/workflows/pull-request-commit.yml +++ b/.github/workflows/pull-request-commit.yml @@ -134,6 +134,7 @@ jobs: - name: 📷 Check fingerprint and install dependencies id: fingerprint + timeout-minutes: 5 uses: bluesky-social/github-actions/fingerprint-native@b5556913e4aef3964cfd5936d0add3fc0d809bdb # v0.1.0 with: profile: pull-request diff --git a/CLAUDE.md b/CLAUDE.md index ea7c1fc9f7..3a2c589dfc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,7 +10,7 @@ Bluesky Social is a cross-platform social media application built with React Nat - React 19.1 - React Native 0.81 with Expo 54 -- TypeScript 6 +- TypeScript 7 - React Navigation 7 for routing - TanStack Query (React Query) for data fetching - Lingui 5 for internationalization @@ -32,6 +32,7 @@ pnpm ios # Run on iOS pnpm test # Run Jest tests pnpm lint # Run ESLint pnpm typecheck # Run TypeScript type checking +pnpm prettier # Run Prettier for code formatting # Internationalization # DO NOT run these commands - extraction and compilation are handled by CI diff --git a/src/screens/Search/components/AdvancedSearchDialog/index.tsx b/src/screens/Search/components/AdvancedSearchDialog/index.tsx index bb458ad2bb..95fce6a56c 100644 --- a/src/screens/Search/components/AdvancedSearchDialog/index.tsx +++ b/src/screens/Search/components/AdvancedSearchDialog/index.tsx @@ -154,6 +154,24 @@ function DialogInner({ const scrollRef = useRef(null) const filtersSectionRef = useRef(null) + const suggestions = [ + { + all: l({ + message: 'cats dogs', + comment: 'Advanced search: Example of an “all of these words” search', + }), + none: l({ + message: 'cows pigs', + comment: 'Advanced search: Example of a “none of these words” search', + }), + }, + ] + + // eslint-disable-next-line react/hook-use-state + const [suggestion] = useState(() => + Math.floor(Math.random() * suggestions.length), + ) + function addFilter() { if (filters.length >= MAX_FILTERS) return /* @@ -261,11 +279,7 @@ function DialogInner({ @@ -295,11 +309,7 @@ function DialogInner({