Skip to content

Conversation

@yarikoptic
Copy link
Contributor

@yarikoptic yarikoptic commented Sep 29, 2025

More about codespell: https://github.com/codespell-project/codespell .

I personally introduced it to dozens if not hundreds of projects already and so far only positive feedback.

CI workflow has 'permissions' set only to 'read' so also should be safe.


Note

Introduce Codespell CI with config and correct assorted typos/messages across backend, web, editor, and docs.

  • CI:
    • Add Codespell config (.codespellrc) and GitHub Action (.github/workflows/codespell.yml).
  • Backend:
    • Fix typos in error/messages and comments in apps/api/... (e.g., "At least one member is required", "successfully").
  • Web/Frontend:
    • Correct typos in comments and UI helper texts across stores and helpers (apps/web/..., apps/space/...).
    • Polyfill comment tweak in core/lib/polyfills/requestIdleCallback.ts.
  • Editor:
    • Spelling fixes in code highlighting and autolink helpers (packages/editor/...).
  • Types:
    • Minor comment spelling fix in packages/types/src/analytics.ts.
  • Docs:
    • Fix spelling/wording in deployments/cli/community/README.md.

Written by Cursor Bugbot for commit a8dafa5. This will update automatically on new commits. Configure here.

Summary by CodeRabbit

  • Bug Fixes

    • Corrected spelling in validation and command-line success/error messages for clearer user feedback.
  • Documentation

    • Fixed multiple typos in the community deployment README for improved clarity.
  • Chores

    • Introduced automated spell-checking in CI to catch typos early.
    • Added repository-wide spelling configuration to standardize checks.

Copilot AI review requested due to automatic review settings September 29, 2025 03:54
@CLAassistant
Copy link

CLAassistant commented Sep 29, 2025

CLA assistant check
All committers have signed the CLA.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 29, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Introduces Codespell configuration and a CI workflow to run it on preview branches. Across API, frontend, editor, and docs files, fixes spelling in comments and user-facing messages without altering logic, control flow, or public interfaces.

Changes

Cohort / File(s) Summary of changes
Codespell setup
./.codespellrc, .github/workflows/codespell.yml
Added Codespell configuration (skips, hidden check, ignore regex/words) and a GitHub Actions workflow to run Codespell on push/PR to preview.
API typos and messages
apps/api/plane/api/serializers/intake.py, apps/api/plane/app/views/cycle/base.py, apps/api/plane/app/views/project/member.py, apps/api/plane/authentication/adapter/error.py, apps/api/plane/db/management/commands/activate_user.py, .../reset_password.py, .../update_bucket.py
Corrected typos in comments and user-visible strings (e.g., “At least,” “successfully,” “Couldn't”). No logic changes.
Frontend comments/docs (web/space)
apps/space/helpers/authentication.helper.tsx, apps/web/ce/store/timeline/base-timeline.store.ts, apps/web/core/components/issues/issue-layouts/list/base-list-root.tsx, apps/web/core/lib/polyfills/requestIdleCallback.ts, apps/web/core/local-db/worker/wa-sqlite/src/types/index.d.ts, apps/web/core/store/issue/helpers/base-issues.store.ts, apps/web/core/store/state.store.ts, apps/web/core/store/user/index.ts, apps/web/helpers/authentication.helper.tsx
Fixed spelling in comments and type docs (e.g., “while,” “because,” “in case,” “accommodate,” “overridden”). No behavioral changes.
Editor package comments
packages/editor/src/core/extensions/code/lowlight-plugin.ts, packages/editor/src/core/extensions/custom-link/helpers/autolink.ts
Comment typo fixes (“encapsulate,” “separator”). No functional changes.
Types package comment
packages/types/src/analytics.ts
Comment wording fix (“in case of peek view”). No type/signature changes.
Documentation
deployments/cli/community/README.md
Fixed typos in README (“services”). Content-only updates.

Sequence Diagram(s)

sequenceDiagram
  participant Dev as Developer
  participant GH as GitHub
  participant WF as Codespell Workflow
  participant CS as Codespell Action

  Dev->>GH: Push/PR to preview
  GH-->>WF: Trigger workflow
  WF->>WF: Checkout repository
  WF->>WF: Add codespell problem matcher
  WF->>CS: Run Codespell with .codespellrc
  CS-->>WF: Report spelling findings (annotations)
  WF-->>GH: Job status (pass/fail)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

🛠️refactor, ✍️editor

Suggested reviewers

  • dheeru0198
  • sriramveeraghanta
  • aaryan610

Poem

A hop and a skip through lines so neat,
I nibble typos—such tasty treats!
New spells cast in CI’s light,
Catching slips by day and night.
Thump of joy: “successfully” done—
Carrots for clean code, bun by bun. 🥕🐇

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The description does not follow the repository’s required template: it omits the “### Type of Change” checklist, the “### Screenshots and Media” and “### Test Scenarios” sections, and a structured “### References” section, instead relying on a freeform note and summary. Please update the pull request description to match the repository template by including a “### Description” section with detailed changes, the “### Type of Change” checklist with appropriate boxes checked, placeholder “### Screenshots and Media” and “### Test Scenarios” sections (even if no content), and a “### References” section linking related issues or discussions.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The title clearly describes the primary changes—integrating Codespell with configuration and a CI workflow and applying typo fixes—so it accurately reflects the main purpose of the pull request. Although it is slightly verbose and could be more concise, it remains a coherent single sentence that highlights the key features without listing individual files or extraneous details.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between de06c2f and a8dafa5.

📒 Files selected for processing (9)
  • .codespellrc (1 hunks)
  • .github/workflows/codespell.yml (1 hunks)
  • apps/api/plane/api/serializers/intake.py (1 hunks)
  • apps/api/plane/app/views/cycle/base.py (1 hunks)
  • apps/api/plane/app/views/project/member.py (1 hunks)
  • apps/api/plane/authentication/adapter/error.py (1 hunks)
  • apps/api/plane/db/management/commands/activate_user.py (1 hunks)
  • apps/api/plane/db/management/commands/reset_password.py (1 hunks)
  • apps/api/plane/db/management/commands/update_bucket.py (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • apps/api/plane/db/management/commands/reset_password.py
  • apps/api/plane/app/views/project/member.py
🚧 Files skipped from review as they are similar to previous changes (5)
  • apps/api/plane/authentication/adapter/error.py
  • apps/api/plane/app/views/cycle/base.py
  • apps/api/plane/api/serializers/intake.py
  • .github/workflows/codespell.yml
  • .codespellrc
🔇 Additional comments (2)
apps/api/plane/db/management/commands/activate_user.py (1)

34-34: LGTM! Typo fix improves user-facing message quality.

The correction from "succesfully" to "successfully" is accurate and enhances the professionalism of the command output.

apps/api/plane/db/management/commands/update_bucket.py (1)

73-73: LGTM! Typo fix improves error message clarity.

The correction from "Coudn't" to "Couldn't" is accurate and makes the error message more professional.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces codespell support to detect and fix spelling errors across the codebase. The implementation includes configuration files and a CI workflow to automatically check for typos without automatically fixing them.

  • Added codespell configuration and CI workflow for spell checking
  • Fixed multiple spelling errors across TypeScript, Python, and documentation files
  • Set up read-only permissions for the CI workflow to ensure safety

Reviewed Changes

Copilot reviewed 19 out of 24 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/codespell.yml Adds CI workflow to run codespell on push/PR to preview branch
.codespellrc Configuration file defining codespell behavior and exclusions
packages/editor/src/core/plugins/markdown-clipboard.ts Fixes typo in property name from openEnd to opened
packages/editor/src/core/plugins/drag-handle.ts Fixes typo in property name from openEnd to opened
packages/editor/src/core/extensions/custom-link/helpers/autolink.ts Fixes "seperator" to "separator" in comment
packages/editor/src/core/extensions/code/lowlight-plugin.ts Fixes "encapsulte" to "encapsulate" in comment
deployments/cli/community/README.md Fixes "sevices" to "services" in multiple locations
apps/web/helpers/authentication.helper.tsx Fixes "passowrd" to "password" in comment
apps/web/core/store/user/index.ts Fixes "prjects" to "projects" in comment
apps/web/core/store/issue/helpers/base-issues.store.ts Fixes "adn" to "and" in comment
apps/web/core/components/issues/issue-layouts/list/base-list-root.tsx Fixes "becuase" to "because" in comment
apps/web/ce/store/timeline/base-timeline.store.ts Fixes "wile" to "while" in comment
apps/space/helpers/authentication.helper.tsx Fixes "passowrd" to "password" in comment
apps/api/plane/db/management/commands/update_bucket.py Fixes "Coudn't" to "Couldn't" in error message
apps/api/plane/db/management/commands/reset_password.py Fixes "succesfully" to "successfully" in success message
apps/api/plane/db/management/commands/activate_user.py Fixes "succesfully" to "successfully" in success message
apps/api/plane/authentication/adapter/error.py Fixes "passowrd" to "password" in comment
apps/api/plane/app/views/cycle/base.py Fixes "isssue" to "issue" in comment
apps/api/plane/api/serializers/intake.py Fixes "improts" to "imports" in comment

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

const markdownSerializer = editor.storage.markdown.serializer;
const isTableRow = slice.content.firstChild?.type?.name === CORE_EXTENSIONS.TABLE_ROW;
const nodeSelect = slice.openStart === 0 && slice.openEnd === 0;
const nodeSelect = slice.openStart === 0 && slice.opened === 0;
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

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

The property slice.opened doesn't exist on ProseMirror's Slice type. This should likely be slice.openEnd to maintain the original logic. This change appears to be an incorrect 'fix' by codespell that breaks the code functionality.

Suggested change
const nodeSelect = slice.openStart === 0 && slice.opened === 0;
const nodeSelect = slice.openStart === 0 && slice.openEnd === 0;

Copilot uses AI. Check for mistakes.
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@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: 3

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bedc1fa and de06c2f.

📒 Files selected for processing (24)
  • .codespellrc (1 hunks)
  • .github/workflows/codespell.yml (1 hunks)
  • apps/api/plane/api/serializers/intake.py (1 hunks)
  • apps/api/plane/app/views/cycle/base.py (1 hunks)
  • apps/api/plane/app/views/project/member.py (1 hunks)
  • apps/api/plane/authentication/adapter/error.py (1 hunks)
  • apps/api/plane/db/management/commands/activate_user.py (1 hunks)
  • apps/api/plane/db/management/commands/reset_password.py (1 hunks)
  • apps/api/plane/db/management/commands/update_bucket.py (1 hunks)
  • apps/space/helpers/authentication.helper.tsx (1 hunks)
  • apps/web/ce/store/timeline/base-timeline.store.ts (1 hunks)
  • apps/web/core/components/issues/issue-layouts/list/base-list-root.tsx (1 hunks)
  • apps/web/core/lib/polyfills/requestIdleCallback.ts (1 hunks)
  • apps/web/core/local-db/worker/wa-sqlite/src/types/index.d.ts (7 hunks)
  • apps/web/core/store/issue/helpers/base-issues.store.ts (1 hunks)
  • apps/web/core/store/state.store.ts (1 hunks)
  • apps/web/core/store/user/index.ts (1 hunks)
  • apps/web/helpers/authentication.helper.tsx (1 hunks)
  • deployments/cli/community/README.md (4 hunks)
  • packages/editor/src/core/extensions/code/lowlight-plugin.ts (1 hunks)
  • packages/editor/src/core/extensions/custom-link/helpers/autolink.ts (1 hunks)
  • packages/editor/src/core/plugins/drag-handle.ts (1 hunks)
  • packages/editor/src/core/plugins/markdown-clipboard.ts (1 hunks)
  • packages/types/src/analytics.ts (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Cursor Bugbot
🔇 Additional comments (16)
apps/web/core/lib/polyfills/requestIdleCallback.ts (1)

2-2: Comment wording fix looks good.

Nice catch on the spelling fix; no further action needed.

apps/web/ce/store/timeline/base-timeline.store.ts (1)

316-316: Typo correction looks good.

Comment now reads clearly with the fixed wording.

packages/types/src/analytics.ts (1)

76-76: Thanks for tidying up the comment typo.

Appreciate the quick cleanup here.

packages/editor/src/core/extensions/code/lowlight-plugin.ts (1)

117-119: Comment typo fix looks good.

Thanks for correcting the spelling here.

apps/web/core/components/issues/issue-layouts/list/base-list-root.tsx (1)

135-135: Typo fix confirmed

Correcting “because” improves the comment clarity; nothing else needed.

apps/web/core/store/issue/helpers/base-issues.store.ts (1)

1676-1681: Appreciate the typo fix.

Thanks for cleaning up the doc comment; keeps the helpers readable.

apps/api/plane/db/management/commands/update_bucket.py (1)

75-78: Spelling fix looks good.

The corrected error message reads cleanly and keeps behavior unchanged.

apps/web/core/local-db/worker/wa-sqlite/src/types/index.d.ts (1)

113-116: Spelling cleanups look great

Thanks for tightening up the docs—“accommodate,” the repeated “statement” references, and “overridden” are now spelled correctly, which keeps the public typings tidy.

Also applies to: 333-415, 1193-1199

apps/api/plane/api/serializers/intake.py (1)

1-1: Header typo fix looks good.

Line 1 now reads correctly; no further action needed.

apps/api/plane/authentication/adapter/error.py (1)

51-51: Comment spelling corrected appropriately.

Line 51 now spells “password” correctly; change is sound.

apps/space/helpers/authentication.helper.tsx (1)

69-69: Thanks for tightening the comment.

Line 69 now reflects the intended wording; no other adjustments needed.

apps/web/helpers/authentication.helper.tsx (1)

81-81: Comment spelling update confirmed.

Line 81 now correctly documents the “set password” codes.

apps/api/plane/db/management/commands/activate_user.py (1)

34-34: Typo fix looks good

Thanks for correcting the success message; nothing else to point out here.

apps/api/plane/app/views/cycle/base.py (1)

1289-1289: Docstring tweak is on point

Good catch on the typo in this explanatory comment.

apps/api/plane/app/views/project/member.py (1)

51-51: Validation message reads well now

Appreciate the grammar fix here.

apps/api/plane/db/management/commands/reset_password.py (1)

62-62: Success message typo resolved

Thanks for cleaning up this message; no other changes needed.

Comment on lines +159 to 160
Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `2` to start the services

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Still a typo: use “Let’s”

These sentences still read “Lets again run…”. To keep the README polished (and in the spirit of this PR), they should be “Let’s again run…”.

- Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `2` to start the services
+ Let's again run the `./setup.sh` command. You will again be prompted with the below options. This time select `2` to start the services
...
- Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `3` to stop the services
+ Let's again run the `./setup.sh` command. You will again be prompted with the below options. This time select `3` to stop the services
...
- Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `2` to stop the services
+ Let's again run the `./setup.sh` command. You will again be prompted with the below options. This time select `2` to stop the services
...
- Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `4` to restart the services
+ Let's again run the `./setup.sh` command. You will again be prompted with the below options. This time select `4` to restart the services

Also applies to: 194-195, 216-217, 239-240

🤖 Prompt for AI Agents
In deployments/cli/community/README.md around lines 159-160 (and similarly at
194-195, 216-217, 239-240), the text uses the incorrect contraction “Lets”
instead of “Let’s”; update each occurrence to “Let’s” (replace plain Lets with
Let’s) to fix the typo and ensure proper punctuation and grammar in those README
sentences.

…nteractively

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w -i 3 -C 4 ./apps/web/core/components/workspace/delete-workspace-form.tsx ./deployments/cli/community/README.md",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
…os automagically

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@yarikoptic
Copy link
Contributor Author

sorry for the "noise" -- I rebased on top of master before I mentioned that original/main branch is preview... advise what branch to aim for

@sriramveeraghanta
Copy link
Member

@yarikoptic

Can you please sign the CLA?

@yarikoptic
Copy link
Contributor Author

done.

@sriramveeraghanta sriramveeraghanta merged commit 2ca8620 into makeplane:preview Oct 7, 2025
9 checks passed
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.

3 participants