Skip to content

chore: Misc typos (UI, docs, code...), Makefile PATH with spaces #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

GabDug
Copy link
Contributor

@GabDug GabDug commented Jul 1, 2025

Hey 👋

Small PR to fix some typos, after I noticed the Sourceobot in the settings. I've also ran typos to fix some. I can add the typos.toml config if you're interested.

Also a small Makefile tweak to support PATH with spaces (e.g. Application Support on MacOS), with proper quotes.

Have a great day!

Summary by CodeRabbit

  • Bug Fixes

    • Corrected multiple typographical and spelling errors across user-facing documentation, UI text, error messages, and comments to improve clarity and professionalism.
    • Renamed functions and variables for correct spelling and consistency (e.g., "buildCollapsableTree" to "buildCollapsibleTree", "getAuthorizationPrecendence" to "getAuthorizationPrecedence", "sentinalIndex" to "sentinelIndex", "seperator" to "separator").
    • Fixed product name spelling in organization settings.
  • Documentation

    • Updated various documentation files to fix spelling mistakes and improve readability, including guides, schema descriptions, and README files.

Copy link

coderabbitai bot commented Jul 1, 2025

Walkthrough

This update corrects typographical and spelling errors across various documentation files, code comments, variable names, function names, and user-facing strings. The changes include renaming functions and variables for accuracy, fixing typos in documentation and schema descriptions, and updating error messages, without altering any underlying logic or control flow.

Changes

Files/Paths Change Summary
CONTRIBUTING.md, packages/mcp/README.md, packages/shared/README.md Fixed typos in documentation (e.g., "declerative" → "declarative", "depreacted" → "deprecated").
Makefile Added quotes to the PATH assignment in the zoekt target.
docs/docs/connections/local-repos.mdx, docs/snippets/schemas/v2/index.schema.mdx Corrected documentation typos (e.g., "meaing" → "meaning", "exluded" → "excluded").
packages/backend/src/repoCompileUtils.ts, packages/backend/src/repoManager.ts Fixed comment typos ("lenth" → "length", "referrencing" → "referencing").
packages/schemas/src/v2/index.schema.ts, packages/schemas/src/v2/index.type.ts, schemas/v2/index.json Corrected "exluded" to "excluded" in schema descriptions and comments.
packages/web/src/actions.ts Renamed function and usage: getAuthorizationPrecendencegetAuthorizationPrecedence; fixed comment.
packages/web/src/app/[domain]/browse/hooks/useBrowseParams.ts Renamed variable: sentinalIndexsentinelIndex throughout the hook.
packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.test.tsx Fixed test description typos: "correclty" → "correctly".
packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.tsx Renamed variable: seperatorseparator in splitQuery function.
packages/web/src/app/[domain]/components/searchBar/useSuggestionModeAndQuery.ts Fixed comment typo: "sentinal" → "sentinel".
packages/web/src/app/[domain]/components/syntaxReferenceGuide.tsx, packages/web/src/app/components/syntaxReferenceGuide.tsx Corrected "space-seperated" → "space-separated" in dialog descriptions.
packages/web/src/app/[domain]/settings/(general)/components/changeOrgNameCard.tsx Fixed product name typo: "Sourceobot" → "Sourcebot".
packages/web/src/auth.ts Fixed comment typo: "Propogate" → "Propagate".
packages/web/src/ee/features/billing/actions.ts Fixed typo in error message: "Attemped" → "Attempted".
packages/web/src/features/agents/review-agent/app.ts, packages/web/src/features/agents/review-agent/nodes/generateDiffReviewPrompt.ts Fixed typos in string literals ("seperate" → "separate", "excells" → "excels").
packages/web/src/features/fileTree/components/pureFileTreePanel.tsx Renamed function and all references: buildCollapsableTreebuildCollapsibleTree.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant UI_Component
    participant FileTreeLogic

    User->>UI_Component: Interacts with file tree panel
    UI_Component->>FileTreeLogic: Calls buildCollapsibleTree(tree)
    FileTreeLogic-->>UI_Component: Returns structured file tree
    UI_Component-->>User: Renders updated file tree
Loading

Possibly related PRs

  • feature: File explorer #336: Introduces the file explorer feature, which includes components and actions for file tree browsing. Related due to the renaming of the file tree building function in this PR.

Suggested reviewers

  • brendan-kellam

Poem

A bunny with a keen, correcting eye,
Hopped through the code to clarify—
From "collapsable" trees to "separate" rules,
It tidied up typos with gentle tools.
Now every word and name is neat,
Making the codebase extra sweet!
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (5)
packages/mcp/README.md (1)

20-23: Adjust list indentation to satisfy markdown-lint

markdownlint-cli2 flags MD007 (unordered-list indentation) because this nested bullet is indented by four spaces instead of two. Align with two‐space indentation to silence CI and keep list rendering consistent.

-    - _"Identify repositories that depend on this deprecated api"_
+  - _"Identify repositories that depend on this deprecated api"_
packages/shared/README.md (1)

5-5: Sentence still reads awkwardly & misses a verb
Current text:

“To deal with this, we these two index files export server code and client code, respectively.”

Suggested fix:

- To deal with this, we these two index files export server code and client code, respectively.
+ To deal with this, we rely on these two index files to export server-specific and client-specific code, respectively.

This also avoids the dangling comma before “because”, which LanguageTool flagged.

packages/web/src/features/fileTree/components/pureFileTreePanel.tsx (1)

50-53: Comment still uses old spelling
Line 50 references “collapsible” but the explanatory comment retains “collapsable”.

- // In that case, we need to rebuild the collapsable tree.
+ // In that case, we need to rebuild the collapsible tree.
packages/web/src/actions.ts (1)

172-181: Consider hoisting getAuthorizationPrecedence or using an enum ordinal

Nice catch on the typo – the rename improves clarity.
Given this helper is recreated on every withOrgMembership call, consider extracting it to module scope or converting OrgRole values to numeric ordinals (e.g. via const roleWeight: Record<OrgRole, number> = …). This avoids re-allocating the switch on each invocation and makes the precedence policy easier to unit-test in isolation.

docs/docs/connections/local-repos.mdx (1)

8-9: Typo fixed; consider trimming wordiness
Nice catch switching “meaing” → “meaning”. While you’re here, you could tighten the phrase “a large number of repos already checked out” to “many repositories already checked out” for brevity.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8060ade and ed21810.

📒 Files selected for processing (24)
  • CONTRIBUTING.md (1 hunks)
  • Makefile (1 hunks)
  • docs/docs/connections/local-repos.mdx (2 hunks)
  • docs/snippets/schemas/v2/index.schema.mdx (3 hunks)
  • packages/backend/src/repoCompileUtils.ts (1 hunks)
  • packages/backend/src/repoManager.ts (1 hunks)
  • packages/mcp/README.md (1 hunks)
  • packages/schemas/src/v2/index.schema.ts (4 hunks)
  • packages/schemas/src/v2/index.type.ts (1 hunks)
  • packages/shared/README.md (1 hunks)
  • packages/web/src/actions.ts (3 hunks)
  • packages/web/src/app/[domain]/browse/hooks/useBrowseParams.ts (1 hunks)
  • packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.test.tsx (2 hunks)
  • packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.tsx (2 hunks)
  • packages/web/src/app/[domain]/components/searchBar/useSuggestionModeAndQuery.ts (1 hunks)
  • packages/web/src/app/[domain]/components/syntaxReferenceGuide.tsx (1 hunks)
  • packages/web/src/app/[domain]/settings/(general)/components/changeOrgNameCard.tsx (1 hunks)
  • packages/web/src/app/components/syntaxReferenceGuide.tsx (1 hunks)
  • packages/web/src/auth.ts (1 hunks)
  • packages/web/src/ee/features/billing/actions.ts (1 hunks)
  • packages/web/src/features/agents/review-agent/app.ts (1 hunks)
  • packages/web/src/features/agents/review-agent/nodes/generateDiffReviewPrompt.ts (1 hunks)
  • packages/web/src/features/fileTree/components/pureFileTreePanel.tsx (2 hunks)
  • schemas/v2/index.json (1 hunks)
🧰 Additional context used
🧠 Learnings (4)
packages/shared/README.md (1)
Learnt from: drew-u410
PR: sourcebot-dev/sourcebot#328
File: CONTRIBUTING.md:5-5
Timestamp: 2025-06-03T00:22:00.498Z
Learning: In the sourcebot repository CONTRIBUTING.md file, the maintainer prefers using "NodeJS" spelling instead of the official "Node.js" branding, and prefers not to add alt text to favicon images in the installation instructions.
packages/web/src/app/[domain]/settings/(general)/components/changeOrgNameCard.tsx (1)
Learnt from: drew-u410
PR: sourcebot-dev/sourcebot#328
File: CONTRIBUTING.md:5-5
Timestamp: 2025-06-03T00:22:00.498Z
Learning: In the sourcebot repository CONTRIBUTING.md file, the maintainer prefers using "NodeJS" spelling instead of the official "Node.js" branding, and prefers not to add alt text to favicon images in the installation instructions.
packages/backend/src/repoCompileUtils.ts (2)
Learnt from: brendan-kellam
PR: sourcebot-dev/sourcebot#307
File: packages/backend/src/repoCompileUtils.ts:491-503
Timestamp: 2025-05-14T19:20:48.667Z
Learning: SSH/SCP-style Git URLs (like `[email protected]:org/repo.git`) throw errors when passed directly to JavaScript's `new URL()` constructor. A fix is to convert them using: `new URL(`ssh://${url.replace(':', '/')}`)` for non-HTTP URLs.
Learnt from: brendan-kellam
PR: sourcebot-dev/sourcebot#307
File: packages/backend/src/repoCompileUtils.ts:491-503
Timestamp: 2025-05-14T19:20:48.667Z
Learning: SSH/SCP-style Git URLs (like `[email protected]:org/repo.git`) throw errors when passed directly to JavaScript's `new URL()` constructor. A fix is to convert them using: `new URL(`ssh://${url.replace(':', '/')}`)` for non-HTTP URLs.
packages/web/src/app/[domain]/browse/hooks/useBrowseParams.ts (2)
Learnt from: brendan-kellam
PR: sourcebot-dev/sourcebot#307
File: packages/backend/src/repoCompileUtils.ts:491-503
Timestamp: 2025-05-14T19:20:48.667Z
Learning: SSH/SCP-style Git URLs (like `[email protected]:org/repo.git`) throw errors when passed directly to JavaScript's `new URL()` constructor. A fix is to convert them using: `new URL(`ssh://${url.replace(':', '/')}`)` for non-HTTP URLs.
Learnt from: brendan-kellam
PR: sourcebot-dev/sourcebot#307
File: packages/backend/src/repoCompileUtils.ts:491-503
Timestamp: 2025-05-14T19:20:48.667Z
Learning: SSH/SCP-style Git URLs (like `[email protected]:org/repo.git`) throw errors when passed directly to JavaScript's `new URL()` constructor. A fix is to convert them using: `new URL(`ssh://${url.replace(':', '/')}`)` for non-HTTP URLs.
🧬 Code Graph Analysis (1)
packages/web/src/features/fileTree/components/pureFileTreePanel.tsx (4)
packages/web/src/features/fileTree/actions.ts (1)
  • FileTreeNode (20-22)
packages/web/src/app/[domain]/browse/hooks/useBrowseNavigation.ts (1)
  • useBrowseNavigation (25-59)
packages/web/src/app/[domain]/browse/hooks/useBrowseParams.ts (1)
  • useBrowseParams (5-48)
packages/web/src/hooks/usePrefetchFileSource.ts (1)
  • usePrefetchFileSource (14-34)
🪛 markdownlint-cli2 (0.17.2)
packages/mcp/README.md

22-22: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)

🪛 LanguageTool
packages/shared/README.md

[uncategorized] ~5-~5: The official spelling of this programming framework is “Node.js”.
Context: ...n this package that will only work in a Node.JS runtime (e.g., because it depends on th...

(NODE_JS)


[formatting] ~5-~5: If the ‘because’ clause is essential to the meaning, do not use a comma before the clause.
Context: ...ill only work in a Node.JS runtime (e.g., because it depends on the fs package. Entitle...

(COMMA_BEFORE_BECAUSE)

docs/docs/connections/local-repos.mdx

[style] ~8-~8: To reduce wordiness, try specifying a number or using “many” or “numerous” instead.
Context: ...ful in scenarios where you already have a large number of repos already checked out. Local reposi...

(LARGE_NUMBER_OF)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build
🔇 Additional comments (23)
Makefile (1)

13-13: Quoting $(PWD) fixes PATHs containing spaces – good catch.

packages/web/src/app/[domain]/settings/(general)/components/changeOrgNameCard.tsx (1)

68-68: UI copy typo fixed – looks good

The spelling correction from “Sourceobot” ➜ “Sourcebot” is correct and no other code is affected.

packages/web/src/app/components/syntaxReferenceGuide.tsx (1)

69-69: Typo fixed – no further action

“space-separated” spelling is now correct; nothing else changes.

packages/web/src/app/[domain]/components/syntaxReferenceGuide.tsx (1)

69-69: Typo fixed – mirrored change

Same “space-separated” correction as the global component. LGTM.

packages/web/src/app/[domain]/components/searchBar/useSuggestionModeAndQuery.ts (1)

24-25: Comment typo fixed

“sentinel” spelling is now correct; logic untouched.

packages/web/src/features/agents/review-agent/app.ts (1)

15-15: Typo fix looks good.

The corrected spelling in the guidance string keeps the instructions clear and consistent.

packages/backend/src/repoCompileUtils.ts (1)

379-382: Comment typo fixed.

Nothing else changed; implementation remains unaffected.

CONTRIBUTING.md (1)

41-41: Spelling correction acknowledged.

Documentation reads clearly after replacing “declerative” with “declarative”.

packages/backend/src/repoManager.ts (1)

175-178: Minor comment typo fixed.

No functional impact.

packages/web/src/auth.ts (1)

193-193: Comment spelling corrected.

No code changes required.

packages/web/src/features/agents/review-agent/nodes/generateDiffReviewPrompt.ts (1)

11-12: Typo correction confirmed – no further action needed
The replacement of “excells” with “excels” fixes the prompt text and introduces no behavioural changes.

packages/web/src/ee/features/billing/actions.ts (1)

63-66: String typo resolved – looks good
Correcting “Attemped” → “Attempted” improves log clarity. No further issues spotted in this hunk.

packages/web/src/app/[domain]/browse/hooks/useBrowseParams.ts (1)

14-20: Rename safe – no occurrences of sentinalIndex found
A global search for the old identifier yielded zero matches, confirming that renaming sentinalIndexsentinelIndex is non-breaking.

packages/web/src/features/fileTree/components/pureFileTreePanel.tsx (1)

17-22: Function rename applied correctly
buildCollapsableTreebuildCollapsibleTree aligns with dictionary spelling; all internal references updated.

packages/web/src/actions.ts (2)

741-742: Typo fix looks good
Comment now reads correctly (“constraint”). No further action required.


184-190: No lingering getAuthorizationPrecendence references found
A repo-wide search (rg -n "getAuthorizationPrecendence") returned zero matches, so all call sites now use the corrected getAuthorizationPrecedence.

packages/schemas/src/v2/index.type.ts (1)

312-313: Spelling correction acknowledged

“excluded” is now spelled correctly in the JSDoc. Documentation consistency improved.

packages/schemas/src/v2/index.schema.ts (1)

687-689: Correct typo – no functional impact
The spelling fix from “exluded” → “excluded” improves clarity across the schema docs. No functional or validation behaviour is affected.

Also applies to: 1389-1391, 2173-2175

docs/docs/connections/local-repos.mdx (1)

30-31: Typo fixed – looks good
“separate” is now spelled correctly; the doc reads well.

packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.test.tsx (1)

37-51: Test description typo corrected
Changing “correclty” → “correctly” in the two test names improves readability. Test logic remains intact.

Also applies to: 53-59

schemas/v2/index.json (1)

497-499: Consistent typo fix across JSON schema
“exluded” → “excluded” keeps the JSON schema descriptions consistent with TypeScript sources. No further action needed.

packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.tsx (1)

441-456: Typo seperator fully replaced

No occurrences of the old misspelling were found in any .ts, .tsx, .js, .jsx, .mjs, or .cjs files—separator is now consistently used throughout the codebase.

docs/snippets/schemas/v2/index.schema.mdx (1)

688-689: Typo fixed (“excluded”) – LGTM.

Also applies to: 1390-1391, 2174-2175

Comment on lines 11 to 15
mkdir -p bin
go build -C vendor/zoekt -o $(PWD)/bin ./cmd/...
export PATH=$(PWD)/bin:$(PATH)
export PATH="$(PWD)/bin:$(PATH)"
export CTAGS_COMMANDS=ctags

Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

export runs in its own subshell – PATH / CTAGS won’t propagate to later recipe lines.

Each recipe line is executed in a separate shell, so the two export statements have no lasting effect beyond their individual lines.
If subsequent build commands rely on the modified PATH or CTAGS, combine them into a single line, use back-slash continuations, or add .ONESHELL: to the Makefile.

Example:

zoekt:
	. ./vendor/zoekt/env.sh && \
	PATH="$(PWD)/bin:$$PATH" \
	CTAGS_COMMANDS=ctags \
	go build -C vendor/zoekt -o "$(PWD)/bin" ./cmd/...

—or—

.ONESHELL:
zoekt:
	mkdir -p bin
	export PATH="$(PWD)/bin:$$PATH"
	export CTAGS_COMMANDS=ctags
	go build -C vendor/zoekt -o "$(PWD)/bin" ./cmd/...
🤖 Prompt for AI Agents
In the Makefile around lines 11 to 15, the export statements for PATH and
CTAGS_COMMANDS are each run in separate subshells, so their effects do not
persist to subsequent lines. To fix this, either combine all commands that rely
on these environment variables into a single recipe line using backslash
continuations, or add the .ONESHELL: directive at the top of the Makefile so all
recipe lines run in the same shell, allowing exports to persist across lines.

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