Skip to content

Commit 20182e3

Browse files
authored
Merge pull request #285 from complexdatacollective/next
v2.1.1
2 parents 4c939d2 + 2f44d6a commit 20182e3

File tree

8 files changed

+1487
-1132
lines changed

8 files changed

+1487
-1132
lines changed

.github/workflows/build.yml

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18+
- name: Use Latest Corepack
19+
run: |
20+
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
21+
npm install -g corepack@latest
22+
echo "After : corepack version => $(corepack --version)"
23+
corepack enable
24+
pnpm --version
25+
1826
- name: Enable Corepack
1927
run: corepack enable
2028

actions/activityFeed.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use sever';
1+
'use server';
22

33
import { safeRevalidateTag } from '~/lib/cache';
44
import type { Activity, ActivityType } from '~/lib/data-table/types';

actions/participants.ts

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export async function importParticipants(rawInput: unknown) {
5656
*/
5757
const participantsWithIdentifiers = participantList.map((participant) => {
5858
return {
59+
// Cannot use nullish coalescing here because of https://github.com/complexdatacollective/Fresco/pull/140/commits/06260b815558030b0605e14e5baf5a6ce238b1ab
60+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
5961
identifier: !participant.identifier ? createId() : participant.identifier,
6062
label: participant.label === '' ? undefined : participant.label,
6163
};

components/DataTable/DataTable.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function DataTable<TData, TValue>({
9696
if (actions) {
9797
const actionsColumn = {
9898
id: 'actions',
99-
header: () => (actionsHeader ? actionsHeader : null),
99+
header: () => actionsHeader ?? null,
100100
cell: ({ row }: { row: Row<TData> }) => {
101101
const cellDeleteHandler = async (item: TData) => {
102102
await handleDeleteSelected?.([item]);
@@ -148,7 +148,7 @@ export function DataTable<TData, TValue>({
148148
return (
149149
<>
150150
{(filterColumnAccessorKey || headerItems) && (
151-
<div className="flex items-center gap-2 pb-4 pt-1">
151+
<div className="flex items-center gap-2 pt-1 pb-4">
152152
{filterColumnAccessorKey && (
153153
<Input
154154
name="filter"
@@ -222,7 +222,7 @@ export function DataTable<TData, TValue>({
222222
</div>
223223
<div>
224224
<div className="flex justify-between py-4">
225-
<div className="text-sm text-muted-foreground">
225+
<div className="text-muted-foreground text-sm">
226226
{table.getFilteredSelectedRowModel().rows.length} of{' '}
227227
{table.getFilteredRowModel().rows.length} row(s) selected.
228228
</div>

lib/network-exporters/formatters/graphml/__tests__/createGraphML.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env jest */
22

33
import { ncUUIDProperty } from '@codaco/shared-consts';
4-
import { DOMParser, MIME_TYPE } from '@xmldom/xmldom';
4+
import { DOMParser } from '@xmldom/xmldom';
55
import { beforeEach, describe, expect, it } from 'vitest';
66
import {
77
mockCodebook,
@@ -23,7 +23,7 @@ const buildXML = (...args) => {
2323
}
2424

2525
const parser = new DOMParser();
26-
const result = parser.parseFromString(xmlString, MIME_TYPE.XML_APPLICATION);
26+
const result = parser.parseFromString(xmlString, 'text/xml');
2727
return result;
2828
};
2929

lib/network-exporters/formatters/graphml/createGraphML.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
sessionProperty,
2525
sessionStartTimeProperty,
2626
} from '@codaco/shared-consts';
27-
import dom, { MIME_TYPE } from '@xmldom/xmldom';
27+
import dom from '@xmldom/xmldom';
2828
import {
2929
getAttributePropertyFromCodebook,
3030
getEntityAttributes,
@@ -110,7 +110,7 @@ const setUpXml = (exportOptions, sessionVariables) => {
110110
)}${xmlFooter}`;
111111
return new globalContext.DOMParser().parseFromString(
112112
graphMLOutline,
113-
MIME_TYPE.XML_APPLICATION,
113+
'text/xml',
114114
);
115115
};
116116

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fresco",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"private": true,
55
"type": "module",
66
"packageManager": "[email protected]+sha256.9551e803dcb7a1839fdf5416153a844060c7bce013218ce823410532504ac10b",
@@ -29,15 +29,15 @@
2929
"@hookform/resolvers": "^3.10.0",
3030
"@lucia-auth/adapter-prisma": "^3.0.2",
3131
"@paralleldrive/cuid2": "^2.2.2",
32-
"@radix-ui/react-alert-dialog": "^1.1.4",
32+
"@radix-ui/react-alert-dialog": "^1.1.5",
3333
"@radix-ui/react-checkbox": "^1.1.3",
3434
"@radix-ui/react-collapsible": "^1.1.2",
35-
"@radix-ui/react-dialog": "^1.1.4",
35+
"@radix-ui/react-dialog": "^1.1.5",
3636
"@radix-ui/react-dropdown-menu": "^2.1.4",
3737
"@radix-ui/react-label": "^2.1.1",
3838
"@radix-ui/react-popover": "^1.1.4",
3939
"@radix-ui/react-progress": "^1.1.1",
40-
"@radix-ui/react-select": "^2.1.4",
40+
"@radix-ui/react-select": "^2.1.5",
4141
"@radix-ui/react-separator": "^1.1.1",
4242
"@radix-ui/react-slot": "^1.1.1",
4343
"@radix-ui/react-switch": "^1.1.2",
@@ -47,7 +47,7 @@
4747
"@reduxjs/toolkit": "^1.9.7",
4848
"@tanstack/react-table": "^8.20.6",
4949
"@uploadthing/react": "^7.1.5",
50-
"@xmldom/xmldom": "^0.9.6",
50+
"@xmldom/xmldom": "^0.8.10",
5151
"animejs": "^2.2.0",
5252
"archiver": "^7.0.1",
5353
"async": "^3.2.6",
@@ -67,7 +67,7 @@
6767
"lucia": "^2.7.7",
6868
"lucide-react": "^0.471.1",
6969
"luxon": "^3.5.0",
70-
"motion": "^11.13.1",
70+
"motion": "^12.0.0",
7171
"next": "^14.2.23",
7272
"nuqs": "^1.19.1",
7373
"ohash": "^1.1.4",
@@ -124,13 +124,13 @@
124124
"@types/react": "^18.3.7",
125125
"@types/react-dom": "^18.3.1",
126126
"@types/redux-form": "^8.3.11",
127-
"@types/uuid": "^9.0.8",
127+
"@types/uuid": "^10.0.0",
128128
"@types/validator": "^13.12.2",
129129
"@typescript-eslint/eslint-plugin": "^8.20.0",
130-
"@typescript-eslint/parser": "^8.20.0",
130+
"@typescript-eslint/parser": "^8.21.0",
131131
"@vitejs/plugin-react": "^4.3.4",
132132
"eslint": "^8.57.1",
133-
"eslint-config-next": "^15.1.4",
133+
"eslint-config-next": "^15.1.5",
134134
"eslint-config-prettier": "^10.0.1",
135135
"jest": "^29.7.0",
136136
"jsdom": "^26.0.0",
@@ -143,6 +143,6 @@
143143
"tailwindcss-animate": "^1.0.7",
144144
"typescript": "5.7.3",
145145
"vite-tsconfig-paths": "^5.1.4",
146-
"vitest": "^2.1.8"
146+
"vitest": "^2.1.9"
147147
}
148148
}

0 commit comments

Comments
 (0)