-
Create a new file:
.ai/status/YYYY-MM-DD.md
-
Structure the update with sections:
- Development Steps
- Key Decisions
- Next Steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// eslint-plugin-array-methods/rules/prefer-array-immutable-methods.js | |
module.exports = { | |
create: function (context) { | |
return { | |
CallExpression(node) { | |
const sourceCode = context.getSourceCode() | |
if (node.callee.type !== 'MemberExpression') return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { ZodSchema } from 'zod'; | |
import { parseSchema } from '@/lib/schemas/parseSchema'; | |
/** Get a response with a file to download */ | |
export const getFileResponse = <T>({ | |
file, | |
filename, | |
schema, | |
}: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import * as React from 'react'; | |
import type { DataTableFilterField } from '@/components/ui/data-table/data-table.types'; | |
import { | |
type ColumnDef, | |
type ColumnFiltersState, | |
type PaginationState, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const fetchCompressImage = async (file: Blob) => { | |
const formData = new FormData(); | |
formData.append('Content-Type', file.type); | |
formData.append('file', file); | |
const res = await fetch(apiRoutes.compressImage, { | |
body: formData, | |
method: 'POST', | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const searchRange = ( | |
editor: PlateEditor, | |
search: string | [string, string], | |
{ | |
match, | |
// from, | |
}: { | |
match?: GetNodeEntriesOptions['match'] | |
from?: Point | |
} = {}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
export function withTooltip< | |
T extends React.ComponentType<any> | keyof HTMLElementTagNameMap, | |
>(Component: T) { | |
return React.forwardRef< | |
React.ElementRef<T>, | |
React.ComponentPropsWithoutRef<T> & { | |
tooltip?: React.ReactNode; | |
tooltipContentProps?: Omit< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
getPluginType, | |
type PlatePlugin, | |
type TDescendant, | |
type TElement, | |
type TText, | |
} from '@udecode/plate-common'; | |
import { | |
remarkTransformElementChildren, | |
type DeserializeMdPlugin, |
NewerOlder