Repository navigation
feat(files): add folder uploads, content search, and sharing - #8819
waleedlatif1 wants to merge 6 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
1 issue found across 82 files
Confidence score: 5/5
chunks.integration.tsdoesn’t distinguish metadata from returned matches from metadata from all in-scope matched files, since onlyfile-2matches inside the folder scope. Add a case with another in-scope matched file that isn’t returned.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/lib/workspace-files/search/chunks.integration.ts">
<violation number="1" location="apps/sim/lib/workspace-files/search/chunks.integration.ts:611">
P3: This test never exercises the "only for returned matches" part of its claim: only file-2 has matches inside the folder scope, so projecting metadata from all in-scope matched files would produce the same `files` array as projecting from the single returned match. A regression that computes `files` from all matched rows (not `slice(0, maxResults)`) would pass this test. Add a second in-scope file (same workspace and folder) whose matches fall beyond `maxResults` and assert its metadata is absent; the probe orders candidates by `fileName`/`fileId`, so naming it e.g. `Z-Other.md` keeps file-2's matches returned first deterministically.</violation>
</file>
|
0cdff92 to
65e0eeb
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 93 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 93 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@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 review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 93 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.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 93 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.
Turn on auto-fix | Re-trigger cubic
| }) | ||
| } | ||
|
|
||
| export function usePublicSharedFile(token: string, fileId: string | null) { |
There was a problem hiding this comment.
Public APIs lack documentation
The new exported usePublicSharedFile hook has no TSDoc. CLAUDE.md requires TSDoc for exported APIs. Add a short declaration comment explaining the token-scoped file lookup and when it runs. The new exported PublicShareAccessError class in access.ts also needs a declaration comment. This repository requirement must be satisfied before merging.
Context Used: CLAUDE.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Summary
Type of Change
Testing
Checklist
test-auditauthoring gate; final CI pending)