Skip to content

feat(search): refine sources, history and result states - #8312

Merged
waleedlatif1 merged 4 commits into
stagingfrom
codex/search-sources-inline
Sep 26, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
codex/search-sources-inline

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Keep Search sources inline and add an explicit View all sources action without replacing the user’s selected panel.
  • Add private Recently viewed and Recent searches shortcuts with stable spacing, bounded history and a clear action. Store navigation snapshots scoped to the signed-in user and organization; retain current membership and capability checks without requiring an indexed copy or querying each source again. Opening a source still uses the destination’s current access checks.
  • Acknowledge search submission immediately, delay filters until results arrive, and use shared source/date dropdowns. Keep result excerpts within three lines and show Docs, Sheets, and Slides icons for their document URLs. Use consistent status labels without trailing ellipses.

Type of Change

  • Feature and bug fix

Testing

  • 1,443 touched/sibling tests across access, search, chat and source rendering in the implementation round; 17 affected source/provider tests passed again for the final history change.
  • 4 real-PostgreSQL history tests covering live and internal links without an index, user/organization isolation, revoked membership, concurrent writes, deduplication, limits, expiry and clearing. The no-index regression failed before the fix.
  • Fresh-database migration and migration replay passed. The unused document-URL index and its unshipped migration were removed; only the additive history table remains.
  • All nine cleanup passes, type-check and lint across 26 workspaces, all 51 audits, generated artifacts and docs manifest checks passed.
  • Local light/dark and narrow-layout QA, keyboard filters, busy submission, bounded snippets and explicit source-panel access.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Sep 26, 2026 2:02am UTC

Request Review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 7 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds search history tracking and refines search UI states.

The PR appears safe to merge; no new actionable issue or outstanding previous finding was identified.

Summary

The PR refines Search result and source-panel states, adds private recent-search and recently-viewed shortcuts, and changes source history to retain navigation snapshots without requiring an indexed document.

  • Source visits now save bounded display metadata alongside their URLs.
  • History reads remain scoped to the signed-in user and organization; source access is checked when a destination is opened.
  • The unused document-URL index and its unshipped migration are removed.

Reviews (5) · Last reviewed commit: "fix(search): keep private history indepe..."

@waleedlatif1 waleedlatif1 changed the title improvement(search): keep sources inline and show document icons feat(search): refine sources, history and result states Sep 26, 2026
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 36 files

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/app/o/[organizationId]/providers/organization-provider.tsx
Comment thread apps/sim/lib/knowledge/search/history/limits.ts Outdated
Comment thread apps/sim/app/o/[organizationId]/search/search.tsx Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 79 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

Comment thread apps/sim/lib/knowledge/search/history/repository.ts Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

Comment thread apps/sim/lib/knowledge/application/search-history.ts

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 77 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@waleedlatif1
waleedlatif1 merged commit 57e5622 into staging Sep 26, 2026
26 of 27 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/search-sources-inline branch September 26, 2026 02:06

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 77 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Re-trigger cubic

This branch was successfully deployed

1 active deployment
Preview — b8c8ca19 Deployed Sep 26, 2026 by vercel[bot]
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