Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = .git*,*.svg,i18n,*-lock.yaml,*.css,.codespellrc,migrations,*.js,*.map,*.mjs
check-hidden = true
# ignore all CamelCase and camelCase
ignore-regex = \b[A-Za-z][a-z]+[A-Z][a-zA-Z]+\b
ignore-words-list = tread
25 changes: 25 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Codespell configuration is within .codespellrc
---
name: Codespell

on:
push:
branches: [preview]
pull_request:
branches: [preview]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Annotate locations with typos
uses: codespell-project/codespell-problem-matcher@v1
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion apps/api/plane/api/serializers/intake.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Module improts
# Module imports
from .base import BaseSerializer
from .issue import IssueExpandSerializer
from plane.db.models import IntakeIssue, Issue
Expand Down
2 changes: 1 addition & 1 deletion apps/api/plane/app/views/cycle/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ def get(self, request, slug, project_id, cycle_id):
if the issues were transferred to the new cycle, then the progress_snapshot will be present
return the progress_snapshot data in the analytics for each date

else issues were not transferred to the new cycle then generate the stats from the cycle isssue bridge tables
else issues were not transferred to the new cycle then generate the stats from the cycle issue bridge tables
"""

if cycle.progress_snapshot:
Expand Down
2 changes: 1 addition & 1 deletion apps/api/plane/app/views/project/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def create(self, request, slug, project_id):
# Check if the members array is empty
if not len(members):
return Response(
{"error": "Atleast one member is required"},
{"error": "At least one member is required"},
status=status.HTTP_400_BAD_REQUEST,
)

Expand Down
2 changes: 1 addition & 1 deletion apps/api/plane/authentication/adapter/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"INCORRECT_OLD_PASSWORD": 5135,
"MISSING_PASSWORD": 5138,
"INVALID_NEW_PASSWORD": 5140,
# set passowrd
# set password
"PASSWORD_ALREADY_SET": 5145,
# Admin
"ADMIN_ALREADY_EXIST": 5150,
Expand Down
2 changes: 1 addition & 1 deletion apps/api/plane/db/management/commands/activate_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def handle(self, *args, **options):
user.is_active = True
user.save()

self.stdout.write(self.style.SUCCESS("User activated succesfully"))
self.stdout.write(self.style.SUCCESS("User activated successfully"))
2 changes: 1 addition & 1 deletion apps/api/plane/db/management/commands/reset_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ def handle(self, *args, **options):
user.is_password_autoset = False
user.save()

self.stdout.write(self.style.SUCCESS("User password updated succesfully"))
self.stdout.write(self.style.SUCCESS("User password updated successfully"))
2 changes: 1 addition & 1 deletion apps/api/plane/db/management/commands/update_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def check_s3_permissions(self, bucket_name):
try:
s3_client.delete_object(Bucket=bucket_name, Key="test_permission_check.txt")
except ClientError:
self.stdout.write("Coudn't delete test object")
self.stdout.write("Couldn't delete test object")

# 4. Test s3:PutBucketPolicy (attempt to put a bucket policy)
try:
Expand Down
2 changes: 1 addition & 1 deletion apps/space/helpers/authentication.helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export enum EAuthenticationErrorCodes {
INCORRECT_OLD_PASSWORD = "5135",
MISSING_PASSWORD = "5138",
INVALID_NEW_PASSWORD = "5140",
// set passowrd
// set password
PASSWORD_ALREADY_SET = "5145",
// Admin
ADMIN_ALREADY_EXIST = "5150",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/ce/store/timeline/base-timeline.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export class BaseTimeLineStore implements IBaseTimelineStore {
});

/**
* updates the block's position such as marginLeft and width wile dragging
* updates the block's position such as marginLeft and width while dragging
* @param id
* @param deltaLeft
* @param deltaWidth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const BaseListRoot = observer((props: IBaseListRoot) => {
[fetchNextIssues]
);

// kanbanFilters and EIssueFilterType.KANBAN_FILTERS are used becuase the state is shared between kanban view and list view
// kanbanFilters and EIssueFilterType.KANBAN_FILTERS are used because the state is shared between kanban view and list view
const handleCollapsedGroups = useCallback(
(value: string) => {
if (workspaceSlug) {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/core/lib/polyfills/requestIdleCallback.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if (typeof window !== "undefined" && window) {
// Add request callback polyfill to browser incase it does not exist
// Add request callback polyfill to browser in case it does not exist
window.requestIdleCallback =
window.requestIdleCallback ??
function (cb) {
Expand Down
14 changes: 7 additions & 7 deletions apps/web/core/local-db/worker/wa-sqlite/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ declare interface SQLitePrepareOptions {
* the corresponding Javascript wrapper will throw an exception with a
* `code` property on an error.
*
* Note that a few functions return a Promise in order to accomodate
* Note that a few functions return a Promise in order to accommodate
* either a synchronous or asynchronous SQLite build, generally those
* involved with opening/closing a database or executing a statement.
*
Expand Down Expand Up @@ -330,7 +330,7 @@ declare interface SQLiteAPI {
column(stmt: number, i: number): SQLiteCompatibleType;

/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
*
* The contents of the returned buffer may be invalid after the
* next SQLite call. Make a copy of the data (e.g. with `.slice()`)
Expand Down Expand Up @@ -360,7 +360,7 @@ declare interface SQLiteAPI {
column_count(stmt: number): number;

/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
* @see https://www.sqlite.org/c3ref/column_blob.html
* @param stmt prepared statement pointer
* @param i column index
Expand All @@ -369,7 +369,7 @@ declare interface SQLiteAPI {
column_double(stmt: number, i: number): number;

/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
* @see https://www.sqlite.org/c3ref/column_blob.html
* @param stmt prepared statement pointer
* @param i column index
Expand All @@ -378,7 +378,7 @@ declare interface SQLiteAPI {
column_int(stmt: number, i: number): number;

/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
* @see https://www.sqlite.org/c3ref/column_blob.html
* @param stmt prepared statement pointer
* @param i column index
Expand Down Expand Up @@ -406,7 +406,7 @@ declare interface SQLiteAPI {
column_names(stmt: number): Array<string>;

/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
* @see https://www.sqlite.org/c3ref/column_blob.html
* @param stmt prepared statement pointer
* @param i column index
Expand Down Expand Up @@ -1190,7 +1190,7 @@ declare module "wa-sqlite/src/VFS.js" {
*/
xAccess(name: string, flags: number, pResOut: DataView): number;
/**
* Handle asynchronous operation. This implementation will be overriden on
* Handle asynchronous operation. This implementation will be overridden on
* registration by an Asyncify build.
* @param {function(): Promise<number>} f
* @returns {number}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/core/store/issue/helpers/base-issues.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ export abstract class BaseIssuesStore implements IBaseIssuesStore {
};

/**
* This Method is used to get data of the issue based on the ids of the data for states, labels adn assignees
* This Method is used to get data of the issue based on the ids of the data for states, labels and assignees
* @param dataType what type of data is being sent
* @param dataIds id/ids of the data that is to be populated
* @param order ascending or descending for arrays of data
Expand Down
2 changes: 1 addition & 1 deletion apps/web/core/store/state.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class StateStore implements IStateStore {
};

/**
* deletes the state from the store, incase of failure reverts back to original state
* deletes the state from the store, in case of failure reverts back to original state
* @param workspaceSlug
* @param projectId
* @param stateId
Expand Down
2 changes: 1 addition & 1 deletion apps/web/core/store/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class UserStore implements IUserStore {

// helper actions
/**
* @description fetches the prjects with write permissions
* @description fetches the projects with write permissions
* @returns {{[projectId: string]: number} || null}
*/
fetchProjectsWithCreatePermissions = (): { [key: string]: TUserPermissions } => {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/helpers/authentication.helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export enum EAuthenticationErrorCodes {
INCORRECT_OLD_PASSWORD = "5135",
MISSING_PASSWORD = "5138",
INVALID_NEW_PASSWORD = "5140",
// set passowrd
// set password
PASSWORD_ALREADY_SET = "5145",
// Admin
ADMIN_ALREADY_EXIST = "5150",
Expand Down
8 changes: 4 additions & 4 deletions deployments/cli/community/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ There are many other settings you can play with, but we suggest you configure `E

### Continue with setup - Start Server (Docker Compose)

Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `2` to start the sevices
Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `2` to start the services

Comment on lines +159 to 160
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.

⚠️ 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.

```bash
Select a Action you want to perform:
Expand Down Expand Up @@ -191,7 +191,7 @@ In case you want to make changes to `plane.env` variables, we suggest you to sto

#### Docker Compose

Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `3` to stop the sevices
Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `3` to stop the services

```bash
Select a Action you want to perform:
Expand All @@ -213,7 +213,7 @@ If all goes well, you must see something like this

#### Docker Swarm

Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `2` to stop the sevices
Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `2` to stop the services

```bash
Select an Action you want to perform:
Expand All @@ -236,7 +236,7 @@ If all goes well, you will see the confirmation from docker cli

In case you want to make changes to `plane.env` variables, without stopping the server or you noticed some abnormalies in services, you can restart the services with `RESTART` / `REDEPLOY` option.

Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `4` to restart the sevices
Lets again run the `./setup.sh` command. You will again be prompted with the below options. This time select `4` to restart the services

#### Docker Compose
```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function LowlightPlugin({
([oldNodeName, newNodeName].includes(name) ||
// OR transaction adds/removes named node,
newNodes.length !== oldNodes.length ||
// OR transaction has changes that completely encapsulte a node
// OR transaction has changes that completely encapsulate a node
// (for example, a transaction that affects the entire document).
// Such transactions can happen during collab syncing via y-prosemirror, for example.
transaction.steps.some(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function autolink(options: AutolinkOptions): Plugin {
);
} else if (
nodesInChangedRanges.length &&
// We want to make sure to include the block seperator argument to treat hard breaks like spaces.
// We want to make sure to include the block separator argument to treat hard breaks like spaces.
newState.doc.textBetween(newRange.from, newRange.to, " ", " ").endsWith(" ")
) {
textBlock = nodesInChangedRanges[0];
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// service types

export interface IAnalyticsResponse {
[key: string]: any;

Check warning on line 51 in packages/types/src/analytics.ts

View workflow job for this annotation

GitHub Actions / Build and lint web apps

Unexpected any. Specify a different type
}

export interface IAnalyticsResponseFields {
Expand All @@ -73,7 +73,7 @@
backlog_work_items: number;
un_started_work_items: number;
started_work_items: number;
// incase of peek view, we will display the display_name instead of project__name
// in case of peek view, we will display the display_name instead of project__name
display_name?: string;
avatar_url?: string;
assignee_id?: string;
Expand Down
Loading