Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
1694d87 to
a320880
Compare
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.
2f57c27 to
0ca82cf
Compare
…to ai-recommend
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP