Skip to content

Pull request to main#5

Open
savoo12 wants to merge 41 commits intovercel:mainfrom
savoo12:pull-request-to-main
Open

Pull request to main#5
savoo12 wants to merge 41 commits intovercel:mainfrom
savoo12:pull-request-to-main

Conversation

@savoo12
Copy link

@savoo12 savoo12 commented Feb 6, 2026

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Code refactoring
  • Dependency update

Related Issues

Closes #

Changes Made

Testing

Manual Testing

  • Uploaded images successfully
  • AI descriptions generated correctly
  • Images appear in the gallery
  • Search functionality works
  • Responsive design verified (mobile/tablet/desktop)
  • Dark mode tested
  • Error states handled properly

Build & Code Quality

  • pnpm build runs successfully
  • pnpm check passes (Biome linting)
  • pnpm format applied
  • TypeScript types are correct (no any types added)

Workflow Changes (if applicable)

  • All steps use "use step" directive
  • Workflow uses "use workflow" directive
  • Error handling implemented (RetryableError/FatalError)
  • Context-aware retries with getStepMetadata()
  • maxRetries configured appropriately
  • Logging includes step IDs and timestamps

Database Changes (if applicable)

  • Schema updated in lib/schema.ts
  • pnpm db:push tested locally
  • Breaking changes documented

Screenshots/Videos

Performance Impact

  • No performance impact
  • Performance improved
  • Performance impact (explain below)

Breaking Changes

  • No breaking changes
  • Breaking changes (describe below)

Documentation

  • README.md updated (if functionality changed)
  • CONTRIBUTING.md updated (if development process changed)
  • Code comments added for complex logic
  • Environment variables documented (if new ones added)

Checklist

  • My code follows the project's code style (Biome)
  • I have performed a self-review of my code
  • I have commented complex or hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have tested this locally end-to-end
  • All existing functionality still works

Additional Notes

Reviewers

/cc

v0 bot and others added 30 commits February 5, 2026 12:44
Align code with correct Upstash Search token and URL variables.
fix: Update Upstash Search environment variables
Update code to use @upstash/vector instead of @upstash/search
Update files to use correct Upstash Search URL and token variables.
Improve error tracking in search results state handling.
Improve AI prompt to include detailed descriptions for better search accuracy.
Enable reranking, set score threshold, and limit results.
Add CSS classes to maintain aspect ratio and update sizes
attribute for responsive layout.
Reduce threshold from 0.3 to 0.01 and log returned scores.
Ensure content is a string before using substring method.
Safely convert content to string before substring call.
Switch to dynamic threshold based on top result's score.
Implement absolute minimum score and relative threshold for
better search relevance.
Return to original search method without threshold filtering.
Update branding to "Picsearch" with custom copy and remove demo mode
Delete unnecessary header buttons and deploy.tsx file.
Add `aria-label` to icon-only buttons and set main landmark.
Switch to `<span className="sr-only">` for consistent rendering.
Remove useTheme and hardcode theme to fix hydration mismatch.
Force module refresh to clear old `next-themes` import cache.
Recreate sonner.tsx to clear stale module reference.
fix: improve search relevance and image aspect ratio
Add visible search button in mobile search form for better UX.
Explicitly set `loading="eager"` for prioritized images to resolve LCP warning.
Add score threshold, enable reranking, and limit results for better relevance.
Change initial state to `undefined` to differentiate no search from zero results.
Lower score threshold and remove reranking; add detailed debug logs.
Raise dynamic score threshold and enable AI-powered reranking for better results.
Remove hard score threshold and add debug logs for better insights.
v0 bot and others added 11 commits February 6, 2026 16:39
Add debug endpoint and simplify search to identify root cause
Move client initialization inside handler and simplify response.
Increase threshold to 0.60 and clean up debug panels, logs, and endpoint.
Clean up `searchPerformed` check and use `> 0` for `hasImages` check.
Add second-pass AI re-ranking for semantic accuracy.
feat: enhance search and optimize image loading
Avoid redundant `loading` and `priority` props to prevent conflicts.
Replace dynamic spread with explicit `Image` renders for LCP fix.
Implement rate limit for upload route using Vercel firewall,
and use in-memory limiter for search action.
feat: improve search, optimize images, and implement rate limits
@vercel
Copy link
Contributor

vercel bot commented Feb 6, 2026

@vercel[bot] is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​vercel/​firewall@​1.1.2721007691100

View full report

@savoo12
Copy link
Author

savoo12 commented Feb 6, 2026

a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant