Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix frontend typos (#68003)

Nemanja Glumac75476f4ae1ba
diff --git a/frontend/src/metabase-lib/v1/parameters/utils/parameter-type.unit.spec.js b/frontend/src/metabase-lib/v1/parameters/utils/parameter-type.unit.spec.js
index 5acd7ab1825..ace816604b0 100644
--- a/frontend/src/metabase-lib/v1/parameters/utils/parameter-type.unit.spec.js
+++ b/frontend/src/metabase-lib/v1/parameters/utils/parameter-type.unit.spec.js
@@ -15,7 +15,7 @@ describe("parameters/utils/parameter-type", () => {
expect(getParameterType({ type: "category" })).toEqual("category");
});
- it("should prefer using a sectionId for determing the type if it exists", () => {
+ it("should prefer using a sectionId for determining the type if it exists", () => {
expect(
getParameterType({ sectionId: "location", type: "string/=" }),
).toEqual("location");
diff --git a/frontend/src/metabase-shared/color_selector.js b/frontend/src/metabase-shared/color_selector.js
index 34ef01c63f1..7c52f17d4e8 100644
--- a/frontend/src/metabase-shared/color_selector.js
+++ b/frontend/src/metabase-shared/color_selector.js
@@ -1,7 +1,7 @@
// This runs in the Nashorn JavaScript engine and there are some limitations
//
// 1. This is not currently automatically built with the rest of the application, please run `yarn build-shared` after modifying
-// 2. Avoid including unecessary libraries as the JS engine takes a long time to parse and execute them
+// 2. Avoid including unnecessary libraries as the JS engine takes a long time to parse and execute them
// 3. Related to #2, we aren't currently including `core-js` so don't use features that require it, e.x. iterables / for-of
import { makeCellBackgroundGetter } from "metabase/visualizations/lib/table_format";
diff --git a/frontend/src/metabase-types/api/dataset.ts b/frontend/src/metabase-types/api/dataset.ts
index 707ed6d11b1..b98f1c1c063 100644
--- a/frontend/src/metabase-types/api/dataset.ts
+++ b/frontend/src/metabase-types/api/dataset.ts
@@ -188,7 +188,7 @@ export type SingleSeriesWithTranslation = SingleSeries & {
data: Dataset["data"] & {
/**
* The original, untranslated rows for this series (if any).
- * Undefined if no translation occured.
+ * Undefined if no translation occurred.
*/
untranslatedRows?: RowValues[];
};
diff --git a/frontend/src/metabase-types/api/insight.ts b/frontend/src/metabase-types/api/insight.ts
index 6a1972fe799..dd2bce6d32a 100644
--- a/frontend/src/metabase-types/api/insight.ts
+++ b/frontend/src/metabase-types/api/insight.ts
@@ -24,7 +24,7 @@ export interface Insight {
unit: DateTimeAbsoluteUnit;
// Used for trend line on line/area/bar/combo charts.
- // Will try to use "best-fit" expression if it exsits,
+ // Will try to use "best-fit" expression if it exists,
// if not the function will be x*slope + offset
"best-fit"?: InsightExpression;
offset: number;
diff --git a/frontend/src/metabase-types/api/mocks/settings.ts b/frontend/src/metabase-types/api/mocks/settings.ts
index 23fcf3d04eb..5614bf94268 100644
--- a/frontend/src/metabase-types/api/mocks/settings.ts
+++ b/frontend/src/metabase-types/api/mocks/settings.ts
@@ -266,7 +266,7 @@ export const createMockSettings = (
* This is a derived setting and it reads either from an env, or from the list
* of databases. It checks whether there is a db with `is_sample` property.
* You probably don't want to set this directly in tests because it can get out
- * of sync with the database state (whch should be a source of truth).
+ * of sync with the database state (which should be a source of truth).
*/
"has-sample-database?": undefined,
"has-user-setup": true,
diff --git a/frontend/src/metabase/admin/datamodel/components/SegmentActionSelect.module.css b/frontend/src/metabase/admin/datamodel/components/SegmentActionSelect.module.css
index 04d35b4713b..fd9930f94df 100644
--- a/frontend/src/metabase/admin/datamodel/components/SegmentActionSelect.module.css
+++ b/frontend/src/metabase/admin/datamodel/components/SegmentActionSelect.module.css
@@ -2,7 +2,7 @@
color: var(--mb-color-error);
}
-/* double classname for specifity */
+/* double classname for specificity */
.dangerItem.dangerItem:hover {
background-color: var(--mb-color-error);
color: var(--mb-color-text-primary-inverse);
diff --git a/frontend/src/metabase/admin/people/forms/UserForm.unit.spec.tsx b/frontend/src/metabase/admin/people/forms/UserForm.unit.spec.tsx
index 8271544c5dd..bf48947277c 100644
--- a/frontend/src/metabase/admin/people/forms/UserForm.unit.spec.tsx
+++ b/frontend/src/metabase/admin/people/forms/UserForm.unit.spec.tsx
@@ -292,9 +292,9 @@ describe("UserForm", () => {
await userEvent.click(await screen.findByText("Add an attribute"));
// We need a delay in typing into the form so that the error
- // state is handled apropriately. Formik clears errors when you call
+ // state is handled appropriately. Formik clears errors when you call
// setValue, so we need to ensure that no other setValue calls are in
- // flight before typing the letter can causes the error.
+ // flight before typing the letter can cause the error.
await userEvent.type(
(await screen.findAllByPlaceholderText("Key"))[1],
"team",
diff --git a/frontend/src/metabase/admin/permissions/utils/graph/data-permissions/get.ts b/frontend/src/metabase/admin/permissions/utils/graph/data-permissions/get.ts
index 4b145eaa6ec..85d803ec700 100644
--- a/frontend/src/metabase/admin/permissions/utils/graph/data-permissions/get.ts
+++ b/frontend/src/metabase/admin/permissions/utils/graph/data-permissions/get.ts
@@ -13,7 +13,7 @@ import {
import { PLUGIN_ADVANCED_PERMISSIONS } from "metabase/plugins";
import type { GroupsPermissions } from "metabase-types/api";
-// permission that do not have a nested shemas/native key
+// permission that do not have a nested schemas/native key
const flatPermissions = new Set([
DataPermission.DETAILS,
DataPermission.VIEW_DATA,
diff --git a/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupMappingsWidget.unit.spec.jsx b/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupMappingsWidget.unit.spec.jsx
index 3d25be91269..184cd54bc2d 100644
--- a/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupMappingsWidget.unit.spec.jsx
+++ b/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupMappingsWidget.unit.spec.jsx
@@ -84,7 +84,7 @@ describe("GroupMappingsWidgetView", () => {
expect(
await screen.findByText(
- "No mappings yet, groups will be automatically assgined by exactly matching names",
+ "No mappings yet, groups will be automatically assigned by exactly matching names",
),
).toBeInTheDocument();
});
diff --git a/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupMappingsWidgetView.jsx b/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupMappingsWidgetView.jsx
index 55cdd7b0962..484e2f2ceee 100644
--- a/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupMappingsWidgetView.jsx
+++ b/frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget/GroupMappingsWidgetView.jsx
@@ -37,7 +37,7 @@ const noMappingText = (mappingSetting, syncSwitchValue) => {
return `No mappings yet, group sync is not on`;
}
if (mappingSetting === "jwt-group-mappings") {
- return t`No mappings yet, groups will be automatically assgined by exactly matching names`;
+ return t`No mappings yet, groups will be automatically assigned by exactly matching names`;
}
return t`No mappings yet`;
};
diff --git a/frontend/src/metabase/admin/tools/components/JobInfoApp.jsx b/frontend/src/metabase/admin/tools/components/JobInfoApp.jsx
index ac11599e35f..d554f245468 100644
--- a/frontend/src/metabase/admin/tools/components/JobInfoApp.jsx
+++ b/frontend/src/metabase/admin/tools/components/JobInfoApp.jsx
@@ -81,7 +81,7 @@ export const JobInfoApp = ({ children }) => {
<JobsTable jobs={data?.jobs} />
</SettingsSection>
{
- // render 'children' so that the invididual task modals show up
+ // render 'children' so that the individual task modals show up
children
}
</Stack>
diff --git a/frontend/src/metabase/admin/tools/components/Logs/Logs.tsx b/frontend/src/metabase/admin/tools/components/Logs/Logs.tsx
index 227fb8adb23..81a483b63b9 100644
--- a/frontend/src/metabase/admin/tools/components/Logs/Logs.tsx
+++ b/frontend/src/metabase/admin/tools/components/Logs/Logs.tsx
@@ -27,7 +27,7 @@ import {
interface LogsProps {
children?: ReactNode;
location: Location;
- // NOTE: fetching logs could come back from any machine if there's multiple machines backing a MB isntance
+ // NOTE: fetching logs could come back from any machine if there's multiple machines backing a MB instance
// make this frequent enough that you will most likely get every log from every machine in some reasonable
// amount of time
pollingDurationMs?: number;
diff --git a/frontend/src/metabase/admin/tools/components/Logs/Logs.unit.spec.tsx b/frontend/src/metabase/admin/tools/components/Logs/Logs.unit.spec.tsx
index 4de2b575caa..b2c6aa324cc 100644
--- a/frontend/src/metabase/admin/tools/components/Logs/Logs.unit.spec.tsx
+++ b/frontend/src/metabase/admin/tools/components/Logs/Logs.unit.spec.tsx
@@ -149,7 +149,7 @@ describe("Logs", () => {
});
it("should display server error message if an error occurs", async () => {
- const errMsg = `An unexpected error occured.`;
+ const errMsg = `An unexpected error occurred.`;
fetchMock.get("path:/api/logger/logs", {
status: 500,
body: { message: errMsg },
diff --git a/frontend/src/metabase/admin/tools/components/TasksApp/TasksApp.tsx b/frontend/src/metabase/admin/tools/components/TasksApp/TasksApp.tsx
index 55ee6e6a134..1c8f41c79e2 100644
--- a/frontend/src/metabase/admin/tools/components/TasksApp/TasksApp.tsx
+++ b/frontend/src/metabase/admin/tools/components/TasksApp/TasksApp.tsx
@@ -108,7 +108,7 @@ const TasksAppBase = ({ children, location }: TasksAppProps) => {
/>
</SettingsSection>
{
- // render 'children' so that the invididual task modals show up
+ // render 'children' so that the individual task modals show up
children
}
</SettingsPageWrapper>
diff --git a/frontend/src/metabase/api/utils/use-token-refresh.ts b/frontend/src/metabase/api/utils/use-token-refresh.ts
index 4656eeba48b..cff7742dd5c 100644
--- a/frontend/src/metabase/api/utils/use-token-refresh.ts
+++ b/frontend/src/metabase/api/utils/use-token-refresh.ts
@@ -12,7 +12,7 @@ const REFRESH_INTERVAL = 10 * 1000; // 10 seconds
* every 10 seconds until it gets a payload that doesn't have the refresh token feature.
*/
export function useTokenRefresh() {
- /* in order to force this hook to re-run on every request, even if the response data is the same, we can't destructure only the data prop from this hook, as is the patten in many components */
+ /* in order to force this hook to re-run on every request, even if the response data is the same, we can't destructure only the data prop from this hook, as is the pattern in many components */
const res = useGetSettingsQuery();
const dispatch = useDispatch();
@@ -44,7 +44,7 @@ export function useTokenRefreshUntil(
skip = false,
}: { intervalMs?: number; skip?: boolean },
) {
- /* in order to force this hook to re-run on every request, even if the response data is the same, we can't destructure only the data prop from this hook, as is the patten in many components */
+ /* in order to force this hook to re-run on every request, even if the response data is the same, we can't destructure only the data prop from this hook, as is the pattern in many components */
const res = useGetSettingsQuery();
const dispatch = useDispatch();
diff --git a/frontend/src/metabase/common/components/AccordionList/utils.ts b/frontend/src/metabase/common/components/AccordionList/utils.ts
index a5af4e01901..175d360aac5 100644
--- a/frontend/src/metabase/common/components/AccordionList/utils.ts
+++ b/frontend/src/metabase/common/components/AccordionList/utils.ts
@@ -196,7 +196,7 @@ function searchStrategy<TItem extends Item, TSection extends Section<TItem>>({
/**
* alwaysMatch is a SearchStrategy that returns all the items with a score of 0.
- * It performs no work to see if an item acutally matches the search text.
+ * It performs no work to see if an item actually matches the search text.
*/
const alwaysMatch = function <TItem extends Item>(): ItemScores<TItem> {
return {
@@ -286,7 +286,7 @@ function sortAndFilterItems<TItem extends Item>(
*
* This basically acts as a LRU cache with just one cache entry.
*
- * We use this over _.memoize because we rely on object identiy to memoize
+ * We use this over _.memoize because we rely on object identity to memoize
* the search index, and _.memoize use string hashing for equality.
*/
function memoize<T extends object, R>(fn: (t: T) => R): (t: T) => R {
diff --git a/frontend/src/metabase/common/components/AdHocQuestionLoader.jsx b/frontend/src/metabase/common/components/AdHocQuestionLoader.jsx
index faec8d37855..6a4bf0f2a10 100644
--- a/frontend/src/metabase/common/components/AdHocQuestionLoader.jsx
+++ b/frontend/src/metabase/common/components/AdHocQuestionLoader.jsx
@@ -95,8 +95,8 @@ export class AdHocQuestionLoader extends Component {
const card = deserializeCardFromUrl(questionHash);
// pass the decoded card to load any necessary metadata
// (tables, source db, segments, etc) into
- // the redux store, the resulting metadata will be avaliable as metadata on the
- // component props once it's avaliable
+ // the redux store, the resulting metadata will be available as metadata on the
+ // component props once it's available
await this.props.loadMetadataForCard(card);
// instantiate a new question object using the metadata and saved question
diff --git a/frontend/src/metabase/common/components/AdHocQuestionLoader.unit.spec.js b/frontend/src/metabase/common/components/AdHocQuestionLoader.unit.spec.js
index 8a8fa0e6f05..24f3bbfba6f 100644
--- a/frontend/src/metabase/common/components/AdHocQuestionLoader.unit.spec.js
+++ b/frontend/src/metabase/common/components/AdHocQuestionLoader.unit.spec.js
@@ -51,7 +51,7 @@ describe("AdHocQuestionLoader", () => {
});
it("should load a new question if the question hash changes", () => {
- // create some junk strigs, real question hashes are more ludicrous but this
+ // create some junk strings, real question hashes are more ludicrous but this
// is easier to verify
const originalQuestionHash = "#abc123";
const newQuestionHash = "#def456";
diff --git a/frontend/src/metabase/common/components/DebouncedFrame/DebouncedFrame.jsx b/frontend/src/metabase/common/components/DebouncedFrame/DebouncedFrame.jsx
index 920f2bd3192..082db1699ba 100644
--- a/frontend/src/metabase/common/components/DebouncedFrame/DebouncedFrame.jsx
+++ b/frontend/src/metabase/common/components/DebouncedFrame/DebouncedFrame.jsx
@@ -10,7 +10,7 @@ const DEBOUNCE_PERIOD = 300;
/**
* This component prevents children elements from being rerendered while it's being resized (currently hard-coded debounce period of 250ms)
- * Useful for rendering components that maybe take a long time to render but you still wnat to allow their container to be resized fluidly
+ * Useful for rendering components that maybe take a long time to render but you still want to allow their container to be resized fluidly
* We also fade the component out and block mouse events while it's transitioning
*/
diff --git a/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/ConfirmMoveDashboardQuestionCandidatesModal.tsx b/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/ConfirmMoveDashboardQuestionCandidatesModal.tsx
index 37725bd0225..7d49d373a74 100644
--- a/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/ConfirmMoveDashboardQuestionCandidatesModal.tsx
+++ b/frontend/src/metabase/common/components/MoveQuestionsIntoDashboardsModal/ConfirmMoveDashboardQuestionCandidatesModal.tsx
@@ -72,7 +72,7 @@ export const ConfirmMoveDashboardQuestionCandidatesModal = ({
}}
styles={{
header: {
- paddingRight: "2.5rem", // Needed for increased specifity
+ paddingRight: "2.5rem", // Needed for increased specificity
},
}}
>
diff --git a/frontend/src/metabase/common/components/Pickers/DashboardPicker/components/DashboardPicker/DashboardPicker.tsx b/frontend/src/metabase/common/components/Pickers/DashboardPicker/components/DashboardPicker/DashboardPicker.tsx
index 17ed3c9d457..affc6d6da29 100644
--- a/frontend/src/metabase/common/components/Pickers/DashboardPicker/components/DashboardPicker/DashboardPicker.tsx
+++ b/frontend/src/metabase/common/components/Pickers/DashboardPicker/components/DashboardPicker/DashboardPicker.tsx
@@ -127,7 +127,7 @@ const DashboardPickerInner = (
useDeepCompareEffect(
function setInitialPath() {
- // This can reallly be driven from currentDashboard.collection, and we should not be looking at currentCollection at all.
+ // This can really be driven from currentDashboard.collection, and we should not be looking at currentCollection at all.
if (currentCollection?.id) {
const idPath = getCollectionIdPath(
{
diff --git a/frontend/src/metabase/common/components/QuestionResultLoader.jsx b/frontend/src/metabase/common/components/QuestionResultLoader.jsx
index 7bc4d418ca2..3657dc3f099 100644
--- a/frontend/src/metabase/common/components/QuestionResultLoader.jsx
+++ b/frontend/src/metabase/common/components/QuestionResultLoader.jsx
@@ -15,7 +15,7 @@ const propTypes = {
/*
* Question result loader
*
- * Handle runninng, canceling, and reloading Question results
+ * Handle running, canceling, and reloading Question results
*
* @example
* <QuestionResultLoader question={question}>
@@ -120,7 +120,7 @@ export class QuestionResultLoader extends Component {
children({
results,
result: results && results[0],
- // convienence for <Visualization /> component. Only support single series for now
+ // convenience for <Visualization /> component. Only support single series for now
rawSeries:
question && results
? [{ card: question.card(), data: results[0].data }]
diff --git a/frontend/src/metabase/common/components/TabRow/collision-detection.ts b/frontend/src/metabase/common/components/TabRow/collision-detection.ts
index c92e6e39da6..2482c2043b2 100644
--- a/frontend/src/metabase/common/components/TabRow/collision-detection.ts
+++ b/frontend/src/metabase/common/components/TabRow/collision-detection.ts
@@ -10,7 +10,7 @@ export const tabsCollisionDetection: CollisionDetection = ({
// which updates in realtime, `activeRect` retains the original properties of
// the list before dragging. E.g. `collectionRect.right` is the right value of
// where the user has dragged the tab to, but `activeRect.right` is the right
- // value from where it orginally was.
+ // value from where it originally was.
const activeRect = droppableRects.get(active.id);
if (!activeRect) {
return [];
diff --git a/frontend/src/metabase/common/components/UserHasSeen/UserHasSeen.mdx b/frontend/src/metabase/common/components/UserHasSeen/UserHasSeen.mdx
index d14667daa57..a7dee41d976 100644
--- a/frontend/src/metabase/common/components/UserHasSeen/UserHasSeen.mdx
+++ b/frontend/src/metabase/common/components/UserHasSeen/UserHasSeen.mdx
@@ -4,8 +4,8 @@ import { Meta } from "@storybook/blocks";
# UserHasSeen
-This is a convience API around tracking whether users have seen / acknowledged something in the app, and is built on top of the User-Key-Value api on the backend.
-This was originally added as a way to surrport product callouts in the app, but could be used anytime we need to track a flag on a per-user basis
+This is a convenience API around tracking whether users have seen / acknowledged something in the app, and is built on top of the User-Key-Value api on the backend.
+This was originally added as a way to support product callouts in the app, but could be used anytime we need to track a flag on a per-user basis
# Docs
diff --git a/frontend/src/metabase/common/components/UserHasSeen/UserHasSeenAll.mdx b/frontend/src/metabase/common/components/UserHasSeen/UserHasSeenAll.mdx
index 0a9867b75dd..57237cff71f 100644
--- a/frontend/src/metabase/common/components/UserHasSeen/UserHasSeenAll.mdx
+++ b/frontend/src/metabase/common/components/UserHasSeen/UserHasSeenAll.mdx
@@ -4,7 +4,7 @@ import { Meta } from "@storybook/blocks";
# UserHasSeenAll
-The `UserHasSeenAll` component provides a context for the `<UserHasSeen>` componet to (optionally) register with, allowing us to render different things if there are items under this component that are determined to have been unseen.
+The `UserHasSeenAll` component provides a context for the `<UserHasSeen>` component to (optionally) register with, allowing us to render different things if there are items under this component that are determined to have been unseen.
This works by comparing a stored value of ids (using the user key value api) against the ids of `<UserHasSeen>` that are rendered as children.
This is most useful for being able to direct a users attention to something that is currently not being rendered on the screen (indicator dot on a menu trigger, for example)
diff --git a/frontend/src/metabase/common/hooks/use-action-button-label/use-action-button-label.ts b/frontend/src/metabase/common/hooks/use-action-button-label/use-action-button-label.ts
index 4067072775e..177ea8f86d3 100644
--- a/frontend/src/metabase/common/hooks/use-action-button-label/use-action-button-label.ts
+++ b/frontend/src/metabase/common/hooks/use-action-button-label/use-action-button-label.ts
@@ -6,7 +6,7 @@ interface UseActionButtonLabelProps {
}
/**
- * Small hook to temporarly update a string, and return it to it's
+ * Small hook to temporarily update a string, and return it to its
* initial value after the timeout expires.
*/
diff --git a/frontend/src/metabase/common/hooks/use-user-key-value.unit.spec.tsx b/frontend/src/metabase/common/hooks/use-user-key-value.unit.spec.tsx
index 9a4782e1f1e..e39d90352f4 100644
--- a/frontend/src/metabase/common/hooks/use-user-key-value.unit.spec.tsx
+++ b/frontend/src/metabase/common/hooks/use-user-key-value.unit.spec.tsx
@@ -120,7 +120,7 @@ describe("useUserKeyValue", () => {
result.current.setValue("after-value");
});
- // assert optimisitic update occurred
+ // assert optimistic update occurred
expect(result.current.value).toBe("after-value");
expect(result.current?.isMutating).toBe(true);
await waitFor(() => {
@@ -138,7 +138,7 @@ describe("useUserKeyValue", () => {
expect(result.current.value).toBe("after-value");
});
- it("should revert optimisitic update if update fails", async () => {
+ it("should revert optimistic update if update fails", async () => {
setupGetUserKeyValueEndpoint({
namespace: "test",
key: "test",
@@ -162,7 +162,7 @@ describe("useUserKeyValue", () => {
result.current.setValue("after-value");
});
- // assert optimisitic update works as expected
+ // assert optimistic update works as expected
expect(result.current.value).toBe("after-value");
expect(result.current?.isMutating).toBe(true);
await waitFor(() => {
@@ -206,7 +206,7 @@ describe("useUserKeyValue", () => {
result.current.clearValue();
});
- // assert optimisitic deletion worked
+ // assert optimistic deletion worked
expect(result.current.value).toBe(undefined);
expect(result.current?.isMutating).toBe(true);
await waitFor(() => {
@@ -224,7 +224,7 @@ describe("useUserKeyValue", () => {
expect(result.current.value).toBe(undefined);
});
- it("should revert optimisitic delete if deletion fails", async () => {
+ it("should revert optimistic delete if deletion fails", async () => {
setupGetUserKeyValueEndpoint({
namespace: "test",
key: "test",
@@ -248,7 +248,7 @@ describe("useUserKeyValue", () => {
result.current.clearValue();
});
- // assert optimisitic deletion was reverted
+ // assert optimistic deletion was reverted
expect(result.current.value).toBe(undefined);
expect(result.current?.isMutating).toBe(true);
await waitFor(() => {
diff --git a/frontend/src/metabase/data-grid/types.ts b/frontend/src/metabase/data-grid/types.ts
index 32771212ebc..1f1e1e63cc0 100644
--- a/frontend/src/metabase/data-grid/types.ts
+++ b/frontend/src/metabase/data-grid/types.ts
@@ -207,10 +207,10 @@ export interface DataGridOptions<TData = any, TValue = any> {
/** Data grid theme */
theme?: DataGridTheme;
- /** Controlls whether cell selection is enabled */
+ /** Controls whether cell selection is enabled */
enableSelection?: boolean;
- /** Controlls whether row selection is enabled */
+ /** Controls whether row selection is enabled */
enableRowSelection?: RowSelectionOptions<TData>["enableRowSelection"];
/** Row selection state */
diff --git a/frontend/src/metabase/databases/components/DatabaseConnectionUri/parse-connection-regex.unit.spec.ts b/frontend/src/metabase/databases/components/DatabaseConnectionUri/parse-connection-regex.unit.spec.ts
index 926666b99cb..f2ea2bba5b3 100644
--- a/frontend/src/metabase/databases/components/DatabaseConnectionUri/parse-connection-regex.unit.spec.ts
+++ b/frontend/src/metabase/databases/components/DatabaseConnectionUri/parse-connection-regex.unit.spec.ts
@@ -487,7 +487,7 @@ describe("parseConnectionUriRegex - Starburst", () => {
});
describe("parseConnectionUriRegex - Vertica", () => {
- it("should parse a Vertica connection strin", () => {
+ it("should parse a Vertica connection string", () => {
const connectionString = enginesConfig["vertica"];
const result = parseConnectionUriRegex(connectionString, "vertica");
expect(result).toEqual(
diff --git a/frontend/src/metabase/detail-view/components/DetailViewSidesheet/DetailViewSidesheet.tsx b/frontend/src/metabase/detail-view/components/DetailViewSidesheet/DetailViewSidesheet.tsx
index 418e80aa40c..bcb1eae2873 100644
--- a/frontend/src/metabase/detail-view/components/DetailViewSidesheet/DetailViewSidesheet.tsx
+++ b/frontend/src/metabase/detail-view/components/DetailViewSidesheet/DetailViewSidesheet.tsx
@@ -206,7 +206,7 @@ export function DetailViewSidesheet({
}
},
{
- // otherwise modals get closed ealier and isModalOpen evaluates to false in the handler
+ // otherwise modals get closed earlier and isModalOpen evaluates to false in the handler
capture: true,
},
);
diff --git a/frontend/src/metabase/embedding-sdk/theme/embedding-color-palette.ts b/frontend/src/metabase/embedding-sdk/theme/embedding-color-palette.ts
index ee86d855ce3..858df35cd60 100644
--- a/frontend/src/metabase/embedding-sdk/theme/embedding-color-palette.ts
+++ b/frontend/src/metabase/embedding-sdk/theme/embedding-color-palette.ts
@@ -129,7 +129,7 @@ export function setGlobalEmbeddingColors(
});
// Also set overrides on the color config, this way when we
- // set up the mantine theme colors, we will grab apropriate app palette colors as well 🥺
+ // set up the mantine theme colors, we will grab appropriate app palette colors as well 🥺
Object.entries(combinedThemeColors).forEach(([key, value]) => {
colorConfig[key as ColorName] = { light: value, dark: value };
});
diff --git a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/hooks/use-sdk-iframe-embed-server-snippet.ts b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/hooks/use-sdk-iframe-embed-server-snippet.ts
index 9f1a16c0890..f658752374c 100644
--- a/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/hooks/use-sdk-iframe-embed-server-snippet.ts
+++ b/frontend/src/metabase/embedding/embedding-iframe-sdk-setup/hooks/use-sdk-iframe-embed-server-snippet.ts
@@ -76,7 +76,7 @@ export function useSdkIframeEmbedServerSnippet() {
resourceType,
resourceId: resource.id,
params: previewParameterValuesBySlug,
- // We don't need an iframe snippet, because we use EmbedJS snippet for frontent snippet
+ // We don't need an iframe snippet, because we use EmbedJS snippet for frontend snippet
withIframeSnippet: false,
})
: [],
diff --git a/frontend/src/metabase/forms/components/FormRadioGroup/FormRadioGroup.unit.spec.tsx b/frontend/src/metabase/forms/components/FormRadioGroup/FormRadioGroup.unit.spec.tsx
index 6a2f43a48a5..bed6699b6b6 100644
--- a/frontend/src/metabase/forms/components/FormRadioGroup/FormRadioGroup.unit.spec.tsx
+++ b/frontend/src/metabase/forms/components/FormRadioGroup/FormRadioGroup.unit.spec.tsx
@@ -74,7 +74,7 @@ describe("FormRadioGroup", () => {
it("should show validation errors", async () => {
// This is test used to test setting and unsetting the radio value, but userEvents 14
// cause this to not work (we weren't able to unselect the radio). To simulate, we have
- // repaced the logic with a nonsense validation object to error after setting the value
+ // replaced the logic with a nonsense validation object to error after setting the value
const validationSchema = Yup.object({
column: Yup.string().email("This should error"),
});
diff --git a/frontend/src/metabase/hoc/ModalRoute.unit.spec.js b/frontend/src/metabase/hoc/ModalRoute.unit.spec.js
index ac68e139890..3a15a49ccde 100644
--- a/frontend/src/metabase/hoc/ModalRoute.unit.spec.js
+++ b/frontend/src/metabase/hoc/ModalRoute.unit.spec.js
@@ -64,7 +64,7 @@ describe("getParentPath", () => {
// like "data" that is also used within Metabase's routes
// e.g. If the site-url is "https://corp.com/data", it should not
// remove the second "data" from the path in "https://corp.com/data/admin/permissions/data/groups"
- it("without leading url subpath while preserving later occurances", () => {
+ it("without leading url subpath while preserving later occurrences", () => {
const parentPath = setup(
"groups",
"data/admin/permissions/data/groups",
diff --git a/frontend/src/metabase/hoc/ScrollToTop.js b/frontend/src/metabase/hoc/ScrollToTop.js
index 8ebde0040a3..32682654622 100644
--- a/frontend/src/metabase/hoc/ScrollToTop.js
+++ b/frontend/src/metabase/hoc/ScrollToTop.js
@@ -4,7 +4,7 @@ import { withRouter } from "react-router";
class ScrollToTopInner extends Component {
componentDidUpdate(prevProps) {
- // Compare location.pathame to see if we're on a different URL. Do this to ensure
+ // Compare location.pathname to see if we're on a different URL. Do this to ensure
// that query strings don't cause a scroll to the top
if (this.props.location.pathname !== prevProps.location.pathname) {
window.scrollTo(0, 0);
diff --git a/frontend/src/metabase/lib/dom.js b/frontend/src/metabase/lib/dom.js
index 385a97950cf..75006c6036e 100644
--- a/frontend/src/metabase/lib/dom.js
+++ b/frontend/src/metabase/lib/dom.js
@@ -501,7 +501,7 @@ export function initializeIframeResizer(onReady = () => {}) {
return;
}
- // Make iFrameResizer avaliable so that embed users can
+ // Make iFrameResizer available so that embed users can
// have their embeds autosize to their content
if (window.iFrameResizer) {
console.error("iFrameResizer resizer already defined.");
@@ -513,7 +513,7 @@ export function initializeIframeResizer(onReady = () => {}) {
onReady,
};
- // Make iframe-resizer avaliable to the embed
+ // Make iframe-resizer available to the embed
// We only care about contentWindow so require that minified file
import("iframe-resizer/js/iframeResizer.contentWindow.js");
diff --git a/frontend/src/metabase/lib/noop.js b/frontend/src/metabase/lib/noop.js
index 4f15c7b33f9..6a516b4c1ac 100644
--- a/frontend/src/metabase/lib/noop.js
+++ b/frontend/src/metabase/lib/noop.js
@@ -1,4 +1,4 @@
// there's nothing here!
// This file is the alternative to importing EE plugins.
-// Either way we import something to ensure a consisten import order.
+// Either way we import something to ensure a consistent import order.
diff --git a/frontend/src/metabase/list-view/components/ListView/ColumnValue.tsx b/frontend/src/metabase/list-view/components/ListView/ColumnValue.tsx
index 1d7b92b433a..37c64f22e3e 100644
--- a/frontend/src/metabase/list-view/components/ListView/ColumnValue.tsx
+++ b/frontend/src/metabase/list-view/components/ListView/ColumnValue.tsx
@@ -126,7 +126,7 @@ export function ColumnValue({
}
break;
// Not using `isCategory` because it incorrectly gives false positive
- // for many other category subtypes, like Name / Title / City (which we dont' want here).
+ // for many other category subtypes, like Name / Title / City (which we don't want here).
case column.semantic_type === TYPE.Category:
return (
<Badge
diff --git a/frontend/src/metabase/metadata/components/SemanticTypePicker/SemanticTypePicker.unit.spec.tsx b/frontend/src/metabase/metadata/components/SemanticTypePicker/SemanticTypePicker.unit.spec.tsx
index 876a5e56918..857e51ae17a 100644
--- a/frontend/src/metabase/metadata/components/SemanticTypePicker/SemanticTypePicker.unit.spec.tsx
+++ b/frontend/src/metabase/metadata/components/SemanticTypePicker/SemanticTypePicker.unit.spec.tsx
@@ -99,7 +99,7 @@ const setup = ({
};
describe("SemanticTypePicker", () => {
- describe("depreacted semantic types", () => {
+ describe("deprecated semantic types", () => {
it("does not show deprecated semantic types", async () => {
setup({ fieldId: TEMPORAL_FIELD.id });
diff --git a/frontend/src/metabase/metadata/pages/DataModelV1/DataModelV1.tsx b/frontend/src/metabase/metadata/pages/DataModelV1/DataModelV1.tsx
index fd29b49721e..b5fa2e4ab7d 100644
--- a/frontend/src/metabase/metadata/pages/DataModelV1/DataModelV1.tsx
+++ b/frontend/src/metabase/metadata/pages/DataModelV1/DataModelV1.tsx
@@ -86,7 +86,7 @@ export const DataModelV1 = ({ children, location, params }: Props) => {
}
},
{
- // otherwise modals get closed ealier and isModalOpen evaluates to false in the handler
+ // otherwise modals get closed earlier and isModalOpen evaluates to false in the handler
capture: true,
},
);
diff --git a/frontend/src/metabase/metadata/pages/DataModelV1/components/TablePicker/hooks/useExpandedState.ts b/frontend/src/metabase/metadata/pages/DataModelV1/components/TablePicker/hooks/useExpandedState.ts
index 4a9eb7f7d98..542431ca1ad 100644
--- a/frontend/src/metabase/metadata/pages/DataModelV1/components/TablePicker/hooks/useExpandedState.ts
+++ b/frontend/src/metabase/metadata/pages/DataModelV1/components/TablePicker/hooks/useExpandedState.ts
@@ -12,7 +12,7 @@ export function useExpandedState(path: TreePath) {
const { databaseId, schemaName, tableId } = path;
useEffect(() => {
- // When the path changes, this means a user has navigated throught the browser back
+ // When the path changes, this means a user has navigated through the browser back
// button, ensure the path is completely expanded.
setState((state) => expandPath(state, { databaseId, schemaName, tableId }));
}, [databaseId, schemaName, tableId]);
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/BookmarkList/BookmarkList.tsx b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/BookmarkList/BookmarkList.tsx
index 80267703527..c6b4e110e37 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/BookmarkList/BookmarkList.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbarContainer/BookmarkList/BookmarkList.tsx
@@ -68,7 +68,7 @@ function isBookmarkSelected(bookmark: Bookmark, selectedItem?: SelectedItem) {
}
function getBookmarkModel(bookmark: Bookmark) {
- // we should reall fix this on the backend
+ // we should really fix this on the backend
return bookmark.card_type === "model" ? "dataset" : bookmark.type;
}
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/tests/common.unit.spec.tsx b/frontend/src/metabase/nav/containers/MainNavbar/tests/common.unit.spec.tsx
index b9849688335..2cb8e7786fb 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/tests/common.unit.spec.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/tests/common.unit.spec.tsx
@@ -363,7 +363,7 @@ describe("nav > containers > MainNavbar", () => {
).toBeInTheDocument();
});
- it("should not display the new collection button if a user has no write permisisons", async () => {
+ it("should not display the new collection button if a user has no write permissions", async () => {
await setup({
user: createMockUser({ can_write_any_collection: false }),
});
diff --git a/frontend/src/metabase/palette/components/test/PaletteResults/PaletteResults-oss.unit.spec.tsx b/frontend/src/metabase/palette/components/test/PaletteResults/PaletteResults-oss.unit.spec.tsx
index 444c20afce1..d28ec923d3c 100644
--- a/frontend/src/metabase/palette/components/test/PaletteResults/PaletteResults-oss.unit.spec.tsx
+++ b/frontend/src/metabase/palette/components/test/PaletteResults/PaletteResults-oss.unit.spec.tsx
@@ -161,7 +161,7 @@ describe("PaletteResults", () => {
expect(screen.queryByText("Permissions")).not.toBeInTheDocument();
});
- it("should not compute search results if 'search-typeahead-enabled' is diabled", async () => {
+ it("should not compute search results if 'search-typeahead-enabled' is disabled", async () => {
setup({ query: "ques", settings: { "search-typeahead-enabled": false } });
expect(
await screen.findByRole("option", { name: /View search results/ }),
diff --git a/frontend/src/metabase/palette/utils.unit.spec.ts b/frontend/src/metabase/palette/utils.unit.spec.ts
index 2e86e577f21..bcf2549a9c5 100644
--- a/frontend/src/metabase/palette/utils.unit.spec.ts
+++ b/frontend/src/metabase/palette/utils.unit.spec.ts
@@ -169,7 +169,7 @@ describe("command palette utils", () => {
expect(navigateActionIndex(items, 2, -1)).toBe(0);
});
- it("should handle disabled items and strings near boundries", () => {
+ it("should handle disabled items and strings near boundaries", () => {
const short = [DISABLED, NORMAL, NORMAL, NORMAL, "foo"];
expect(navigateActionIndex(short, 3, 1)).toBe(3);
expect(navigateActionIndex(short, 1, -1)).toBe(1);
diff --git a/frontend/src/metabase/parameters/components/ValuesSourceModal/ValuesSourceModal.unit.spec.tsx b/frontend/src/metabase/parameters/components/ValuesSourceModal/ValuesSourceModal.unit.spec.tsx
index 2fc25d42018..18895e8617c 100644
--- a/frontend/src/metabase/parameters/components/ValuesSourceModal/ValuesSourceModal.unit.spec.tsx
+++ b/frontend/src/metabase/parameters/components/ValuesSourceModal/ValuesSourceModal.unit.spec.tsx
@@ -42,7 +42,7 @@ import { createMockState } from "metabase-types/store/mocks";
import ValuesSourceModal from "./ValuesSourceModal";
describe("ValuesSourceModal", () => {
- describe("string paramter", () => {
+ describe("string parameter", () => {
const metadata = createMockMetadata({
fields: [
createMockField({
diff --git a/frontend/src/metabase/query_builder/components/DataSelector/DataSelector.unit.spec.js b/frontend/src/metabase/query_builder/components/DataSelector/DataSelector.unit.spec.js
index 5ca1d0e6b25..86c90000d55 100644
--- a/frontend/src/metabase/query_builder/components/DataSelector/DataSelector.unit.spec.js
+++ b/frontend/src/metabase/query_builder/components/DataSelector/DataSelector.unit.spec.js
@@ -285,7 +285,7 @@ describe("DataSelector", () => {
it("should expand schemas after viewing tables on a single-schema db", async () => {
// This is the same and the previous test except that it first opens/closes
// the multi-schema db. This left some lingering traces in component state
- // which caused a bug tha that the previous test didn't catch.
+ // which caused a bug that the previous test didn't catch.
render(
<DataSelector
steps={["DATABASE", "SCHEMA", "TABLE"]}
diff --git a/frontend/src/metabase/query_builder/components/view/ViewHeader/ViewTitleHeader.module.css b/frontend/src/metabase/query_builder/components/view/ViewHeader/ViewTitleHeader.module.css
index 2189cd52f31..bd9376deae9 100644
--- a/frontend/src/metabase/query_builder/components/view/ViewHeader/ViewTitleHeader.module.css
+++ b/frontend/src/metabase/query_builder/components/view/ViewHeader/ViewTitleHeader.module.css
@@ -18,7 +18,7 @@
);
}
- /* this pevents the divider between the button group from changing color */
+ /* this prevents the divider between the button group from changing color */
&:hover&.FiltersActive {
border-right-color: var(--mb-color-border);
}
diff --git a/frontend/src/metabase/query_builder/components/view/ViewHeader/components/SavedQuestionLeftSide/ViewOnly.unit.spec.tsx b/frontend/src/metabase/query_builder/components/view/ViewHeader/components/SavedQuestionLeftSide/ViewOnly.unit.spec.tsx
index 50e0bd6f57b..680d968ce11 100644
--- a/frontend/src/metabase/query_builder/components/view/ViewHeader/components/SavedQuestionLeftSide/ViewOnly.unit.spec.tsx
+++ b/frontend/src/metabase/query_builder/components/view/ViewHeader/components/SavedQuestionLeftSide/ViewOnly.unit.spec.tsx
@@ -280,7 +280,7 @@ describe("ViewOnlyTag", () => {
describe("implicit joins", () => {
for (const visibility_type of HIDDEN_VISIBILITY_TYPES) {
- it(`should not show the View-only badge when an implictly joined table is ${visibility_type}`, async () => {
+ it(`should not show the View-only badge when an implicitly joined table is ${visibility_type}`, async () => {
setup({
card: createCardFromQuery({ query: ORDERS_QUERY }),
tables: [
diff --git a/frontend/src/metabase/query_builder/containers/QueryBuilder.unsaved-changes-warning.unit.spec.tsx b/frontend/src/metabase/query_builder/containers/QueryBuilder.unsaved-changes-warning.unit.spec.tsx
index cef89ce6e90..e81c106c969 100644
--- a/frontend/src/metabase/query_builder/containers/QueryBuilder.unsaved-changes-warning.unit.spec.tsx
+++ b/frontend/src/metabase/query_builder/containers/QueryBuilder.unsaved-changes-warning.unit.spec.tsx
@@ -371,7 +371,7 @@ describe("QueryBuilder - unsaved changes warning", () => {
/**
* When initialRoute is `/model/${TEST_MODEL_CARD.id}/columns`,
- * the QueryBuilder gets incompletely intialized.
+ * the QueryBuilder gets incompletely initialized.
* This seems to affect only tests.
*/
await userEvent.click(await screen.findByText("Columns"));
diff --git a/frontend/src/metabase/querying/expressions/diagnostics/diagnostics.unit.spec.ts b/frontend/src/metabase/querying/expressions/diagnostics/diagnostics.unit.spec.ts
index fdd21e628d4..88049880fa5 100644
--- a/frontend/src/metabase/querying/expressions/diagnostics/diagnostics.unit.spec.ts
+++ b/frontend/src/metabase/querying/expressions/diagnostics/diagnostics.unit.spec.ts
@@ -90,19 +90,19 @@ describe("diagnostics", () => {
for (const leftToken of left) {
for (const [rightToken, errToken] of right) {
- it(`should catch mismatched adjecent tokens in: ${leftToken} ${rightToken}`, () => {
+ it(`should catch mismatched adjacent tokens in: ${leftToken} ${rightToken}`, () => {
expect(err(`${leftToken} ${rightToken}`)).toBe(
`Expecting operator but got ${errToken} instead`,
);
});
- it(`should catch mismatched adjecent tokens in: concat(${leftToken} ${rightToken})`, () => {
+ it(`should catch mismatched adjacent tokens in: concat(${leftToken} ${rightToken})`, () => {
expect(err(`concat(${leftToken} ${rightToken})`)).toBe(
`Expecting operator but got ${errToken} instead`,
);
});
- it(`should catch mismatched adjecent tokens in: 2 * (${leftToken} ${rightToken})`, () => {
+ it(`should catch mismatched adjacent tokens in: 2 * (${leftToken} ${rightToken})`, () => {
expect(err(`2 * (${leftToken} ${rightToken})`)).toBe(
`Expecting operator but got ${errToken} instead`,
);
diff --git a/frontend/src/metabase/querying/expressions/fuzz.compiler.unit.spec.ts b/frontend/src/metabase/querying/expressions/fuzz.compiler.unit.spec.ts
index 2652fcc3949..2127da54d83 100644
--- a/frontend/src/metabase/querying/expressions/fuzz.compiler.unit.spec.ts
+++ b/frontend/src/metabase/querying/expressions/fuzz.compiler.unit.spec.ts
@@ -7,7 +7,7 @@ import { query, stageIndex } from "./test/shared";
/*
* TODO: This is set to a very low value because the memory
- * blows up in CI. We should figure out why and increase it againt.
+ * blows up in CI. We should figure out why and increase it again.
*/
const MAX_SEED = 5;
@@ -38,7 +38,7 @@ beforeAll(() => {
describe("metabase/querying/expressions/compiler", () => {
// quick sanity check before the real fuzzing
- it("should parse custom expresssion", () => {
+ it("should parse custom expression", () => {
expect(() => compile("CASE([Deal],[Price]*7e-1,[Price])")).not.toThrow();
});
});
diff --git a/frontend/src/metabase/querying/expressions/pratt/compiler.ts b/frontend/src/metabase/querying/expressions/pratt/compiler.ts
index 8fb2754b91c..4adb4f80787 100644
--- a/frontend/src/metabase/querying/expressions/pratt/compiler.ts
+++ b/frontend/src/metabase/querying/expressions/pratt/compiler.ts
@@ -433,7 +433,7 @@ function compileInfixOp(
ctx: Context,
): Lib.ExpressionParts {
check(node.children.length > 0, t`Expected expression`, node);
- check(node.children.length < 3, t`Unxpected expression`, node.children[2]);
+ check(node.children.length < 3, t`Unexpected expression`, node.children[2]);
assert(isDefinedClause(operator), t`Unknown operator ${operator}`);
diff --git a/frontend/src/metabase/querying/expressions/pratt/compiler.unit.spec.ts b/frontend/src/metabase/querying/expressions/pratt/compiler.unit.spec.ts
index db8c4f5b6ec..9546e3fc05e 100644
--- a/frontend/src/metabase/querying/expressions/pratt/compiler.unit.spec.ts
+++ b/frontend/src/metabase/querying/expressions/pratt/compiler.unit.spec.ts
@@ -949,7 +949,7 @@ describe("resolve", () => {
expect(() => expression(`year("a")`)).not.toThrow();
});
- it("should resolve chained commmands", () => {
+ it("should resolve chained commands", () => {
expect(() =>
expression(
`datetimeSubtract(datetimeAdd("2022-01-01", 1, "month"), 2,"minute")`,
diff --git a/frontend/src/metabase/querying/expressions/pratt/fuzz.lexifier.unit.spec.ts b/frontend/src/metabase/querying/expressions/pratt/fuzz.lexifier.unit.spec.ts
index 22eff6e6f74..297621c0ed9 100644
--- a/frontend/src/metabase/querying/expressions/pratt/fuzz.lexifier.unit.spec.ts
+++ b/frontend/src/metabase/querying/expressions/pratt/fuzz.lexifier.unit.spec.ts
@@ -4,7 +4,7 @@ import { generateExpression } from "../test/generator";
describe("metabase/querying/expressions/tokenizer", () => {
// quick sanity check before the real fuzzing
- it("should tokenize custom expresssion", () => {
+ it("should tokenize custom expression", () => {
expect(() => lexify("CASE([Deal],[Price]*7e-1,[Price]")).not.toThrow();
});
});
diff --git a/frontend/src/metabase/querying/expressions/pratt/node.ts b/frontend/src/metabase/querying/expressions/pratt/node.ts
index d744eb912bc..613b8291269 100644
--- a/frontend/src/metabase/querying/expressions/pratt/node.ts
+++ b/frontend/src/metabase/querying/expressions/pratt/node.ts
@@ -8,7 +8,7 @@ export type NodeType = {
// Number of operands to expect for this node on the right side
rightOperands: number;
// Maximum number of children before this node is considered complete. May be
- // `Infinity` for nodes lik ARG_LIST, or number of left+right operands
+ // `Infinity` for nodes like ARG_LIST, or number of left+right operands
expectedChildCount: number;
// Check child constraints
checkChildConstraints: (
diff --git a/frontend/src/metabase/querying/expressions/pratt/syntax.ts b/frontend/src/metabase/querying/expressions/pratt/syntax.ts
index 0c178b05ee3..1df5c455410 100644
--- a/frontend/src/metabase/querying/expressions/pratt/syntax.ts
+++ b/frontend/src/metabase/querying/expressions/pratt/syntax.ts
@@ -117,7 +117,7 @@ setAttributes(
/*
* Child constraints govern how many children an AST node can have and where
- * thare placed relative to the node.
+ * there placed relative to the node.
*
* These are syntax rules, rather than semantic ones, since that is handled
* later by a different pass. i.e. LOGICAL_AND and LOGICAL_OR rules don't check
diff --git a/frontend/src/metabase/querying/expressions/test/generator.ts b/frontend/src/metabase/querying/expressions/test/generator.ts
index be46eb7c4be..b41af9369b9 100644
--- a/frontend/src/metabase/querying/expressions/test/generator.ts
+++ b/frontend/src/metabase/querying/expressions/test/generator.ts
@@ -51,7 +51,7 @@ export function generateExpression(
const characters = () => {
// FIXME: include double-quote and escape it
- // FIXME: add more punctuations
+ // FIXME: add more punctuation
const charset = [uppercase, lowercase, digit, underscore, space];
const len = randomInt(9);
const start = oneOf(charset)();
diff --git a/frontend/src/metabase/querying/expressions/tokenizer/tokens.ts b/frontend/src/metabase/querying/expressions/tokenizer/tokens.ts
index 39ab6f13d40..538690c308a 100644
--- a/frontend/src/metabase/querying/expressions/tokenizer/tokens.ts
+++ b/frontend/src/metabase/querying/expressions/tokenizer/tokens.ts
@@ -26,7 +26,7 @@ const EOF = -1;
const FIELD_PUNCTUATORS = new Set([char(","), char(" "), char("("), char(")")]);
/**
- * Reference (or bracket idenfiers) like `[User Id]` are parsed differently
+ * Reference (or bracket identifiers) like `[User Id]` are parsed differently
* based on whether they are well-formed or not.
*
* We allow malformed field tokens (ie. tokens without proper quoting) to be parsed as well.
diff --git a/frontend/src/metabase/querying/filters/components/DatePicker/SpecificDatePicker/DateRangePicker/DateRangePickerBody/DateRangePickerBody.tsx b/frontend/src/metabase/querying/filters/components/DatePicker/SpecificDatePicker/DateRangePicker/DateRangePickerBody/DateRangePickerBody.tsx
index 4721aa2b123..25ad40c12eb 100644
--- a/frontend/src/metabase/querying/filters/components/DatePicker/SpecificDatePicker/DateRangePicker/DateRangePickerBody/DateRangePickerBody.tsx
+++ b/frontend/src/metabase/querying/filters/components/DatePicker/SpecificDatePicker/DateRangePicker/DateRangePickerBody/DateRangePickerBody.tsx
@@ -58,7 +58,7 @@ export function DateRangePickerBody({
const newEndDate = setDatePart(endDate, newDate);
onChange([startDate, newEndDate]);
setInProgressDateRange(null);
- // substract 1 month because we want the end date to be shown in the 2nd column
+ // subtract 1 month because we want the end date to be shown in the 2nd column
setDisplayedDate(dayjs(newEndDate).subtract(1, "month").toDate());
};
@@ -76,7 +76,7 @@ export function DateRangePickerBody({
const newEndDate = setTimePart(endDate, newTime);
onChange([startDate, newEndDate]);
setInProgressDateRange(null);
- // substract 1 month because we want the end date to be shown in the 2nd column
+ // subtract 1 month because we want the end date to be shown in the 2nd column
setDisplayedDate(dayjs(newEndDate).subtract(1, "month").toDate());
}
};
diff --git a/frontend/src/metabase/rich_text_editing/tiptap/extensions/Command/CommandSuggestion.unit.spec.tsx b/frontend/src/metabase/rich_text_editing/tiptap/extensions/Command/CommandSuggestion.unit.spec.tsx
index 48131b47268..dbae74f09cf 100644
--- a/frontend/src/metabase/rich_text_editing/tiptap/extensions/Command/CommandSuggestion.unit.spec.tsx
+++ b/frontend/src/metabase/rich_text_editing/tiptap/extensions/Command/CommandSuggestion.unit.spec.tsx
@@ -157,7 +157,7 @@ describe("CommandSuggestion", () => {
it("searches for possible card embeds by default", async () => {
const { command } = setup({ query: "Ord" });
- // Find cards what were searched for, with apropriate icons
+ // Find cards that were searched for, with appropriate icons
expect(
within(
await screen.findByRole("option", { name: /Orders by product/ }),
diff --git a/frontend/src/metabase/setup/analytics.ts b/frontend/src/metabase/setup/analytics.ts
index 6a19a5b805c..25be1497411 100644
--- a/frontend/src/metabase/setup/analytics.ts
+++ b/frontend/src/metabase/setup/analytics.ts
@@ -5,7 +5,7 @@ import type { UsageReason } from "metabase-types/api";
import type { SetupStep } from "./types";
/**
- * The internal "versioning" tracker that needs to be bumbed for every significant
+ * The internal "versioning" tracker that needs to be bumped for every significant
* change to the setup flow. If you update the version here, make sure to add an
* entry to the corresponding Notion doc:
* {@link https://www.notion.so/metabase/Set-up-step-seen-19f39925938d401da2111f8a3d0dc36c}.
diff --git a/frontend/src/metabase/setup/components/DatabaseStep/DatabaseStep.tsx b/frontend/src/metabase/setup/components/DatabaseStep/DatabaseStep.tsx
index f655de97c81..81d18a61c69 100644
--- a/frontend/src/metabase/setup/components/DatabaseStep/DatabaseStep.tsx
+++ b/frontend/src/metabase/setup/components/DatabaseStep/DatabaseStep.tsx
@@ -80,7 +80,7 @@ export const DatabaseStep = ({ stepLabel }: NumberedStepProps): JSX.Element => {
label={stepLabel}
>
<Text mt="sm" mb="md">
- {c("{0} referes to the word '(optional)'")
+ {c("{0} refers to the word '(optional)'")
.jt`Are you ready to start exploring your data? Add it below ${optional}.`}
</Text>
diff --git a/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionButton.stories.tsx b/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionButton.stories.tsx
index 0a656f02fee..a25fad538de 100644
--- a/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionButton.stories.tsx
+++ b/frontend/src/metabase/ui/components/buttons/ActionIcon/ActionButton.stories.tsx
@@ -13,7 +13,7 @@ export default {
},
},
disabled: {
- constrol: {
+ control: {
type: "boolean",
},
},
diff --git a/frontend/src/metabase/ui/components/inputs/Radio/Radio.module.css b/frontend/src/metabase/ui/components/inputs/Radio/Radio.module.css
index e0015ab1e28..48bc04eecbb 100644
--- a/frontend/src/metabase/ui/components/inputs/Radio/Radio.module.css
+++ b/frontend/src/metabase/ui/components/inputs/Radio/Radio.module.css
@@ -13,7 +13,7 @@
}
}
- /* Need the aditional specificy to override global focus outline rule */
+ /* Need the additional specificity to override global focus outline rule */
.radio:focus {
outline: none;
}
diff --git a/frontend/src/metabase/ui/components/theme/ColorSchemeProvider/ColorSchemeProvider.tsx b/frontend/src/metabase/ui/components/theme/ColorSchemeProvider/ColorSchemeProvider.tsx
index 61d948bf61b..c0fd3f9e4ce 100644
--- a/frontend/src/metabase/ui/components/theme/ColorSchemeProvider/ColorSchemeProvider.tsx
+++ b/frontend/src/metabase/ui/components/theme/ColorSchemeProvider/ColorSchemeProvider.tsx
@@ -62,7 +62,7 @@ export function ColorSchemeProvider({
useEffect(() => {
// NOTE: The `defaultColorScheme` prop may change in cases where the
// page hasn't reloaded (therefore embedded user preferences haven't
- // changed) but a new set of preferences arives from events, such as
+ // changed) but a new set of preferences arrives from events, such as
// session changes after login/logout.
//
// If such new preferences specify a different color scheme, we then
diff --git a/frontend/src/metabase/visualizations/components/EmptyVizState/utils.ts b/frontend/src/metabase/visualizations/components/EmptyVizState/utils.ts
index e0bdbcfdc12..d0953f15902 100644
--- a/frontend/src/metabase/visualizations/components/EmptyVizState/utils.ts
+++ b/frontend/src/metabase/visualizations/components/EmptyVizState/utils.ts
@@ -22,7 +22,7 @@ type EmptyVizConfig = {
// We should not import these large empty-state images directly,
// because we don't need to inline them as base64 to the SDK bundle.
-// Insead we just define paths to them that is passed to the <img> tag directly.
+// Instead we just define paths to them that is passed to the <img> tag directly.
const emptyVizConfig: Record<SupportedDisplayType, EmptyVizConfig> = {
area: {
get imgSrc() {
diff --git a/frontend/src/metabase/visualizations/components/settings/ChartSettingInputNumeric.unit.spec.tsx b/frontend/src/metabase/visualizations/components/settings/ChartSettingInputNumeric.unit.spec.tsx
index 883118b9204..30a017a1bc5 100644
--- a/frontend/src/metabase/visualizations/components/settings/ChartSettingInputNumeric.unit.spec.tsx
+++ b/frontend/src/metabase/visualizations/components/settings/ChartSettingInputNumeric.unit.spec.tsx
@@ -107,7 +107,7 @@ describe("ChartSettingInputNumber", () => {
expect(onChange).toHaveBeenCalledWith(5400);
});
- it("rounds decimals and makes them postiive when `isInteger` and `isNonNegative` are `true`", async () => {
+ it("rounds decimals and makes them positive when `isInteger` and `isNonNegative` are `true`", async () => {
const { input, onChange } = setup({
options: { isInteger: true, isNonNegative: true },
});
diff --git a/frontend/src/metabase/visualizations/components/settings/ChartSettingSegmentsEditor/ChartSettingSegmentsEditor.unit.spec.tsx b/frontend/src/metabase/visualizations/components/settings/ChartSettingSegmentsEditor/ChartSettingSegmentsEditor.unit.spec.tsx
index 6e8cff10b6a..06e0511f9fc 100644
--- a/frontend/src/metabase/visualizations/components/settings/ChartSettingSegmentsEditor/ChartSettingSegmentsEditor.unit.spec.tsx
+++ b/frontend/src/metabase/visualizations/components/settings/ChartSettingSegmentsEditor/ChartSettingSegmentsEditor.unit.spec.tsx
@@ -68,7 +68,7 @@ it("Should allow you to remove a segment", async () => {
]);
});
-it("Should allow you to add a new segment with apropriate defaults", async () => {
+it("Should allow you to add a new segment with appropriate defaults", async () => {
const { onChange } = setup();
await userEvent.click(
diff --git a/frontend/src/metabase/visualizations/echarts/cartesian/constants/dataset.ts b/frontend/src/metabase/visualizations/echarts/cartesian/constants/dataset.ts
index 8e107a3e90b..0ec6bc52dab 100644
--- a/frontend/src/metabase/visualizations/echarts/cartesian/constants/dataset.ts
+++ b/frontend/src/metabase/visualizations/echarts/cartesian/constants/dataset.ts
@@ -36,7 +36,7 @@ export const INDEX_KEY = `${NULL_CHAR}_index` as const;
// months, we want to show monthly ticks.
export const TICKS_INTERVAL_THRESHOLD = 3;
-// ECharts replaces null valeus with empty strings which makes it impossible to
+// ECharts replaces null values with empty strings which makes it impossible to
// distinguish between null and empty string so we have to use another special
// value for nulls.
export const ECHARTS_CATEGORY_AXIS_NULL_VALUE = `${NULL_CHAR}_NULL` as const;
diff --git a/frontend/src/metabase/visualizations/echarts/cartesian/model/series.unit.spec.ts b/frontend/src/metabase/visualizations/echarts/cartesian/model/series.unit.spec.ts
index 30f7ea1c50d..e93ae3bdd14 100644
--- a/frontend/src/metabase/visualizations/echarts/cartesian/model/series.unit.spec.ts
+++ b/frontend/src/metabase/visualizations/echarts/cartesian/model/series.unit.spec.ts
@@ -126,7 +126,7 @@ describe("series", () => {
});
});
- it("should return a series model with overriden name", () => {
+ it("should return a series model with overridden name", () => {
const rawSeries = [metricSeries];
const cardsColumns = [metricColumns];
@@ -228,7 +228,7 @@ describe("series", () => {
});
});
- it("should return a series model with overriden names", () => {
+ it("should return a series model with overridden names", () => {
const rawSeries = [breakoutSeries];
const cardsColumns = [breakoutColumns];
@@ -345,7 +345,7 @@ describe("series", () => {
});
});
- it("should return series models of two combined cards with overriden names", () => {
+ it("should return series models of two combined cards with overridden names", () => {
const result = getCardsSeriesModels(
rawSeries,
cardsColumns,
diff --git a/frontend/src/metabase/visualizations/echarts/cartesian/option/ticks.ts b/frontend/src/metabase/visualizations/echarts/cartesian/option/ticks.ts
index 3cd1923f13e..a321f18bd43 100644
--- a/frontend/src/metabase/visualizations/echarts/cartesian/option/ticks.ts
+++ b/frontend/src/metabase/visualizations/echarts/cartesian/option/ticks.ts
@@ -15,7 +15,7 @@ import {
// HACK: ECharts in some cases do not render two ticks on line charts with 1 interval (2 values) when minInterval is defined.
// For example, when a dataset has two days and minInterval is 1 day in milliseconds datasets like ["2022-01-01", "2022-01-02"]
-// will be rendered without the second tick. However, for ["2022-01-02", "2022-01-03"] ECharts would corectly render two ticks as needed.
+// will be rendered without the second tick. However, for ["2022-01-02", "2022-01-03"] ECharts would correctly render two ticks as needed.
// The workaround is to add more padding on sides for this corner case.
const getPadding = (intervalsCount: number) => {
if (intervalsCount <= 1) {
diff --git a/frontend/src/metabase/visualizations/echarts/cartesian/scatter/option/series.ts b/frontend/src/metabase/visualizations/echarts/cartesian/scatter/option/series.ts
index 45f8799bd6c..d1f054af758 100644
--- a/frontend/src/metabase/visualizations/echarts/cartesian/scatter/option/series.ts
+++ b/frontend/src/metabase/visualizations/echarts/cartesian/scatter/option/series.ts
@@ -36,7 +36,7 @@ function getBubbleDiameterScale(
.scaleLinear()
.domain(bubbleSizeDomain)
// D3 will take a value from the domain (bubble size column) and normalize it (`t` is between 0,1).
- // Then we plug the normalized value `t` into the `areaScale` to get the corrseponding area for that diameter.
+ // Then we plug the normalized value `t` into the `areaScale` to get the corresponding area for that diameter.
// We then take this area and convert it back to a diameter value
// if area = π × (diameter ÷ 2)², then diameter = 2 × √(area ÷ π)
.interpolate(() => (t) => 2 * Math.sqrt(areaScale(t) / Math.PI))
diff --git a/frontend/src/metabase/visualizations/echarts/cartesian/utils/timeseries.unit.spec.js b/frontend/src/metabase/visualizations/echarts/cartesian/utils/timeseries.unit.spec.js
index 95cc9438c44..218fdb1955e 100644
--- a/frontend/src/metabase/visualizations/echarts/cartesian/utils/timeseries.unit.spec.js
+++ b/frontend/src/metabase/visualizations/echarts/cartesian/utils/timeseries.unit.spec.js
@@ -201,7 +201,7 @@ describe("visualization.lib.timeseries", () => {
chartWidth: 1920,
tickFormat: () =>
// thankfully no date format is actually this long
- "The eigth day of July in the year of our Lord two thousand and ninteen",
+ "The eighth day of July in the year of our Lord two thousand and nineteen",
},
{ expectedUnit: "year", expectedCount: 1 },
],
diff --git a/frontend/src/metabase/visualizations/echarts/pie/option.ts b/frontend/src/metabase/visualizations/echarts/pie/option.ts
index 19825727951..77b6be1ef75 100644
--- a/frontend/src/metabase/visualizations/echarts/pie/option.ts
+++ b/frontend/src/metabase/visualizations/echarts/pie/option.ts
@@ -279,7 +279,7 @@ function getSeriesDataFromSlices(
blur: {
itemStyle: {
// We have to fade the slices through `color` rather than `opacity`
- // becuase echarts' will apply the opacity to the white border,
+ // because echarts' will apply the opacity to the white border,
// causing the underlying color to leak. It is safe to use non-hex
// values here, since this value will never be used in batik
// (there's no emphasis/blur for static viz).
diff --git a/frontend/src/metabase/visualizations/lib/errors.js b/frontend/src/metabase/visualizations/lib/errors.js
index b6fa0d4f8b2..eaa53cdf4d5 100644
--- a/frontend/src/metabase/visualizations/lib/errors.js
+++ b/frontend/src/metabase/visualizations/lib/errors.js
@@ -34,7 +34,7 @@ export class LatitudeLongitudeError extends Error {
/**
* These errors are usually thrown from within the `checkRenderable` visualization utility.
- * We rely on this type of error (in conjuction with the `hasEmptyState` and a few other properties)
+ * We rely on this type of error (in conjunction with the `hasEmptyState` and a few other properties)
* to determine whether or not to display the empty visuzalization state.
*/
export class ChartSettingsError extends Error {
diff --git a/frontend/src/metabase/visualizations/lib/image-exports.ts b/frontend/src/metabase/visualizations/lib/image-exports.ts
index 3661b6d8fc1..1a4ef8829bb 100644
--- a/frontend/src/metabase/visualizations/lib/image-exports.ts
+++ b/frontend/src/metabase/visualizations/lib/image-exports.ts
@@ -219,7 +219,7 @@ export const getChartSvgSelector = (
input: { dashcardId: number | undefined } | { cardId: number | undefined },
) => {
// :not selector shouldn't be needed, but just an extra check to make sure
- // we don't accidently get some kind of svg icon
+ // we don't accidentally get some kind of svg icon
return `${getChartSelector(input)} svg:not([role="img"])`;
};
diff --git a/frontend/src/metabase/visualizations/lib/numeric.unit.spec.js b/frontend/src/metabase/visualizations/lib/numeric.unit.spec.js
index f3653b6689d..a7b59b99bed 100644
--- a/frontend/src/metabase/visualizations/lib/numeric.unit.spec.js
+++ b/frontend/src/metabase/visualizations/lib/numeric.unit.spec.js
@@ -81,7 +81,7 @@ describe("visualization.lib.numeric", () => {
);
// With the current implementation this is guaranteed to be true. This test
- // is left in incase that implementation changes.
+ // is left in in case that implementation changes.
[123456.123456, -123456.123456, 1.23456789, -1.23456789].map((value) =>
it(`${value} should be a multiple of its precision (${precision(
value,
diff --git a/frontend/src/metabase/visualizations/lib/settings/visualization.unit.spec.js b/frontend/src/metabase/visualizations/lib/settings/visualization.unit.spec.js
index 69ab2ef8673..cc212c59acb 100644
--- a/frontend/src/metabase/visualizations/lib/settings/visualization.unit.spec.js
+++ b/frontend/src/metabase/visualizations/lib/settings/visualization.unit.spec.js
@@ -38,7 +38,7 @@ describe("visualization_settings", () => {
"day-of-week",
"month-of-year",
"quarter-of-year",
- // arguably histogram but diabled for now
+ // arguably histogram but disabled for now
"minute-of-hour",
"hour-of-day",
"day-of-month",
@@ -46,7 +46,7 @@ describe("visualization_settings", () => {
"week-of-year",
];
- describe("non-histgram units", () => {
+ describe("non-histogram units", () => {
NON_HISTOGRAM_UNITS.forEach((unit) => {
it(`should default ${unit} to false`, () => {
const settings = getComputedSettingsForSeries(
@@ -57,7 +57,7 @@ describe("visualization_settings", () => {
});
});
- describe("histgram units", () => {
+ describe("histogram units", () => {
HISTOGRAM_UNITS.forEach((unit) => {
it(`should default ${unit} to true`, () => {
const settings = getComputedSettingsForSeries(
diff --git a/frontend/src/metabase/visualizations/visualizations/CartesianChart/chart-definition-legacy.js b/frontend/src/metabase/visualizations/visualizations/CartesianChart/chart-definition-legacy.js
index de6d46218d3..d03ca512340 100644
--- a/frontend/src/metabase/visualizations/visualizations/CartesianChart/chart-definition-legacy.js
+++ b/frontend/src/metabase/visualizations/visualizations/CartesianChart/chart-definition-legacy.js
@@ -129,7 +129,7 @@ function transformSingleSeries(s, series, seriesIndex) {
const name = [
// show series title if it's multiseries
series.length > 1 && card.name,
- // show column name if there are multiple metrics or sigle series
+ // show column name if there are multiple metrics or single series
(metricColumnIndexes.length > 1 || series.length === 1) &&
col?.display_name,
]
diff --git a/frontend/src/metabase/visualizations/visualizations/CartesianChart/events.ts b/frontend/src/metabase/visualizations/visualizations/CartesianChart/events.ts
index 9259cd0d18d..4155579ed74 100644
--- a/frontend/src/metabase/visualizations/visualizations/CartesianChart/events.ts
+++ b/frontend/src/metabase/visualizations/visualizations/CartesianChart/events.ts
@@ -248,7 +248,7 @@ const computeDiffWithPreviousPeriod = (
getDaylightSavingsChangeTolerance(xAxisModel.interval.unit);
// Comparing the 2nd and 1st quarter of the year needs to be checked
- // specially, because there are fewer days in this period due to Feburary
+ // specially, because there are fewer days in this period due to February
// being shorter than a normal month (89 days in a normal year, 90 days in a
// leap year).
if (!isOneIntervalAgo && unit === "quarter") {
diff --git a/frontend/src/metabase/visualizations/visualizations/PivotTable/utils.unit.spec.ts b/frontend/src/metabase/visualizations/visualizations/PivotTable/utils.unit.spec.ts
index 65079181837..be50d0a25fe 100644
--- a/frontend/src/metabase/visualizations/visualizations/PivotTable/utils.unit.spec.ts
+++ b/frontend/src/metabase/visualizations/visualizations/PivotTable/utils.unit.spec.ts
@@ -167,7 +167,7 @@ describe("Visualizations > Visualizations > PivotTable > utils", () => {
});
describe("addMissingCardBreakouts", () => {
- it("should not mess with pivot settings that aren't misssing breakouts", () => {
+ it("should not mess with pivot settings that aren't missing breakouts", () => {
const oldPivotSettings: PivotTableColumnSplitSetting = {
columns: [cols[0].name],
rows: [cols[1].name, cols[2].name],
diff --git a/frontend/src/metabase/visualizer/visualizations/cartesian.unit.spec.ts b/frontend/src/metabase/visualizer/visualizations/cartesian.unit.spec.ts
index 44657522b5a..a88fb231f78 100644
--- a/frontend/src/metabase/visualizer/visualizations/cartesian.unit.spec.ts
+++ b/frontend/src/metabase/visualizer/visualizations/cartesian.unit.spec.ts
@@ -424,7 +424,7 @@ describe("cartesian", () => {
expect(state.settings).toEqual({ "graph.metrics": ["COLUMN_2"] });
});
- it("should add a dimenion column", () => {
+ it("should add a dimension column", () => {
const state: VisualizerVizDefinitionWithColumns = {
display: "bar",
columns: [],
diff --git a/frontend/test/metabase-lib/lib/utils.unit.spec.js b/frontend/test/metabase-lib/lib/utils.unit.spec.js
index c4998ed46f6..92379d8e2db 100644
--- a/frontend/test/metabase-lib/lib/utils.unit.spec.js
+++ b/frontend/test/metabase-lib/lib/utils.unit.spec.js
@@ -101,7 +101,7 @@ describe("memoize", () => {
expect(f.biz()).toEqual(2);
});
- it("should throw on nonexistant keys", () => {
+ it("should throw on nonexistent keys", () => {
expect(() => {
class fooInner {}
memoizeClass("bar")(fooInner);
diff --git a/frontend/test/metabase/lib/card.unit.spec.js b/frontend/test/metabase/lib/card.unit.spec.js
index a24eda2814f..9bc256077a9 100644
--- a/frontend/test/metabase/lib/card.unit.spec.js
+++ b/frontend/test/metabase/lib/card.unit.spec.js
@@ -84,7 +84,7 @@ describe("lib/card", () => {
});
describe("b64_to_utf8", () => {
- it("should decode corretly", () => {
+ it("should decode correctly", () => {
expect(b64_to_utf8("ICA/")).toEqual(" ?");
});
});
@@ -97,7 +97,7 @@ describe("lib/card", () => {
});
describe("b64url_to_utf8", () => {
- it("should decode corretly", () => {
+ it("should decode correctly", () => {
expect(b64url_to_utf8("ICA_")).toEqual(" ?");
});
});
diff --git a/frontend/test/metabase/lib/formatting.unit.spec.js b/frontend/test/metabase/lib/formatting.unit.spec.js
index 9c4ba01470c..446a5cad326 100644
--- a/frontend/test/metabase/lib/formatting.unit.spec.js
+++ b/frontend/test/metabase/lib/formatting.unit.spec.js
@@ -146,7 +146,7 @@ describe("formatting", () => {
expect(formatNumber(1000n, options)).toEqual("10,000");
});
- it("should resepect 'decimals' setting", () => {
+ it("should respect 'decimals' setting", () => {
expect(formatNumber(500000, { compact: true, decimals: 0 })).toBe(
"500k",
);
@@ -717,7 +717,7 @@ describe("formatting", () => {
["month", "April 2022"],
["year", "2022"],
])(
- "should include weekday when date unit is smaller or equal whan a week",
+ "should include weekday when date unit is smaller than or equal to a week",
(unit, formatted) => {
const dateString = "2022-04-27T06:00:00.000Z";