Skip to content

Commit dd8b0fc

Browse files
authored
Merge pull request #223 from complexdatacollective/next
Next
2 parents 0ce4c6b + 58629b4 commit dd8b0fc

File tree

160 files changed

+3291
-3040
lines changed

Some content is hidden

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

160 files changed

+3291
-3040
lines changed

app/(blobs)/(setup)/_components/OnboardSteps/Documentation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function Documentation() {
4545
</Heading>
4646
Visit our documentation site to learn more about Fresco.
4747
</div>
48-
<div className="flex min-w-32 flex-shrink-0 flex-col items-end justify-center">
48+
<div className="flex min-w-32 shrink-0 flex-col items-end justify-center">
4949
<a
5050
href="https://documentation.networkcanvas.com/en/fresco"
5151
target="_blank"
@@ -64,7 +64,7 @@ function Documentation() {
6464
Read our guide on the basic workflow for using Fresco to conduct
6565
your study.
6666
</div>
67-
<div className="flex min-w-32 flex-shrink-0 flex-col items-end justify-center">
67+
<div className="flex min-w-32 shrink-0 flex-col items-end justify-center">
6868
<a
6969
href="https://documentation.networkcanvas.com/en/fresco/using-fresco"
7070
target="_blank"

app/(blobs)/(setup)/_components/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function OnboardSteps({ steps }: { steps: string[] }) {
1212
);
1313

1414
return (
15-
<div className="flex flex-shrink-0 flex-grow-0 flex-col gap-6 rounded-xl bg-white px-8 py-12">
15+
<div className="flex shrink-0 grow-0 flex-col gap-6 rounded-xl bg-white px-8 py-12">
1616
{steps.map((step, index) => (
1717
<div
1818
key={index}

app/(blobs)/(setup)/setup/Setup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { motion } from 'framer-motion';
3+
import { motion } from 'motion/react';
44
import { parseAsInteger, useQueryState } from 'nuqs';
55
import { useEffect } from 'react';
66
import { containerClasses } from '~/components/ContainerClasses';

app/(blobs)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Layout({ children }: PropsWithChildren) {
1919
/>
2020
</Link>
2121
</div>
22-
<main className="flex flex-grow items-center justify-center">
22+
<main className="flex grow items-center justify-center">
2323
{children}
2424
</main>
2525
</div>

app/(interview)/interview/_components/ServerSync.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

3-
import { debounce, isEqual } from 'lodash';
4-
import { type ReactNode, useEffect, useState, useCallback } from 'react';
3+
import { debounce, isEqual } from 'es-toolkit';
4+
import { type ReactNode, useCallback, useEffect, useState } from 'react';
55
import { useSelector } from 'react-redux';
66
import type { SyncInterviewType } from '~/actions/interviews';
77
import usePrevious from '~/hooks/usePrevious';
@@ -26,9 +26,7 @@ const ServerSync = ({
2626
// eslint-disable-next-line react-hooks/exhaustive-deps
2727
const debouncedSessionSync = useCallback(
2828
debounce(serverSync, 2000, {
29-
leading: true,
30-
trailing: true,
31-
maxWait: 10000,
29+
edges: ['trailing', 'leading'],
3230
}),
3331
[serverSync],
3432
);

app/(interview)/interview/_components/SmallScreenOverlay.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const SmallScreenOverlay = () => {
99
}
1010

1111
return (
12-
<div className="fixed inset-0 z-50 flex items-center justify-center bg-[--nc-background] lg:hidden">
12+
<div className="fixed inset-0 z-50 flex items-center justify-center bg-(--nc-background) lg:hidden">
1313
<div className="flex max-w-[72ch] flex-col items-center justify-center p-6 text-center">
1414
<Image
1515
src="/images/too-small.svg"
@@ -23,7 +23,7 @@ const SmallScreenOverlay = () => {
2323
To complete this interview, please use a device with a larger screen,
2424
or maximize your browser window.
2525
</Paragraph>
26-
<Paragraph className="!mt-16">
26+
<Paragraph className="mt-16!">
2727
<strong>Note:</strong> it is not possible to complete this interview
2828
using a mobile phone.
2929
</Paragraph>

app/(interview)/interview/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const metadata = {
88

99
function RootLayout({ children }: { children: React.ReactNode }) {
1010
return (
11-
<main className="flex h-[100vh] max-h-[100vh] flex-col bg-[--nc-background] text-[--nc-text]">
11+
<main className="flex h-[100vh] max-h-[100vh] flex-col bg-(--nc-background) text-(--nc-text)">
1212
<SmallScreenOverlay />
1313
{children}
1414
</main>

app/dashboard/_components/NavigationBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { motion } from 'framer-motion';
3+
import { motion } from 'motion/react';
44
import type { Route } from 'next';
55
import Image from 'next/image';
66
import Link from 'next/link';

app/dashboard/_components/ProtocolUploader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

3-
import { AnimatePresence, motion } from 'framer-motion';
43
import { FileDown, Loader2 } from 'lucide-react';
4+
import { AnimatePresence, motion } from 'motion/react';
55
import { useCallback } from 'react';
66
import { useDropzone } from 'react-dropzone';
77
import JobCard from '~/components/ProtocolImport/JobCard';
@@ -58,7 +58,7 @@ function ProtocolUploader({
5858
className={cn(
5959
isActive &&
6060
cn(
61-
'bg-gradient-to-r from-cyber-grape via-neon-coral to-cyber-grape text-white',
61+
'bg-linear-to-r from-cyber-grape via-neon-coral to-cyber-grape text-white',
6262
'pointer-events-none animate-background-gradient cursor-wait bg-[length:400%]',
6363
),
6464
className,

app/dashboard/_components/SummaryStatistics/Icons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const ProtocolIcon = () => (
2-
<div className="flex aspect-[4/3] h-[40px] flex-col overflow-hidden rounded-[8px] bg-platinum">
2+
<div className="flex aspect-4/3 h-[40px] flex-col overflow-hidden rounded-[8px] bg-platinum">
33
<div className="flex h-2/3 w-full flex-col justify-center gap-[3px] px-[6px]">
44
<div className="h-[4.5px] w-10/12 rounded-full bg-platinum-dark" />
55
<div className="h-[2.5px] w-3/12 rounded-full bg-platinum-dark" />
@@ -11,7 +11,7 @@ export const ProtocolIcon = () => (
1111
);
1212

1313
export const InterviewIcon = () => (
14-
<div className="flex aspect-[4/3] h-[40px] flex-col overflow-hidden rounded-[8px] bg-platinum">
14+
<div className="flex aspect-4/3 h-[40px] flex-col overflow-hidden rounded-[8px] bg-platinum">
1515
<div className="flex h-2/4 w-full flex-col justify-center gap-[3px] px-[6px]">
1616
<div className="h-[4.5px] w-10/12 rounded-full bg-platinum-dark" />
1717
<div className="h-[2.5px] w-3/12 rounded-full bg-platinum-dark" />

0 commit comments

Comments
 (0)