Skip to content

Ai recommended feature#45

Draft
caveman-eth wants to merge 26 commits intomainfrom
ai-recommend
Draft

Ai recommended feature#45
caveman-eth wants to merge 26 commits intomainfrom
ai-recommend

Conversation

@caveman-eth
Copy link
Contributor

WIP

@vercel
Copy link

vercel bot commented Jan 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
grails Ready Ready Preview, Comment Feb 16, 2026 6:30pm

Request Review

Introduces a new SimilarNames component that displays AI-generated similar name suggestions on the name page. Adds a useSimilarNames hook to fetch suggestions and domain details, and an API route that queries OpenAI for related names with caching. Also updates the ActivityPanel to support a maxHeight prop for improved layout consistency.
Passes category information to the AI similar names API for more relevant suggestions, updates the API and hook to support categories, and improves the SimilarNames component UI with a new header and table-only view. Also increases the number of suggestions from 4 to 5 and refines the OpenAI prompt and caching logic.
Removed the unused maxHeight prop from ActivityPanel and set a fixed maxHeight with overflow handling. Simplified and clarified the system prompt for the similar-names AI route to be more concise and directive.
Updated the SimilarNames component to show a centered loading overlay instead of multiple loading rows. Enhanced the AI prompt for domain suggestions and excluded certain categories from being sent to the AI for more relevant results.
Introduces a disableLink prop to the User component, allowing the user display to be rendered without a link when needed. Updates TableRow to use this prop and refactors markup in the name component for improved semantics.
Eliminated the use of ResizeObserver and related state for measuring the NameDetails panel height. The ActivityPanel no longer receives a maxHeight prop based on NameDetails height, simplifying the component structure.
Categories without frontend configuration (missing images) are now excluded from API responses, filtered lists, and UI components. This prevents display and access to categories that are not properly set up on the frontend.
Increases similar names suggestions from 5 to 10 and enhances normalization and validation using ENS normalization. Updates the OpenAI prompt and parsing logic for more relevant results. Refines category and club filtering in domain cards and global search modal to only include categories with images.
Eliminated checks for CATEGORY_IMAGES presence when filtering or displaying categories across multiple components. This allows all categories to be shown regardless of frontend image configuration, simplifying logic and improving category visibility.
Replace per-name detail fetches with a single bulk POST to /search/bulk-filters (uses API_URL) and parse results, with error handling returning an empty list on failure. Expose a new loadingPhase from useSimilarNames (ai | domains | null) and update the SimilarNames component to show different loading text depending on whether AI suggestions or domain fetches are in progress. Adjust isLoading calculation accordingly. Update the AI similar-names route: switch model to gpt-5-nano, reduce max_output_tokens, enable store, add minimal reasoning and explicit text format, and add timing/logging around fetch + parse to surface latency and token usage.
Introduces a new SimilarNames component that displays AI-generated similar name suggestions on the name page. Adds a useSimilarNames hook to fetch suggestions and domain details, and an API route that queries OpenAI for related names with caching. Also updates the ActivityPanel to support a maxHeight prop for improved layout consistency.
Passes category information to the AI similar names API for more relevant suggestions, updates the API and hook to support categories, and improves the SimilarNames component UI with a new header and table-only view. Also increases the number of suggestions from 4 to 5 and refines the OpenAI prompt and caching logic.
Removed the unused maxHeight prop from ActivityPanel and set a fixed maxHeight with overflow handling. Simplified and clarified the system prompt for the similar-names AI route to be more concise and directive.
Updated the SimilarNames component to show a centered loading overlay instead of multiple loading rows. Enhanced the AI prompt for domain suggestions and excluded certain categories from being sent to the AI for more relevant results.
Introduces a disableLink prop to the User component, allowing the user display to be rendered without a link when needed. Updates TableRow to use this prop and refactors markup in the name component for improved semantics.
Eliminated the use of ResizeObserver and related state for measuring the NameDetails panel height. The ActivityPanel no longer receives a maxHeight prop based on NameDetails height, simplifying the component structure.
Categories without frontend configuration (missing images) are now excluded from API responses, filtered lists, and UI components. This prevents display and access to categories that are not properly set up on the frontend.
Increases similar names suggestions from 5 to 10 and enhances normalization and validation using ENS normalization. Updates the OpenAI prompt and parsing logic for more relevant results. Refines category and club filtering in domain cards and global search modal to only include categories with images.
Eliminated checks for CATEGORY_IMAGES presence when filtering or displaying categories across multiple components. This allows all categories to be shown regardless of frontend image configuration, simplifying logic and improving category visibility.
Replace per-name detail fetches with a single bulk POST to /search/bulk-filters (uses API_URL) and parse results, with error handling returning an empty list on failure. Expose a new loadingPhase from useSimilarNames (ai | domains | null) and update the SimilarNames component to show different loading text depending on whether AI suggestions or domain fetches are in progress. Adjust isLoading calculation accordingly. Update the AI similar-names route: switch model to gpt-5-nano, reduce max_output_tokens, enable store, add minimal reasoning and explicit text format, and add timing/logging around fetch + parse to surface latency and token usage.
Move SimilarNames into the right column and remove the duplicate full-width instance. In useSimilarNames, import viem's hexToBigInt and labelhash and insert placeholder domain objects for names not returned by the API (including token_id generation) so the UI keeps consistent entries. In the AI similar-names route, trim and remove leading list numbering (e.g. "1.", "2)") from OpenAI responses before validating suggestions.
Tweaks layout classes in src/app/[name]/components/similarNames.tsx to adjust padding, gaps and border ordering for the Recommended panel. Updates API call in src/app/api/ai/similar-names/route.ts to use the newer model (gpt-5.2-2025-12-11), change reasoning effort from 'minimal' to 'none', and set text verbosity to 'low' to produce shorter, less effortful outputs.
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