Skip to content

Commit 1dbe46e

Browse files
fix: install Playwright dependencies and resolve linting issues
- Install Playwright browsers and system dependencies for CI tests - Auto-fix import organization and formatting issues with Biome v2 - Resolve most linting warnings while preserving functionality - Tests now pass successfully with Biome v2.2.4 configuration
1 parent 251c4f0 commit 1dbe46e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+221
-245
lines changed

apps/docs/src/examples/middleware-example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { zodResolver } from '@hookform/resolvers/zod';
22
import { TextField } from '@lambdacurry/forms/remix-hook-form';
3+
import type { ActionFunctionArgs } from 'react-router';
34
// Example of using the new middleware feature in remix-hook-form v7.0.0
45
import { Form } from 'react-router';
5-
import type { ActionFunctionArgs } from 'react-router';
66
import { RemixFormProvider, useRemixForm } from 'remix-hook-form';
77
import { getValidatedFormData } from 'remix-hook-form/middleware';
88
import * as zod from 'zod';

apps/docs/src/lib/storybook/react-router-stub.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { Decorator } from '@storybook/react-vite';
22
import type { ComponentType } from 'react';
33
import {
44
type ActionFunction,
5+
createRoutesStub,
56
type LinksFunction,
67
type LoaderFunction,
78
type MetaFunction,
8-
createRoutesStub,
99
} from 'react-router';
1010

1111
export interface StubRouteObject {

apps/docs/src/remix-hook-form/calendar-with-month-year-select.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
77
import { expect, userEvent, within } from '@storybook/test';
88
import * as React from 'react';
99
import { type ActionFunctionArgs, Form, useFetcher } from 'react-router';
10-
import { RemixFormProvider, createFormData, getValidatedFormData, useRemixForm } from 'remix-hook-form';
10+
import { createFormData, getValidatedFormData, RemixFormProvider, useRemixForm } from 'remix-hook-form';
1111
import { z } from 'zod';
1212
import { withReactRouterStubDecorator } from '../lib/storybook/react-router-stub';
1313

apps/docs/src/remix-hook-form/checkbox-custom.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { expect, userEvent, within } from '@storybook/test';
88
import type * as React from 'react';
99
import type { ActionFunctionArgs } from 'react-router';
1010
import { useFetcher } from 'react-router';
11-
import { RemixFormProvider, getValidatedFormData, useRemixForm } from 'remix-hook-form';
11+
import { getValidatedFormData, RemixFormProvider, useRemixForm } from 'remix-hook-form';
1212
import { z } from 'zod';
1313
import { withReactRouterStubDecorator } from '../lib/storybook/react-router-stub';
1414

apps/docs/src/remix-hook-form/checkbox-list.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Button } from '@lambdacurry/forms/ui/button';
55
import type { Meta, StoryObj } from '@storybook/react-vite';
66
import { expect, userEvent, type within } from '@storybook/test';
77
import { type ActionFunctionArgs, Form, useFetcher } from 'react-router';
8-
import { RemixFormProvider, createFormData, getValidatedFormData, useRemixForm } from 'remix-hook-form';
8+
import { createFormData, getValidatedFormData, RemixFormProvider, useRemixForm } from 'remix-hook-form';
99
import { z } from 'zod';
1010
import { withReactRouterStubDecorator } from '../lib/storybook/react-router-stub';
1111

apps/docs/src/remix-hook-form/checkbox.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Button } from '@lambdacurry/forms/ui/button';
44
import type { Meta, StoryObj } from '@storybook/react-vite';
55
import { expect, userEvent, within } from '@storybook/test';
66
import { type ActionFunctionArgs, useFetcher } from 'react-router';
7-
import { RemixFormProvider, getValidatedFormData, useRemixForm } from 'remix-hook-form';
7+
import { getValidatedFormData, RemixFormProvider, useRemixForm } from 'remix-hook-form';
88
import { z } from 'zod';
99
import { withReactRouterStubDecorator } from '../lib/storybook/react-router-stub';
1010

apps/docs/src/remix-hook-form/data-table/data-table-client-side.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { columnConfigs, columns } from './data-table-stories.components';
44
import {
55
DataTable,
66
DataTableFilter,
7-
type MockIssue,
8-
type OnChangeFn,
9-
type PaginationState,
10-
type SortingState,
117
getCoreRowModel,
128
getPaginationRowModel,
139
getSortedRowModel,
10+
type MockIssue,
1411
mockDatabase,
12+
type OnChangeFn,
13+
type PaginationState,
14+
type SortingState,
1515
useDataTableFilters,
1616
useFilterSync,
1717
useReactTable,

apps/docs/src/remix-hook-form/data-table/data-table-server-driven.stories.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import { useMemo } from 'react';
33
import { type LoaderFunctionArgs, useLoaderData, useSearchParams } from 'react-router';
44
import { columnConfigs, columns } from './data-table-stories.components';
55
import {
6+
calculateFacetedCounts,
67
type DataResponse,
78
DataTable,
89
DataTableFilter,
9-
type MockIssue,
10-
type OnChangeFn,
11-
type PaginationState,
12-
type SortingState,
13-
calculateFacetedCounts,
1410
dataTableRouterParsers,
1511
filtersArraySchema,
1612
getCoreRowModel,
1713
getPaginationRowModel,
1814
getSortedRowModel,
15+
type MockIssue,
1916
mockDatabase,
17+
type OnChangeFn,
18+
type PaginationState,
19+
type SortingState,
2020
useDataTableFilters,
2121
useFilterSync,
2222
useReactTable,

apps/docs/src/remix-hook-form/data-table/data-table-stories.components.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import type { ColumnDef } from '@tanstack/react-table';
22
import {
3+
assigneeOptions,
34
CalendarIcon,
45
CheckCircledIcon,
6+
createColumnConfigHelper,
57
DataTableColumnHeader,
68
type MockIssue,
79
PersonIcon,
8-
StarIcon,
9-
TextIcon,
10-
assigneeOptions,
11-
createColumnConfigHelper,
1210
priorityOptions,
11+
StarIcon,
1312
statusOptions,
13+
TextIcon,
1414
} from './data-table-stories.helpers';
1515

1616
// --- Column Configuration ---

apps/docs/src/remix-hook-form/data-table/data-table-stories.helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,16 @@ export const priorityOptions = [
218218

219219
// --- Shared Imports (for re-export) ---
220220
export { dataTableRouterParsers } from '@lambdacurry/forms/remix-hook-form/data-table-router-parsers';
221+
export { DataTable } from '@lambdacurry/forms/ui/data-table/data-table';
222+
export { DataTableColumnHeader } from '@lambdacurry/forms/ui/data-table/data-table-column-header';
221223
export { DataTableFilter } from '@lambdacurry/forms/ui/data-table-filter/components/data-table-filter';
222224
export { createColumnConfigHelper } from '@lambdacurry/forms/ui/data-table-filter/core/filters';
223225
export { useDataTableFilters } from '@lambdacurry/forms/ui/data-table-filter/hooks/use-data-table-filters';
224-
export { DataTable } from '@lambdacurry/forms/ui/data-table/data-table';
225-
export { DataTableColumnHeader } from '@lambdacurry/forms/ui/data-table/data-table-column-header';
226226
export type { FiltersState } from '@lambdacurry/forms/ui/utils/filters';
227227
export { filtersArraySchema } from '@lambdacurry/forms/ui/utils/filters';
228228
export { useFilterSync } from '@lambdacurry/forms/ui/utils/use-filter-sync';
229229
export { CalendarIcon, CheckCircledIcon, PersonIcon, StarIcon, TextIcon } from '@radix-ui/react-icons';
230-
export type { ColumnDef, PaginationState, SortingState, OnChangeFn } from '@tanstack/react-table';
230+
export type { ColumnDef, OnChangeFn, PaginationState, SortingState } from '@tanstack/react-table';
231231
export { getCoreRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
232232
export { useMemo } from 'react';
233233
export { type LoaderFunctionArgs, useLoaderData, useLocation, useNavigate, useSearchParams } from 'react-router';

0 commit comments

Comments
 (0)