diff --git a/apps/desktop/README.md b/apps/desktop/README.md index 4dc17fb90c..e1640efcbe 100644 --- a/apps/desktop/README.md +++ b/apps/desktop/README.md @@ -18,7 +18,7 @@ Execute the following command on your terminal \ cargo run -p but-server ``` -This shoud start the server on th default port 6978 +This should start the server on th default port 6978 #### 2. Run the FE dev server diff --git a/apps/desktop/cypress/e2e/branches.cy.ts b/apps/desktop/cypress/e2e/branches.cy.ts index 139fd7f63f..c126cab1cc 100644 --- a/apps/desktop/cypress/e2e/branches.cy.ts +++ b/apps/desktop/cypress/e2e/branches.cy.ts @@ -168,7 +168,7 @@ describe('Branches', () => { cy.getByTestId('delete-local-branch-confirmation-modal').should('not.exist'); }); - it('should be able to preivew multiple branches', () => { + it('should be able to preview multiple branches', () => { // Should be able to navigate the different branches for (const branch of mockBackend.branchListings) { cy.getByTestId('branch-list-card', branch.name).first().should('be.visible').click(); diff --git a/apps/desktop/cypress/e2e/errorHandling.cy.ts b/apps/desktop/cypress/e2e/errorHandling.cy.ts index 1866c1aa75..8fb95a4fa6 100644 --- a/apps/desktop/cypress/e2e/errorHandling.cy.ts +++ b/apps/desktop/cypress/e2e/errorHandling.cy.ts @@ -146,7 +146,7 @@ describe('Error handling - commit actions', () => { expect(mockBackend.getDiff).to.have.callCount(0); }); - it('Fully failing to commit with rejection reasons shuold be handled graceful', () => { + it('Fully failing to commit with rejection reasons should be handled graceful', () => { mockCommand('create_commit_from_worktree_changes', () => mockBackend.commitFailureWithReasons(null) ); @@ -208,7 +208,7 @@ describe('Error handling - commit actions', () => { cy.getByTestId('commit-drawer-description-input').should('contain', newCommitMessageBody); }); - it('Partially failing to commit with rejection reasons shuold be handled graceful', () => { + it('Partially failing to commit with rejection reasons should be handled graceful', () => { const newCommitId = '29384726398746289374'; mockCommand('create_commit_from_worktree_changes', () => mockBackend.commitFailureWithReasons(newCommitId) diff --git a/apps/desktop/cypress/e2e/selection.cy.ts b/apps/desktop/cypress/e2e/selection.cy.ts index fcccbc1e17..0045f509e1 100644 --- a/apps/desktop/cypress/e2e/selection.cy.ts +++ b/apps/desktop/cypress/e2e/selection.cy.ts @@ -32,7 +32,7 @@ describe('Selection', () => { cy.getByTestId('branch-header').should('contain', mockBackend.stackId); const stacks = mockBackend.getStacks(); - // There shuold be three stacks + // There should be three stacks cy.getByTestId('stack').should('have.length', stacks.length); // Select the second stack @@ -45,7 +45,7 @@ describe('Selection', () => { cy.getByTestIdByValue('branch-header', stackName) .click() .within(() => { - // Shouls have the stack url + // Should have the stack url cy.urlMatches(`/${PROJECT_ID}/workspace`); }); // Check if the file list is updated @@ -68,7 +68,7 @@ describe('Selection', () => { const stacks = mockBackend.getStacks(); const stack = stacks[0]!; - // There shuold be three stacks + // There should be three stacks cy.getByTestId('stack').should('have.length', stacks.length); // Select the initial commit which should be local only @@ -92,7 +92,7 @@ describe('Selection', () => { cy.getByTestId('branch-header').should('contain', mockBackend.stackWithTwoCommits); const stacks = mockBackend.getStacks(); - // There shuold be three stacks + // There should be three stacks cy.getByTestId('stack').should('have.length', stacks.length); cy.getByTestIdByValue('stack', mockBackend.stackWithTwoCommits) @@ -153,7 +153,7 @@ describe('Selection', () => { cy.getByTestId('branch-header').should('contain', mockBackend.stackWithTwoCommits); const stacks = mockBackend.getStacks(); - // There shuold be three stacks + // There should be three stacks cy.getByTestId('stack').should('have.length', stacks.length); cy.getByTestIdByValue('stack', mockBackend.stackWithTwoCommits) @@ -239,7 +239,7 @@ describe('Selection with upstream changes', () => { cy.getByTestId('branch-header').should('contain', mockBackend.stackId); const stacks = mockBackend.getStacks(); - // There shuold be three stacks + // There should be three stacks cy.getByTestId('stack').should('have.length', stacks.length); // Select the initial commit which should be local only diff --git a/apps/desktop/cypress/e2e/unifiedDiffView.cy.ts b/apps/desktop/cypress/e2e/unifiedDiffView.cy.ts index e8a678b6ff..8f8d4261d3 100644 --- a/apps/desktop/cypress/e2e/unifiedDiffView.cy.ts +++ b/apps/desktop/cypress/e2e/unifiedDiffView.cy.ts @@ -348,7 +348,7 @@ describe('Unified Diff View with complex hunks', () => { // Click on start a commit cy.getByTestId('start-commit-button').first().click(); - // Unstage everything expet the long hunk file + // Unstage everything expect the long hunk file cy.getByTestId('uncommitted-changes-file-list').within(() => { cy.getByTestId('file-list-item').each((item) => { const fileName = item.text().trim(); diff --git a/apps/desktop/cypress/e2e/workspace.cy.ts b/apps/desktop/cypress/e2e/workspace.cy.ts index 557d46f175..592bfdf812 100644 --- a/apps/desktop/cypress/e2e/workspace.cy.ts +++ b/apps/desktop/cypress/e2e/workspace.cy.ts @@ -9,7 +9,7 @@ describe('Workspace', () => { }); it('Should be redirected to the workspace', () => { - // This is basically jsut a smoke test to check that the workspace is loaded + // This is basically just a smoke test to check that the workspace is loaded cy.visit('/'); // Should be redirected to the workspac diff --git a/apps/desktop/src/components/BranchHeader.svelte b/apps/desktop/src/components/BranchHeader.svelte index 9d66e3c40e..4a73c7432e 100644 --- a/apps/desktop/src/components/BranchHeader.svelte +++ b/apps/desktop/src/components/BranchHeader.svelte @@ -128,7 +128,7 @@ class="branch-header" class:selected class:active - class:commiting={isCommitting} + class:committing={isCommitting} {onclick} onkeypress={onclick} tabindex="0" diff --git a/apps/desktop/src/components/ChunkyList.svelte b/apps/desktop/src/components/ChunkyList.svelte index f1c618bdb7..81e5805fa8 100644 --- a/apps/desktop/src/components/ChunkyList.svelte +++ b/apps/desktop/src/components/ChunkyList.svelte @@ -5,7 +5,7 @@ diff --git a/apps/desktop/src/components/CommitLineOverlay.svelte b/apps/desktop/src/components/CommitLineOverlay.svelte index 6eeacb4173..8b6d524db0 100644 --- a/apps/desktop/src/components/CommitLineOverlay.svelte +++ b/apps/desktop/src/components/CommitLineOverlay.svelte @@ -4,10 +4,10 @@ interface Props { hovered: boolean; activated: boolean; - advertize?: boolean; + advertise?: boolean; } - const { hovered, activated, advertize }: Props = $props(); + const { hovered, activated, advertise }: Props = $props(); let containerElement = $state(); let indicatorElement = $state(); @@ -46,7 +46,7 @@ bind:this={containerElement} class="dropzone-target container" class:activated - class:advertize + class:advertise class:hovered >
@@ -56,7 +56,7 @@
diff --git a/apps/desktop/src/components/Drawer.svelte b/apps/desktop/src/components/Drawer.svelte index 41fc12ac10..41b27844d3 100644 --- a/apps/desktop/src/components/Drawer.svelte +++ b/apps/desktop/src/components/Drawer.svelte @@ -114,7 +114,7 @@ {@const maxHeight = resizer.maxHeight && resizer.minHeight diff --git a/apps/desktop/src/components/GithubIntegration.svelte b/apps/desktop/src/components/GithubIntegration.svelte index c5fce799c0..e0ce7db744 100644 --- a/apps/desktop/src/components/GithubIntegration.svelte +++ b/apps/desktop/src/components/GithubIntegration.svelte @@ -150,7 +150,7 @@
- + {#snippet error()} {#snippet title()} diff --git a/apps/desktop/src/components/IntegrateUpstreamModal.svelte b/apps/desktop/src/components/IntegrateUpstreamModal.svelte index f47668146b..1f9a2ae446 100644 --- a/apps/desktop/src/components/IntegrateUpstreamModal.svelte +++ b/apps/desktop/src/components/IntegrateUpstreamModal.svelte @@ -152,10 +152,10 @@ // // This is to handle the case where the reviews might dictacte that // // we should remove a branch, but we don't have the have the merge // // commit yet. If we were to handle a branch as "integrated" without - // // the merge commit, files might dissapear for a users working tree + // // the merge commit, files might disappear for a users working tree // // in a supprising way. // // - // // We could query both of these simultaniously using Promise.all, + // // We could query both of these simultaneously using Promise.all, // // but that is extra complexity that is not needed for now. // await baseBranchService.fetchFromRemotes(projectId); // const reviews = await forgeListingService.fetchByBranch(projectId, appliedBranches); diff --git a/apps/desktop/src/components/MultiStackView.svelte b/apps/desktop/src/components/MultiStackView.svelte index 97766c7b8b..b63b30574e 100644 --- a/apps/desktop/src/components/MultiStackView.svelte +++ b/apps/desktop/src/components/MultiStackView.svelte @@ -164,7 +164,7 @@ use:resizeObserver={(data) => { // An experiment in prevent content shift. Currently this mechanism // allows content shift if the main viewport is scrolled to the left, - // because the content shift is most annoyin when there are many + // because the content shift is most annoying when there are many // lanes and you are e.g. making a commit to one of them. if (lastWidth && lanesScrollableEl) { // Only offset for sudden large changes. diff --git a/apps/desktop/src/components/NewRuleMenu.svelte b/apps/desktop/src/components/NewRuleMenu.svelte index 86bb37d585..c2ebc41ded 100644 --- a/apps/desktop/src/components/NewRuleMenu.svelte +++ b/apps/desktop/src/components/NewRuleMenu.svelte @@ -60,7 +60,7 @@ /> { handleAddFilter('semanticType'); diff --git a/apps/desktop/src/components/PullRequestCard.svelte b/apps/desktop/src/components/PullRequestCard.svelte index 0c5a9dea35..336ba0eab8 100644 --- a/apps/desktop/src/components/PullRequestCard.svelte +++ b/apps/desktop/src/components/PullRequestCard.svelte @@ -212,7 +212,7 @@ No reviewers {/if}
- +
@@ -257,7 +257,7 @@ } } - .seperator { + .separator { transform: translateY(-1.5px); color: var(--clr-text-3); } diff --git a/apps/desktop/src/components/Resizer.svelte b/apps/desktop/src/components/Resizer.svelte index a862bcc712..911b690f10 100644 --- a/apps/desktop/src/components/Resizer.svelte +++ b/apps/desktop/src/components/Resizer.svelte @@ -154,7 +154,7 @@ // handling of this event. if (resizeGroup) { const subtracted = resizeGroup.resize(resizerId, offsetRem); - // The initial offset needs to be adjusted if an adjustement + // The initial offset needs to be adjusted if an adjustment // means the whole resizer has moved. initial = initial - remToPx(subtracted, zoom); return; diff --git a/apps/desktop/src/components/UnifiedDiffView.svelte b/apps/desktop/src/components/UnifiedDiffView.svelte index c953f3fdf1..452c3729d1 100644 --- a/apps/desktop/src/components/UnifiedDiffView.svelte +++ b/apps/desktop/src/components/UnifiedDiffView.svelte @@ -67,7 +67,7 @@ const projectState = $derived(uiState.project(projectId)); const exclusiveAction = $derived(projectState.exclusiveAction.current); - const isCommiting = $derived( + const isCommitting = $derived( exclusiveAction?.type === 'commit' && selectionId.type === 'worktree' ); @@ -214,7 +214,7 @@ > . diff --git a/apps/desktop/src/lib/ai/service.ts b/apps/desktop/src/lib/ai/service.ts index e78042597b..a289c47591 100644 --- a/apps/desktop/src/lib/ai/service.ts +++ b/apps/desktop/src/lib/ai/service.ts @@ -188,7 +188,7 @@ export class AIService { } /** - * Returns the diff length limit with a specificed upper bound of characers in order to not inundate the API. + * Returns the diff length limit with a specified upper bound of characters in order to not inundate the API. */ async getDiffLengthLimitConsideringAPI() { const diffLengthLimit = await this.getDiffLengthLimit(); diff --git a/apps/desktop/src/lib/backend/clipboard.ts b/apps/desktop/src/lib/backend/clipboard.ts index 72fe3ed2d4..2359c35de8 100644 --- a/apps/desktop/src/lib/backend/clipboard.ts +++ b/apps/desktop/src/lib/backend/clipboard.ts @@ -11,7 +11,7 @@ export default class ClipboardService { * information about the success of this operation. * * @param text text to be copied into the system clipboard. - * @param errorMessage optional custom error message which will be displayed if the operation failes. If this is + * @param errorMessage optional custom error message which will be displayed if the operation fails. If this is * not provided, a default generic message will be used. */ async write( diff --git a/apps/desktop/src/lib/backend/web.ts b/apps/desktop/src/lib/backend/web.ts index 59b9f47dd5..b93ba76514 100644 --- a/apps/desktop/src/lib/backend/web.ts +++ b/apps/desktop/src/lib/backend/web.ts @@ -101,7 +101,7 @@ async function webHomeDirectory(): Promise { } async function webJoinPath(pathSegment: string, ...paths: string[]): Promise { - // TODO: We might want to expose some endpoint in the backedn to handle path joining in the right way. + // TODO: We might want to expose some endpoint in the backend to handle path joining in the right way. // This will break on windows return await Promise.resolve([pathSegment, ...paths].join(webPathSeparator())); } diff --git a/apps/desktop/src/lib/branches/branch.ts b/apps/desktop/src/lib/branches/branch.ts index 25c2b1b87b..3afb7db4d7 100644 --- a/apps/desktop/src/lib/branches/branch.ts +++ b/apps/desktop/src/lib/branches/branch.ts @@ -9,7 +9,7 @@ export type StackOrder = { /** * @desc Represents the order of changes (commits) in a series (branch). * @property name - Unique name of the series (branch). Must already exist in the stack. - * @property commitIds - This is the desired commit order for the series. Because the commits will be rabased, naturally, the the commit ids will be different afte updating. The changes are ordered from newest to oldest (most recent changes go first) + * @property commitIds - This is the desired commit order for the series. Because the commits will be rabased, naturally, the the commit ids will be different after updating. The changes are ordered from newest to oldest (most recent changes go first) */ type SeriesOrder = { diff --git a/apps/desktop/src/lib/branches/branchListing.ts b/apps/desktop/src/lib/branches/branchListing.ts index 0bd8f7c294..cca0cb9f2a 100644 --- a/apps/desktop/src/lib/branches/branchListing.ts +++ b/apps/desktop/src/lib/branches/branchListing.ts @@ -29,10 +29,10 @@ export type BranchListing = { stack?: StackReference | undefined; /** * Timestamp in milliseconds since the branch was last updated. - * This includes any commits, uncommited changes or even updates to the branch metadata (e.g. renaming). + * This includes any commits, uncommitted changes or even updates to the branch metadata (e.g. renaming). */ updatedAt: string; - /** The person who commited the head commit */ + /** The person who committed the head commit */ lastCommiter: Author; /** Whether or not there is a local branch as part of the grouping */ hasLocal: boolean; @@ -55,7 +55,7 @@ export type StackReference = { pullRequests: Record; }; -/** Represents a "commit author" or "signature", based on the data from ther git history */ +/** Represents a "commit author" or "signature", based on the data from there git history */ export type Author = { /** The name of the author as configured in the git config */ name?: string | undefined; @@ -74,7 +74,7 @@ export class BranchListingDetails { * Since the virtual branch, local branch and the remote one can have different number of lines removed, * the value from the virtual branch (if present) takes the highest precedence, * followed by the local branch and then the remote branches (taking the max if there are multiple). - * If this branch has a virutal branch, lines_added does NOT include the uncommitted lines. + * If this branch has a virtual branch, lines_added does NOT include the uncommitted lines. */ linesAdded!: number; /** @@ -82,7 +82,7 @@ export class BranchListingDetails { * Since the virtual branch, local branch and the remote one can have different number of lines removed, * the value from the virtual branch (if present) takes the highest precedence, * followed by the local branch and then the remote branches (taking the max if there are multiple) - * If this branch has a virutal branch, lines_removed does NOT include the uncommitted lines. + * If this branch has a virtual branch, lines_removed does NOT include the uncommitted lines. */ linesRemoved!: number; /** diff --git a/apps/desktop/src/lib/codegen/messages.ts b/apps/desktop/src/lib/codegen/messages.ts index 49f64a90e1..99c692a2b3 100644 --- a/apps/desktop/src/lib/codegen/messages.ts +++ b/apps/desktop/src/lib/codegen/messages.ts @@ -346,7 +346,7 @@ const webRequestCost = 10; * because the "assistant" ones come in more frequently. * * For some reason the final quantity of tokens ends up slightly greater than if - * you were using the result. I'm not entirly sure where the discrepency is. + * you were using the result. I'm not entirely sure where the discrepancy is. */ export function usageStats(events: ClaudeMessage[]): { tokens: number; diff --git a/apps/desktop/src/lib/commits/dropHandler.ts b/apps/desktop/src/lib/commits/dropHandler.ts index 214d117b12..5c68683898 100644 --- a/apps/desktop/src/lib/commits/dropHandler.ts +++ b/apps/desktop/src/lib/commits/dropHandler.ts @@ -16,7 +16,7 @@ import type { DropzoneHandler } from '$lib/dragging/handler'; import type { StackService } from '$lib/stacks/stackService.svelte'; import type { UiState } from '$lib/state/uiState.svelte'; -/** Details about a commit beloning to a drop zone. */ +/** Details about a commit belonging to a drop zone. */ export type DzCommitData = { id: string; isRemote: boolean; diff --git a/apps/desktop/src/lib/dependencies/dependencies.ts b/apps/desktop/src/lib/dependencies/dependencies.ts index 50818f0e17..1f3c2115a9 100644 --- a/apps/desktop/src/lib/dependencies/dependencies.ts +++ b/apps/desktop/src/lib/dependencies/dependencies.ts @@ -32,7 +32,7 @@ export type CalculationError = { }; /** - * Represents the depdendency of a diff hunk on a stack and commit. + * Represents the dependency of a diff hunk on a stack and commit. */ export type HunkLock = { /** @@ -52,7 +52,7 @@ export type DiffDependency = [string, DiffHunk, HunkLock[]]; export type HunkDependencies = { /** - * The dependecies of the hunks in the diff. + * The dependencies of the hunks in the diff. */ diffs: DiffDependency[]; /** diff --git a/apps/desktop/src/lib/dragging/registry.ts b/apps/desktop/src/lib/dragging/registry.ts index 32954e3fe7..4338773c69 100644 --- a/apps/desktop/src/lib/dragging/registry.ts +++ b/apps/desktop/src/lib/dragging/registry.ts @@ -4,7 +4,7 @@ import type { Dropzone } from '$lib/dragging/dropzone'; export const DROPZONE_REGISTRY = new InjectionToken('DropzoneRegistry'); /** - * This class was bascially only created in order to facilitate injection. + * This class was basically only created in order to facilitate injection. */ export class DropzoneRegistry { private map = new Map(); diff --git a/apps/desktop/src/lib/files/filetreeV3.ts b/apps/desktop/src/lib/files/filetreeV3.ts index ee71b8d265..b6cc29b898 100644 --- a/apps/desktop/src/lib/files/filetreeV3.ts +++ b/apps/desktop/src/lib/files/filetreeV3.ts @@ -1,7 +1,7 @@ /** * It's easier to understand a hierarchical structure than a flat list. * - * This module provides support for tranforming a list of files into a + * This module provides support for transforming a list of files into a * hirerarchical structure for easy rendering. */ diff --git a/apps/desktop/src/lib/forge/gitlab/types.ts b/apps/desktop/src/lib/forge/gitlab/types.ts index 0cb4ec2645..84da07bd0e 100644 --- a/apps/desktop/src/lib/forge/gitlab/types.ts +++ b/apps/desktop/src/lib/forge/gitlab/types.ts @@ -92,8 +92,8 @@ export function mrToInstance(pr: MergeRequestSchema): PullRequest { mergedAt: pr.merged_at || undefined, closedAt: pr.closed_at || undefined, repoOwner: '', // This is fine - repositorySshUrl: '', // This is hopfully not used - repositoryHttpsUrl: '', // This is hopfully not used + repositorySshUrl: '', // This is hopefully not used + repositoryHttpsUrl: '', // This is hopefully not used reviewers }; } diff --git a/apps/desktop/src/lib/forge/prPolling.svelte.ts b/apps/desktop/src/lib/forge/prPolling.svelte.ts index 01dc037922..39438af389 100644 --- a/apps/desktop/src/lib/forge/prPolling.svelte.ts +++ b/apps/desktop/src/lib/forge/prPolling.svelte.ts @@ -9,7 +9,7 @@ const POLLING_INTERVAL = 15 * 60 * 1000; // 15 minutes. /** * Return a reactive list of pull requests for the given project ID. * - * This will poll the PRs in the defined interval, and update the everytime the project ID changes. + * This will poll the PRs in the defined interval, and update the every time the project ID changes. * This will also update the branch selection. If a PR is selected, it will check if the PR still exists. */ export default function prList( diff --git a/apps/desktop/src/lib/forge/shared/prFooter.ts b/apps/desktop/src/lib/forge/shared/prFooter.ts index 6a1968f92b..4493e5d078 100644 --- a/apps/desktop/src/lib/forge/shared/prFooter.ts +++ b/apps/desktop/src/lib/forge/shared/prFooter.ts @@ -80,7 +80,7 @@ export async function updateStackPrs( } /** - * Remove the PR description footer fromt the given PR numbers. + * Remove the PR description footer from the given PR numbers. */ export async function unstackPRs( prService: ForgePrService, diff --git a/apps/desktop/src/lib/history/oplogService.svelte.ts b/apps/desktop/src/lib/history/oplogService.svelte.ts index 060692b707..2c9dfaa50d 100644 --- a/apps/desktop/src/lib/history/oplogService.svelte.ts +++ b/apps/desktop/src/lib/history/oplogService.svelte.ts @@ -4,7 +4,7 @@ import type { BackendApi, ClientState } from '$lib/state/clientState.svelte'; export const OPLOG_SERVICE = new InjectionToken('OplogService'); -/** Supercedes the HistoryService */ +/** Supersedes the HistoryService */ export class OplogService { private api: ReturnType; diff --git a/apps/desktop/src/lib/hunks/change.ts b/apps/desktop/src/lib/hunks/change.ts index 1debb18fdd..2002c23dd9 100644 --- a/apps/desktop/src/lib/hunks/change.ts +++ b/apps/desktop/src/lib/hunks/change.ts @@ -25,7 +25,7 @@ export type TreeChange = { readonly path: string; /** * Something silently carried back and forth between the frontend and the backend. - * This is neccessary because the path string conversion is lossy. + * This is necessary because the path string conversion is lossy. */ readonly pathBytes: number[]; /** The specific information about this change.*/ @@ -153,7 +153,7 @@ export type Rename = { /** * Something that fully identifies the state of a [`TreeChange`] in the backend. - * The fontend does not need to interact with this, but when requesting the UniDiff of a TreeChange, + * The frontend does not need to interact with this, but when requesting the UniDiff of a TreeChange, * this information allows for efficient retrieval of the content. */ type ChangeState = { diff --git a/apps/desktop/src/lib/irc/ircClient.svelte.ts b/apps/desktop/src/lib/irc/ircClient.svelte.ts index 90d1635763..f2f86d3e73 100644 --- a/apps/desktop/src/lib/irc/ircClient.svelte.ts +++ b/apps/desktop/src/lib/irc/ircClient.svelte.ts @@ -58,7 +58,7 @@ export class IrcClient { /** * Connect to an IRC server. * - * Throws if identity not avaialable, the server otherwise disconnects + * Throws if identity not available, the server otherwise disconnects * after some timeout. */ connect(config: { server: string; nick: string }) { diff --git a/apps/desktop/src/lib/notifications/toasts.ts b/apps/desktop/src/lib/notifications/toasts.ts index a95cd7529e..702cdbadc0 100644 --- a/apps/desktop/src/lib/notifications/toasts.ts +++ b/apps/desktop/src/lib/notifications/toasts.ts @@ -62,7 +62,7 @@ export function showError(title: string, error: unknown, extraAction?: ExtraActi if (isBundlingError(message)) { console.warn( 'You are likely experiencing a dev mode bundling error, ' + - 'try disabling the chache from the network tab and ' + + 'try disabling the cache from the network tab and ' + 'reload the page.' ); return; diff --git a/apps/desktop/src/lib/selection/entityAdapters.ts b/apps/desktop/src/lib/selection/entityAdapters.ts index d89bd460fe..0944c1384c 100644 --- a/apps/desktop/src/lib/selection/entityAdapters.ts +++ b/apps/desktop/src/lib/selection/entityAdapters.ts @@ -53,7 +53,7 @@ export const hunkAssignmentAdapter = createEntityAdapter /** * There may be at most one HunkSelection for each HunkAssignment. As such, we - * use an `assignmentId` which cooresponds to a given HunkAssignment both as a + * use an `assignmentId` which corresponds to a given HunkAssignment both as a * foreign key, but also the primary identifier of a HunkSelection. */ export type HunkSelection = { diff --git a/apps/desktop/src/lib/selection/uncommitted.ts b/apps/desktop/src/lib/selection/uncommitted.ts index 17f45deeaf..5252b6d8cf 100644 --- a/apps/desktop/src/lib/selection/uncommitted.ts +++ b/apps/desktop/src/lib/selection/uncommitted.ts @@ -53,8 +53,8 @@ export const uncommittedSlice = createSlice({ ); }, // We want to go over all the existing hunk assignments and - // - Remove any that don't have a cooresponding id in the new assignments. - // - Update the selections in those that have a cooresponding id in the new assignments. + // - Remove any that don't have a corresponding id in the new assignments. + // - Update the selections in those that have a corresponding id in the new assignments. // - Add any new assignments update(state, action: PayloadAction<{ assignments: HunkAssignment[]; changes: TreeChange[] }>) { return updateAssignments(state, action); @@ -497,7 +497,7 @@ export const uncommittedSelectors = { }; /** - * Replaces the old tree changes and hunk assignments entirly. + * Replaces the old tree changes and hunk assignments entirely. * Then for the selections, it will loop over the old selections and: * - If there is a new assignment with the same stable ID, it will add the * assignment, with updated header information. diff --git a/apps/desktop/src/lib/selection/uncommittedService.svelte.ts b/apps/desktop/src/lib/selection/uncommittedService.svelte.ts index 30c0fa861f..0282106070 100644 --- a/apps/desktop/src/lib/selection/uncommittedService.svelte.ts +++ b/apps/desktop/src/lib/selection/uncommittedService.svelte.ts @@ -259,7 +259,7 @@ export class UncommittedService { } if (hunkDiff) - // Only some lines withing the hunk are selected. + // Only some lines within the hunk are selected. preprocessedHeaders.push({ type: 'partial', selectedLines: lines, diff --git a/apps/desktop/src/lib/soup/commitAnalytics.ts b/apps/desktop/src/lib/soup/commitAnalytics.ts index 47d989cdf6..a1389768d4 100644 --- a/apps/desktop/src/lib/soup/commitAnalytics.ts +++ b/apps/desktop/src/lib/soup/commitAnalytics.ts @@ -73,7 +73,7 @@ export class CommitAnalytics { branchCount: this.getBranchCount(stack), // Number of commits in the stack we are committing to laneCommitCount: this.getLaneCommitCount(branches), - // Number of commits in the branch in the stack that we are comitting to + // Number of commits in the branch in the stack that we are committing to branchCommitCount: this.getBranchCommitCount(commits), // Whether this commit is the last/top commit in the branch isLastCommit: this.getIsLastCommit(stack, args.parentId), diff --git a/apps/desktop/src/lib/stacks/macros.ts b/apps/desktop/src/lib/stacks/macros.ts index d5c9bf2066..6a6e10db54 100644 --- a/apps/desktop/src/lib/stacks/macros.ts +++ b/apps/desktop/src/lib/stacks/macros.ts @@ -111,7 +111,7 @@ export default class StackMacros { const newCommitId = replacedCommits.find(([before]) => before === destinationCommitId)?.[1]; if (!newCommitId) { - // This happend only if something went wrong + // This happened only if something went wrong throw new Error('No new commit id found for the moved changes'); } diff --git a/apps/desktop/src/lib/stacks/stackService.svelte.ts b/apps/desktop/src/lib/stacks/stackService.svelte.ts index ac837e5163..2713ae700d 100644 --- a/apps/desktop/src/lib/stacks/stackService.svelte.ts +++ b/apps/desktop/src/lib/stacks/stackService.svelte.ts @@ -485,7 +485,7 @@ export class StackService { get pushStack() { return this.api.endpoints.pushStack.useMutation({ sideEffect: (_, args) => { - // Timeout to accomodate eventual consistency. + // Timeout to accommodate eventual consistency. setTimeout(() => { this.forgeFactory.invalidate([ invalidatesItem(ReduxTag.PullRequests, args.stackId), @@ -1016,8 +1016,8 @@ function injectEndpoints(api: ClientState['backendApi'], uiState: UiState) { response.branchDetails ); - // This is a list of all the commits accross all branches in the stack. - // If you want to acces the commits of a specific branch, use the + // This is a list of all the commits across all branches in the stack. + // If you want to access the commits of a specific branch, use the // `commits` property of the `BranchDetails` struct. const commitsEntity = commitAdapter.addMany( commitAdapter.getInitialState(), @@ -1055,8 +1055,8 @@ function injectEndpoints(api: ClientState['backendApi'], uiState: UiState) { extraOptions: { command: 'branch_details' }, query: (args) => args, transformResponse(branchDetails: BranchDetails) { - // This is a list of all the commits accross all branches in the stack. - // If you want to acces the commits of a specific branch, use the + // This is a list of all the commits across all branches in the stack. + // If you want to access the commits of a specific branch, use the // `commits` property of the `BranchDetails` struct. const commitsEntity = commitAdapter.addMany( commitAdapter.getInitialState(), diff --git a/apps/desktop/src/lib/state/butlerModule.ts b/apps/desktop/src/lib/state/butlerModule.ts index 37841d788f..38483e37ed 100644 --- a/apps/desktop/src/lib/state/butlerModule.ts +++ b/apps/desktop/src/lib/state/butlerModule.ts @@ -222,7 +222,7 @@ type DefaultTransformer> = ( ) => ResultTypeFrom; /** - * A custom defintion of our queries since it needs to be referenced in a few + * A custom definition of our queries since it needs to be referenced in a few * different places. */ export type CustomQuery = QueryDefinition; diff --git a/apps/desktop/src/lib/state/helpers.test.ts b/apps/desktop/src/lib/state/helpers.test.ts index 9c5714a65d..8c5783138f 100644 --- a/apps/desktop/src/lib/state/helpers.test.ts +++ b/apps/desktop/src/lib/state/helpers.test.ts @@ -31,7 +31,7 @@ describe.concurrent('combineResults', () => { expect(combineResults(uninitialized)).toEqual(uninitialized); }); - test('rejected takes precidence over all', () => { + test('rejected takes precedence over all', () => { const fulfilled = { data: 'foo', error: undefined, @@ -55,7 +55,7 @@ describe.concurrent('combineResults', () => { expect(combineResults(fulfilled, pending, rejected, uninitialized)).toEqual(rejected); }); - test('uninitialized takes precidence over fufilled and pending', () => { + test('uninitialized takes precedence over fulfilled and pending', () => { const fulfilled = { data: 'foo', error: undefined, @@ -74,7 +74,7 @@ describe.concurrent('combineResults', () => { expect(combineResults(fulfilled, pending, uninitialized)).toEqual(uninitialized); }); - test('pending takes precidence over fufilled', () => { + test('pending takes precedence over fulfilled', () => { const fulfilled = { data: 'foo', error: undefined, @@ -88,7 +88,7 @@ describe.concurrent('combineResults', () => { expect(combineResults(fulfilled, pending)).toEqual(pending); }); - test('multiple fufilled combines results in order', () => { + test('multiple fulfilled combines results in order', () => { const a = { data: 'a', error: undefined, diff --git a/apps/desktop/src/lib/user/userService.ts b/apps/desktop/src/lib/user/userService.ts index 63683ec393..51efec5d17 100644 --- a/apps/desktop/src/lib/user/userService.ts +++ b/apps/desktop/src/lib/user/userService.ts @@ -138,7 +138,7 @@ export class UserService { await sleep(pollingFrequency); } - throw new Error('Login token expired. Please try loging in again'); + throw new Error('Login token expired. Please try logging in again'); } // TODO: Remove token from URL, we don't want that leaking into logs. diff --git a/apps/desktop/src/lib/utils/unsubscribe.test.ts b/apps/desktop/src/lib/utils/unsubscribe.test.ts index bc5dfcc1d0..7e4d513fe2 100644 --- a/apps/desktop/src/lib/utils/unsubscribe.test.ts +++ b/apps/desktop/src/lib/utils/unsubscribe.test.ts @@ -2,17 +2,17 @@ import { unsubscribe } from '$lib/utils/unsubscribe'; import { expect, test, describe } from 'vitest'; describe.concurrent('unsubscribe', () => { - test('When provided an undefined value, it resovles to undefined', async () => { + test('When provided an undefined value, it resolves to undefined', async () => { expect(await unsubscribe(undefined)()).toEqual([undefined]); }); - test('When provided a function, it resovles to that functions return value', async () => { + test('When provided a function, it resolves to that functions return value', async () => { // eslint-disable-next-line func-style const subscription = () => 42; expect(await unsubscribe(subscription)()).toEqual([42]); }); - test('When provided a promise of a function, it resovles to that functions return value', async () => { + test('When provided a promise of a function, it resolves to that functions return value', async () => { const subscription = Promise.resolve(() => 42); expect(await unsubscribe(subscription)()).toEqual([42]); }); diff --git a/apps/desktop/src/routes/[projectId]/history/+page.svelte b/apps/desktop/src/routes/[projectId]/history/+page.svelte index cbec24a13e..47fde62c32 100644 --- a/apps/desktop/src/routes/[projectId]/history/+page.svelte +++ b/apps/desktop/src/routes/[projectId]/history/+page.svelte @@ -121,7 +121,7 @@ isWithinRestore={withinRestoreItems.includes(entry.id)} onRestoreClick={() => { historyService.restoreSnapshot(projectId, entry.id); - // In some cases, restoring the snapshot doesnt update the UI correctly + // In some cases, restoring the snapshot doesn't update the UI correctly // Until we have that figured out, we need to reload the page. location.reload(); }} diff --git a/apps/desktop/src/routes/onboarding/+page.svelte b/apps/desktop/src/routes/onboarding/+page.svelte index 1bad032ee9..afcf2fda4a 100644 --- a/apps/desktop/src/routes/onboarding/+page.svelte +++ b/apps/desktop/src/routes/onboarding/+page.svelte @@ -18,7 +18,7 @@ const projectsQuery = $derived(projectsService.projects()); // We don't want to have this guard in the layout, because we want to have - // `/onboarding/clone` accessable. + // `/onboarding/clone` accessible. $effect(() => { // Users should not be able to get here now that we load projects // sensibly, but hey, let's be sure. diff --git a/apps/web/src/lib/components/infoFlexRow/InfoFlexRow.svelte b/apps/web/src/lib/components/infoFlexRow/InfoFlexRow.svelte index 6200d1049d..eabce71183 100644 --- a/apps/web/src/lib/components/infoFlexRow/InfoFlexRow.svelte +++ b/apps/web/src/lib/components/infoFlexRow/InfoFlexRow.svelte @@ -21,7 +21,7 @@ flex-wrap: wrap; gap: 16px 30px; - /* TODO: Add contaner query here. It doesn't work in the current version of Svelte. */ + /* TODO: Add container query here. It doesn't work in the current version of Svelte. */ /* display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); grid-auto-flow: row dense; diff --git a/apps/web/src/lib/components/review/ReviewSections.svelte b/apps/web/src/lib/components/review/ReviewSections.svelte index e7ff159412..e90dcdc15e 100644 --- a/apps/web/src/lib/components/review/ReviewSections.svelte +++ b/apps/web/src/lib/components/review/ReviewSections.svelte @@ -1,7 +1,7 @@