Skip to content

Commit

Permalink
Merge pull request #254 from braden-w:feature/whi-68-feat-update-tans…
Browse files Browse the repository at this point in the history
…tack-table

feat: update tanstack table v9, remove redundant internal svelte-table package
  • Loading branch information
braden-w authored Aug 6, 2024
2 parents 8fb4600 + c208941 commit b0d2f6a
Show file tree
Hide file tree
Showing 15 changed files with 65 additions and 474 deletions.
4 changes: 2 additions & 2 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"@effect/schema": "^0.70.2",
"@plasmohq/messaging": "^0.6.2",
"@repo/shared": "workspace:*",
"@repo/svelte-table": "workspace:*",
"@tanstack/table-core": "^8.20.1",
"@tanstack/svelte-table": "9.0.0-alpha.10",
"@tanstack/table-core": "9.0.0-alpha.10",
"@tauri-apps/api": "^1.6.0",
"audio-recorder-polyfill": "^0.4.1",
"bits-ui": "^0.21.13",
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/app.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@repo/svelte-table';
import '@tanstack/svelte-table';

// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
Expand All @@ -18,7 +18,7 @@ declare global {
}
}

declare module '@repo/svelte-table' {
declare module '@tanstack/svelte-table' {
interface ColumnMeta<TData extends RowData, TValue> {
headerText: string;
}
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/lib/services/TranscriptionServiceGroqLive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const TranscriptionServiceGroqLive = Layer.succeed(
description: 'Please enter your Groq API key in the settings',
action: {
label: 'Go to settings',
goto: '/settings',
goto: '/settings/transcription',
},
});
}
Expand All @@ -31,7 +31,7 @@ export const TranscriptionServiceGroqLive = Layer.succeed(
description: 'The Groq API Key must start with "gsk_"',
action: {
label: 'Update API Key',
goto: '/settings',
goto: '/settings/transcription',
},
});
}
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/lib/services/TranscriptionServiceWhisperLive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const TranscriptionServiceWhisperLive = Layer.succeed(
description: 'Please enter your OpenAI API key in the settings',
action: {
label: 'Go to settings',
goto: '/settings',
goto: '/settings/transcription',
},
});
}
Expand All @@ -31,7 +31,7 @@ export const TranscriptionServiceWhisperLive = Layer.succeed(
description: 'The OpenAI API Key must start with "sk-"',
action: {
label: 'Update OpenAI API Key',
goto: '/settings',
goto: '/settings/transcription',
},
});
}
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/routes/(config)/recordings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import { cn } from '$lib/utils';
import { createPersistedState } from '$lib/utils/createPersistedState.svelte';
import { Schema as S } from '@effect/schema';
import { FlexRender, createSvelteTable, renderComponent } from '@repo/svelte-table';
import { FlexRender, createTable, renderComponent } from '@tanstack/svelte-table';
import type { ColumnDef, ColumnFilter, Updater } from '@tanstack/table-core';
import { getCoreRowModel, getFilteredRowModel, getSortedRowModel } from '@tanstack/table-core';
import { Effect } from 'effect';
Expand Down Expand Up @@ -169,7 +169,7 @@
const setVisibility = createUpdater(columnVisibility);
const setRowSelection = createUpdater(rowSelection);
const table = createSvelteTable({
const table = createTable({
getRowId: (originalRow) => originalRow.id,
get data() {
return recordings.value;
Expand Down
18 changes: 0 additions & 18 deletions packages/svelte-table/package.json

This file was deleted.

101 changes: 0 additions & 101 deletions packages/svelte-table/src/flex-render.svelte

This file was deleted.

1 change: 0 additions & 1 deletion packages/svelte-table/src/global.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/svelte-table/src/index.ts

This file was deleted.

41 changes: 0 additions & 41 deletions packages/svelte-table/src/render-component.ts

This file was deleted.

115 changes: 0 additions & 115 deletions packages/svelte-table/src/table.svelte.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/svelte-table/svelte.config.js

This file was deleted.

Loading

0 comments on commit b0d2f6a

Please sign in to comment.