Skip to content

Commit ab10ad6

Browse files
committed
fix(ui): refactor tooltip, breadcrumbs, sidebar, and component styles to improve consistency and simplify layout
1 parent 700fdea commit ab10ad6

84 files changed

Lines changed: 598 additions & 569 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ yarn-error.log
3232
CLAUDE.md
3333
/.cursor
3434
boost.json
35+
/.interface-design/system.md
3536

3637
# VitePress
3738
docs/.vitepress/dist

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
resources/js/components/ui/*
21
resources/views/mail/*
32
resources/types/generated.d.ts

app/Domains/Organization/Http/Controllers/OrganizationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ public function store(StoreOrganizationRequest $request): RedirectResponse
6161
);
6262

6363
return redirect()->route('organizations.show', $organization->slug)
64-
->with('success', 'Organization created successfully.');
64+
->with('status', 'Organization created successfully.');
6565
}
6666
}

app/Http/Middleware/HandleInertiaRequests.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App\Http\Middleware;
44

55
use App\Domains\Organization\Contracts\Data\OrganizationData;
6-
use Illuminate\Foundation\Inspiring;
76
use Illuminate\Http\Request;
87
use Inertia\Middleware;
98

@@ -37,12 +36,9 @@ public function version(Request $request): ?string
3736
*/
3837
public function share(Request $request): array
3938
{
40-
[$message, $author] = str(Inspiring::quotes()->random())->explode('-');
41-
4239
return [
4340
...parent::share($request),
4441
'name' => config('app.name'),
45-
'quote' => ['message' => trim($message ?? ''), 'author' => trim($author ?? '')],
4642
'auth' => [
4743
'user' => $request->user(),
4844
'organizations' => $request->user()

docs/.vitepress/config.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@ export default defineConfig({
66

77
head: [
88
['link', { rel: 'icon', href: '/favicon.svg', type: 'image/svg+xml' }],
9-
['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
10-
[
11-
'link',
12-
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' },
13-
],
14-
[
15-
'link',
16-
{
17-
href: 'https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap',
18-
rel: 'stylesheet',
19-
},
20-
],
219
],
2210

2311
themeConfig: {

docs/.vitepress/theme/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Custom theme overrides */
22

33
:root {
4-
--vp-font-family-base: 'Hanken Grotesk', sans-serif;
4+
--vp-font-family-base: 'Inter', ui-sans-serif, system-ui, sans-serif;
55
--vp-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco,
66
Consolas, 'Liberation Mono', 'Courier New', monospace;
77
--vp-c-brand-1: #f03f03;

resources/css/app.css

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@theme {
1111
--font-sans:
12-
'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif,
12+
'InterVariable', 'Inter', ui-sans-serif, system-ui, sans-serif,
1313
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
1414
'Noto Color Emoji';
1515

@@ -100,15 +100,15 @@
100100
--destructive-foreground: oklch(0.55 0.22 25);
101101

102102
/* Button depth styling */
103-
--button-primary-from: oklch(0.68 0.20 35);
103+
--button-primary-from: oklch(0.68 0.2 35);
104104
--button-primary-to: oklch(0.58 0.22 35);
105-
--button-primary-border: oklch(0.52 0.20 35);
106-
--button-secondary-from: oklch(0.99 0.002 90);
107-
--button-secondary-to: oklch(0.91 0.004 90);
108-
--button-secondary-border: oklch(0.82 0.005 90);
109-
--button-destructive-from: oklch(0.60 0.20 25);
110-
--button-destructive-to: oklch(0.50 0.22 25);
111-
--button-destructive-border: oklch(0.45 0.20 25);
105+
--button-primary-border: oklch(0.52 0.2 35);
106+
--button-secondary-from: oklch(0.995 0.001 90);
107+
--button-secondary-to: oklch(0.97 0.002 90);
108+
--button-secondary-border: oklch(0.87 0.004 90);
109+
--button-destructive-from: oklch(0.6 0.2 25);
110+
--button-destructive-to: oklch(0.5 0.22 25);
111+
--button-destructive-border: oklch(0.45 0.2 25);
112112
--border: oklch(0.93 0.003 90);
113113
--input: oklch(0.93 0.003 90);
114114
--ring: oklch(0.88 0.005 90);
@@ -150,8 +150,8 @@
150150
--button-primary-from: oklch(0.98 0 0);
151151
--button-primary-to: oklch(0.88 0 0);
152152
--button-primary-border: oklch(0.75 0 0);
153-
--button-secondary-from: oklch(0.32 0.01 260);
154-
--button-secondary-to: oklch(0.22 0.01 260);
153+
--button-secondary-from: oklch(0.30 0.01 260);
154+
--button-secondary-to: oklch(0.25 0.01 260);
155155
--button-secondary-border: oklch(0.38 0.01 260);
156156
--button-destructive-from: oklch(0.52 0.18 25);
157157
--button-destructive-to: oklch(0.42 0.18 25);
@@ -184,6 +184,7 @@
184184
}
185185

186186
html {
187+
font-size: 12px;
187188
scrollbar-gutter: stable;
188189
}
189190
}

resources/js/components/add-repository-dialog.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default function AddRepositoryDialog({
185185
>
186186
{({ processing, errors, wasSuccessful }) => (
187187
<>
188-
<div className="space-y-2">
188+
<div className="grid space-y-2">
189189
<Label htmlFor="provider">
190190
Git Provider{' '}
191191
<span className="text-red-500">*</span>
@@ -215,7 +215,7 @@ export default function AddRepositoryDialog({
215215
{errors.provider &&
216216
!processing &&
217217
!wasSuccessful && (
218-
<p className="text-sm text-destructive">
218+
<p className="text-destructive">
219219
{errors.provider}
220220
</p>
221221
)}
@@ -232,13 +232,13 @@ export default function AddRepositoryDialog({
232232
</p>
233233
</div>
234234

235-
<div className="space-y-2">
235+
<div className="grid space-y-2">
236236
<Label htmlFor="repo_identifier">
237237
Repository{' '}
238238
<span className="text-red-500">*</span>
239239
</Label>
240240
{loadingRepos && provider === 'github' ? (
241-
<div className="flex items-center gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm">
241+
<div className="flex items-center gap-2 rounded-md border border-input bg-transparent px-3 py-2">
242242
<Spinner className="size-4" />
243243
<span className="text-muted-foreground">
244244
Loading repositories...
@@ -369,7 +369,7 @@ export default function AddRepositoryDialog({
369369
},
370370
)
371371
) : (
372-
<div className="px-2 py-4 text-center text-sm text-muted-foreground">
372+
<div className="px-2 py-4 text-center text-muted-foreground">
373373
No repositories found
374374
</div>
375375
)}
@@ -385,7 +385,7 @@ export default function AddRepositoryDialog({
385385
) : provider === 'github' &&
386386
repositories.length === 0 ? (
387387
<>
388-
<div className="rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive">
388+
<div className="rounded-md border border-destructive bg-destructive/10 p-3 text-destructive">
389389
No repositories found. Please
390390
configure GitHub credentials in
391391
settings.
@@ -434,13 +434,13 @@ export default function AddRepositoryDialog({
434434
{errors.repo_identifier &&
435435
!processing &&
436436
!wasSuccessful && (
437-
<p className="text-sm text-destructive">
437+
<p className="text-destructive">
438438
{errors.repo_identifier}
439439
</p>
440440
)}
441441
</div>
442442

443-
<div className="space-y-2">
443+
<div className="grid space-y-2">
444444
<Label htmlFor="default_branch">
445445
Default Branch (optional)
446446
</Label>
@@ -452,7 +452,7 @@ export default function AddRepositoryDialog({
452452
{errors.default_branch &&
453453
!processing &&
454454
!wasSuccessful && (
455-
<p className="text-sm text-destructive">
455+
<p className="text-destructive">
456456
{errors.default_branch}
457457
</p>
458458
)}
@@ -466,7 +466,7 @@ export default function AddRepositoryDialog({
466466
<DialogFooter>
467467
<Button
468468
type="button"
469-
variant="outline"
469+
variant="secondary"
470470
onClick={handleClose}
471471
>
472472
Cancel

resources/js/components/alert-error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function AlertError({
1313
<AlertCircleIcon />
1414
<AlertTitle>{title || 'Something went wrong.'}</AlertTitle>
1515
<AlertDescription>
16-
<ul className="list-inside list-disc text-sm">
16+
<ul className="list-inside list-disc">
1717
{Array.from(new Set(errors)).map((error, index) => (
1818
<li key={index}>{error}</li>
1919
))}

resources/js/components/app-header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
9595
<AppLogoIcon className="h-6 w-6 fill-current text-black dark:text-white" />
9696
</SheetHeader>
9797
<div className="flex h-full flex-1 flex-col space-y-4 p-4">
98-
<div className="flex h-full flex-col justify-between text-sm">
98+
<div className="flex h-full flex-col justify-between">
9999
<div className="flex flex-col space-y-4">
100100
{mainNavItems.map((item) => (
101101
<Link
@@ -204,7 +204,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
204204
href={resolveUrl(item.href)}
205205
target="_blank"
206206
rel="noopener noreferrer"
207-
className="group ml-1 inline-flex h-9 w-9 items-center justify-center rounded-md bg-transparent p-0 text-sm font-medium text-accent-foreground ring-offset-background transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50"
207+
className="group ml-1 inline-flex h-9 w-9 items-center justify-center rounded-md bg-transparent p-0 font-medium text-accent-foreground ring-offset-background transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50"
208208
>
209209
<span className="sr-only">
210210
{item.title}

0 commit comments

Comments
 (0)