Conversation
Reviewer's GuideRefines how databases and views are discovered and presented in the slash panel and mention panel, ensuring legacy top‑level databases remain selectable while child/embedded database views are filtered out, and adds Cypress coverage for these behaviors. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The recursive traversal logic for filtering database/mentionable views in
SlashPanelandMentionPanelis now quite similar; consider extracting a shared helper (e.g. in a views utility module) so the rules live in one place and stay consistent over time. - The new Cypress spec duplicates the same login and workspace-navigation flow in both tests; consider factoring this into a shared
beforeEachor helper function to keep the tests shorter and reduce maintenance overhead when the flow changes. - The Cypress tests rely heavily on fixed
cy.waitcalls (e.g. 2000/8000 ms) for sync and loading; replacing these with explicit UI- or network-based waits (e.g. waiting for specific elements or API responses) would make the tests more robust and less flaky across environments.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The recursive traversal logic for filtering database/mentionable views in `SlashPanel` and `MentionPanel` is now quite similar; consider extracting a shared helper (e.g. in a views utility module) so the rules live in one place and stay consistent over time.
- The new Cypress spec duplicates the same login and workspace-navigation flow in both tests; consider factoring this into a shared `beforeEach` or helper function to keep the tests shorter and reduce maintenance overhead when the flow changes.
- The Cypress tests rely heavily on fixed `cy.wait` calls (e.g. 2000/8000 ms) for sync and loading; replacing these with explicit UI- or network-based waits (e.g. waiting for specific elements or API responses) would make the tests more robust and less flaky across environments.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
Description
Checklist
General
Testing
Feature-Specific
Summary by Sourcery
Ensure legacy databases are correctly surfaced in linking/mention UIs while hiding database child views, and add regression tests for these behaviors.
Bug Fixes:
Tests: