Skip to content

Commit 74bf2ad

Browse files
committed
rewrite dependencies
1 parent 497e8bf commit 74bf2ad

11 files changed

Lines changed: 54 additions & 30 deletions

File tree

‎client/package.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"build:dev": "vite build --mode development",
1010
"preview": "vite preview",
1111
"lint": "eslint .",
12-
"format": "prettier --write ."
12+
"format": "prettier --write .",
13+
"typecheck": "tsc",
14+
"test:unit": "echo 'No client unit tests configured'",
15+
"test:integration": "echo 'No client integration tests configured'"
1316
},
1417
"dependencies": {
1518
"@hookform/resolvers": "^5.2.2",

‎client/src/components/architecture-visualization.tsx‎

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ const getNodePos = (i: number, innerWidth: number, rowHeight: number, isMobile:
150150

151151
const isLinkActive = (link: { from: number; to: number }, activeIndex: number) => {
152152
if (activeIndex === 0) return false;
153-
153+
154154
const { from, to } = link;
155-
155+
156156
if (activeIndex === 1) {
157157
return from === 0 && to === 1;
158158
}
@@ -178,7 +178,7 @@ const isLinkActive = (link: { from: number; to: number }, activeIndex: number) =
178178
if (activeIndex === 8) {
179179
return true;
180180
}
181-
181+
182182
return false;
183183
};
184184

@@ -242,7 +242,7 @@ export function ArchitectureVisualization() {
242242
const getLinkPath = (
243243
from: { x: number; y: number },
244244
to: { x: number; y: number },
245-
isMobile: boolean
245+
isMobile: boolean,
246246
) => {
247247
const dx = cardWidth / 2;
248248
const dy = cardHeight / 2;
@@ -298,10 +298,7 @@ export function ArchitectureVisualization() {
298298
return (
299299
<div className="relative w-full mx-auto py-6" ref={containerRef}>
300300
{/* Flowchart Diagram Wrapper */}
301-
<div
302-
className="relative w-full"
303-
style={{ height: innerHeight + margin.top + margin.bottom }}
304-
>
301+
<div className="relative w-full" style={{ height: innerHeight + margin.top + margin.bottom }}>
305302
{/* SVG Flowchart Lines */}
306303
{width > 0 && (
307304
<svg
@@ -345,7 +342,7 @@ export function ArchitectureVisualization() {
345342
const fromNode = nodesData[link.from];
346343
const toNode = nodesData[link.to];
347344
const pathStr = getLinkPath(fromNode, toNode, isMobile);
348-
345+
349346
const isPathActive = isMobile
350347
? link.to <= displayStepIndex
351348
: isLinkActive(link, displayStepIndex);
@@ -360,7 +357,7 @@ export function ArchitectureVisualization() {
360357
markerEnd="url(#flowchart-arrow)"
361358
className={cn(
362359
"transition-all duration-300 text-signal",
363-
isPathActive ? "opacity-100" : "opacity-0"
360+
isPathActive ? "opacity-100" : "opacity-0",
364361
)}
365362
/>
366363
);
@@ -408,7 +405,7 @@ export function ArchitectureVisualization() {
408405
? "border-signal shadow-[0_0_15px_rgba(16,185,129,0.25)] scale-105"
409406
: isVisited
410407
? "border-signal/50 shadow-sm"
411-
: "border-border shadow-sm hover:border-ink/20"
408+
: "border-border shadow-sm hover:border-ink/20",
412409
)}
413410
>
414411
<div className={cn("flex items-center gap-2", isMobile ? "" : "mb-1")}>
@@ -419,7 +416,7 @@ export function ArchitectureVisualization() {
419416
? "text-signal animate-pulse"
420417
: isVisited
421418
? "text-signal/80"
422-
: "text-muted-foreground/60"
419+
: "text-muted-foreground/60",
423420
)}
424421
strokeWidth={1.5}
425422
/>
@@ -428,7 +425,7 @@ export function ArchitectureVisualization() {
428425
<span
429426
className={cn(
430427
"font-display text-sm leading-tight font-medium",
431-
isCurrent ? "text-signal font-semibold" : "text-ink"
428+
isCurrent ? "text-signal font-semibold" : "text-ink",
432429
)}
433430
>
434431
{node.title}
@@ -445,7 +442,7 @@ export function ArchitectureVisualization() {
445442
<div
446443
className={cn(
447444
"font-display text-xs leading-tight font-medium mb-0.5",
448-
isCurrent ? "text-signal font-semibold" : "text-ink"
445+
isCurrent ? "text-signal font-semibold" : "text-ink",
449446
)}
450447
>
451448
{node.title}
@@ -464,12 +461,10 @@ export function ArchitectureVisualization() {
464461
? "opacity-100 scale-100 bg-signal text-white"
465462
: isVisited
466463
? "opacity-100 scale-100 bg-signal/70 text-white"
467-
: "opacity-100 scale-100 bg-border text-muted-foreground"
464+
: "opacity-100 scale-100 bg-border text-muted-foreground",
468465
)}
469466
>
470-
<span className="text-[9px] font-bold font-mono">
471-
{i + 1}
472-
</span>
467+
<span className="text-[9px] font-bold font-mono">{i + 1}</span>
473468
</div>
474469
</div>
475470
</div>
@@ -516,7 +511,7 @@ export function ArchitectureVisualization() {
516511
"px-3 py-1.5 rounded-lg border flex items-center gap-1.5 font-display text-xs transition-colors",
517512
isPlaying
518513
? "border-signal/30 bg-signal/10 text-signal hover:bg-signal/20"
519-
: "border-border hover:bg-mist/30 text-ink/70 hover:text-ink"
514+
: "border-border hover:bg-mist/30 text-ink/70 hover:text-ink",
520515
)}
521516
>
522517
{isPlaying ? (

‎client/src/lib/auth-store.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export interface User {
66
email: string;
77
profilePictureUrl: string | null;
88
role: string;
9+
oauthProvider?: string | null;
910
}
1011

1112
interface AuthState {

‎client/src/routes/auth.signin.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ function SignInPage() {
1313
return (
1414
<div className="w-full max-w-md mx-auto">
1515
<div className="mb-8 text-center">
16-
<h1 className="font-display text-4xl font-semibold tracking-tight text-ink">
17-
Get Started
18-
</h1>
16+
<h1 className="font-display text-4xl font-semibold tracking-tight text-ink">Get Started</h1>
1917
<p className="text-muted-foreground mt-3 text-sm">
2018
Select an identity provider to access your secure workspace.
2119
</p>

‎client/src/routes/profile.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function ProfilePage() {
8989
<label className="text-sm font-medium text-foreground">Full Name</label>
9090
<input
9191
type="text"
92-
defaultValue={user.name}
92+
defaultValue={user.name || ""}
9393
className="w-full rounded-xl border border-input bg-background px-4 py-2.5 text-sm transition-colors focus:border-ink focus:outline-none focus:ring-1 focus:ring-ink"
9494
/>
9595
</div>

‎client/src/routes/share.index.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function WorkspacePage() {
123123
const fetchWithAuth = (url: string, options: RequestInit = {}) => {
124124
const headers = {
125125
...options.headers,
126-
...(accessToken ? { "Authorization": `Bearer ${accessToken}` } : {}),
126+
...(accessToken ? { Authorization: `Bearer ${accessToken}` } : {}),
127127
};
128128
return window.fetch(url, { ...options, headers });
129129
};
@@ -1027,7 +1027,9 @@ function WorkspacePage() {
10271027
</div>
10281028
<div className="flex-1 min-w-0">
10291029
<h5 className="text-xs font-semibold text-ink truncate">{user?.name || "User"}</h5>
1030-
<p className="text-[10px] text-muted-foreground truncate">{user?.email || "user@secureshare.io"}</p>
1030+
<p className="text-[10px] text-muted-foreground truncate">
1031+
{user?.email || "user@secureshare.io"}
1032+
</p>
10311033
</div>
10321034
</div>
10331035
</aside>
@@ -1444,7 +1446,9 @@ function WorkspacePage() {
14441446
<ExternalLink className="h-4 w-4" />
14451447
</a>
14461448
<button
1447-
onClick={() => handleRevokeShare(s.url.split("/").pop() || "")}
1449+
onClick={() =>
1450+
handleRevokeShare(share.url.split("/").pop() || "")
1451+
}
14481452
className="rounded p-1.5 text-muted-foreground hover:bg-red-500/10 hover:text-red-500 transition-colors"
14491453
title="Revoke Link"
14501454
>

‎package.json‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,12 @@
44
"workspaces": [
55
"client",
66
"server"
7-
]
7+
],
8+
"scripts": {
9+
"lint": "npm run lint --workspaces --if-present",
10+
"typecheck": "npm run typecheck --workspaces --if-present",
11+
"test:unit": "npm run test:unit --workspaces --if-present",
12+
"test:integration": "npm run test:integration --workspaces --if-present",
13+
"build": "npm run build --workspaces --if-present"
14+
}
815
}

‎server/package.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
"build": "tsc",
99
"start": "node dist/index.js",
1010
"db:push": "prisma db push",
11-
"db:generate": "prisma generate"
11+
"db:generate": "prisma generate",
12+
"typecheck": "tsc --noEmit",
13+
"lint": "echo 'No server linting configured'",
14+
"test:unit": "node --import tsx --test src/**/*.unit.ts",
15+
"test:integration": "node --import tsx --test src/**/*.integration.ts"
1216
},
1317
"dependencies": {
1418
"@prisma/client": "^5.22.0",

‎server/src/index.integration.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { test } from "node:test";
2+
import assert from "node:assert";
3+
4+
test("server integration test placeholder", () => {
5+
assert.strictEqual(true, true);
6+
});

‎server/src/index.unit.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { test } from "node:test";
2+
import assert from "node:assert";
3+
4+
test("server unit test placeholder", () => {
5+
assert.strictEqual(1 + 1, 2);
6+
});

0 commit comments

Comments
 (0)