Skip to content

Conversation

@aayush-se
Copy link
Member

@aayush-se aayush-se commented Jan 6, 2026

  • Gated behind gen-ai-search-agent-translate for internal use first
Screenshot 2026-01-06 at 3 41 22 PM Screenshot 2026-01-06 at 3 39 31 PM Screenshot 2026-01-06 at 3 39 36 PM

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 6, 2026
@aayush-se aayush-se requested a review from nsdeschenes January 7, 2026 00:08
@aayush-se aayush-se marked this pull request as ready for review January 7, 2026 00:08
@aayush-se aayush-se requested a review from a team as a code owner January 7, 2026 00:08
@aayush-se aayush-se changed the title add search bar to issues feed feat(Issues): AI Search Jan 7, 2026
@aayush-se aayush-se marked this pull request as draft January 7, 2026 19:53
@aayush-se aayush-se marked this pull request as ready for review January 8, 2026 07:55
Comment on lines +94 to +96
pageFilters.selection.projects?.length > 0 &&
pageFilters.selection.projects?.[0] !== -1
? pageFilters.selection.projects
: projects.filter(p => p.isMember).map(p => p.id);

This comment was marked as outdated.

const endLocal = resultEnd.endsWith('Z') ? resultEnd.slice(0, -1) : resultEnd;
timeParams = {
start: new Date(startLocal).toISOString(),
end: new Date(endLocal).toISOString(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing validation for invalid date strings causes crash

Medium Severity

The applySeerSearchQuery callback calls new Date(startLocal).toISOString() without validating that the date strings from the AI-powered API response are valid dates. If the API returns a malformed date string (possible with AI responses), new Date("invalid-string") creates an Invalid Date object, and calling .toISOString() on it throws an uncaught RangeError: Invalid time value. This would crash the component when a user selects a query result.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting point, we do validate this on the backend, but curious if we should also validate here.

Comment on lines +52 to +54
<SearchQueryBuilderProvider
initialQuery={query || ''}
filterKeys={getFilterKeys()}

This comment was marked as outdated.

Copy link
Contributor

@nsdeschenes nsdeschenes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of comments, small things non-blocking

let initialSeerQuery = '';
const queryDetails = useMemo(() => {
const queryToUse = committedQuery.length > 0 ? committedQuery : query;
const parsedQuery = parseQueryBuilderValue(queryToUse, getFieldDefinition);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment about this from the errors PR also applicable here 👀

Comment on lines 181 to 184
navigate({
pathname: location.pathname,
query: queryParams,
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the same options passed here, like prevent scroll etc.?

@aayush-se aayush-se force-pushed the agentic-search/issues-feed branch from 4817ea5 to f589d73 Compare January 9, 2026 00:29
@aayush-se aayush-se enabled auto-merge (squash) January 9, 2026 00:31
@aayush-se aayush-se merged commit 08603c1 into master Jan 9, 2026
53 checks passed
@aayush-se aayush-se deleted the agentic-search/issues-feed branch January 9, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants