Skip to content

Commit 7957fba

Browse files
committedFeb 1, 2025
padding changes
1 parent c0a4b9c commit 7957fba

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed
 

‎src/app/api/jobs/search/route.ts

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export async function GET(request: Request) {
2828
SEARCH("${q}", LOWER({item_name})),
2929
SEARCH("${q}", LOWER({item_description})),
3030
SEARCH("${q}", LOWER({ysws_pr_url})),
31+
SEARCH("${q}", LOWER(ARRAYJOIN({(auto)(ysws)name}))),
3132
SEARCH("${q}", LOWER(ARRAYJOIN({(auto)(creator)slack_id})))
3233
),
3334
{(auto)(assigned_printer)slack_id}=''

‎src/app/dashboard/client-page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default function DashboardPage({
9494
{recentActivity?.recentJobs && recentActivity.recentJobs.length > 0 && (
9595
<div className="!mt-8">
9696
<h2 className="text-xl font-semibold mb-4">Recent Activity</h2>
97-
<div className="grid gap-4">
97+
<div className="grid gap-2">
9898
{recentActivity.recentJobs.map((job) => (
9999
<JobCard key={job.id} job={job} />
100100
))}

‎src/app/dashboard/jobs/search/client-page.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { useDebounce } from "@/hooks/use-debounce";
1010
import { User } from "@/lib/types";
1111

1212
export default function SearchPage({ user }: { user: User }) {
13-
console.log(user);
1413
const [searchQuery, setSearchQuery] = useState("");
1514
const debouncedQuery = useDebounce(searchQuery, 500);
1615

@@ -27,7 +26,7 @@ export default function SearchPage({ user }: { user: User }) {
2726
};
2827

2928
return (
30-
<div className="space-y-8">
29+
<div className="space-y-4">
3130
<div className="flex items-center space-x-4">
3231
<div className="relative flex-1">
3332
<Search className="absolute left-3 top-1/2 transform -translate-y-1/2 text-zinc-400 w-4 h-4" />
@@ -55,7 +54,7 @@ export default function SearchPage({ user }: { user: User }) {
5554
</div>
5655
) : (
5756
<>
58-
<div className="grid gap-4">
57+
<div className="grid gap-2">
5958
{jobs.map((job) => (
6059
<JobCard key={job.id} job={job} />
6160
))}

‎src/app/dashboard/prints/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default async function PrintsPage() {
2525
return (
2626
<div className="space-y-8">
2727
<h1 className="text-2xl font-semibold">Your Prints</h1>
28-
<div className="grid gap-4">
28+
<div className="grid gap-2">
2929
{jobs.map((job) => (
3030
<JobCard key={job.id} job={job} isAssigned={true} />
3131
))}

‎src/app/dashboard/submissions/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default async function SubmissionsPage() {
2727
return (
2828
<div className="space-y-8">
2929
<h1 className="text-2xl font-semibold">Your Submissions</h1>
30-
<div className="grid gap-4">
30+
<div className="grid gap-2">
3131
{jobs.map((job) => (
3232
<JobCard key={job.id} job={job} />
3333
))}

‎src/components/job-card.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function JobCardComponent({
5050
{job.item_description.length > 100 && "..."}
5151
</p>
5252
)}
53-
<div className="flex flex-row gap-1 mt-1">
53+
<div className="inline-flex flex-wrap gap-1 mt-1">
5454
{job.part_count && (
5555
<Badge variant="secondary-static" className="text-xs">
5656
{job.part_count} part{job.part_count > 1 ? "s" : ""}
@@ -96,6 +96,7 @@ function JobCardComponent({
9696
onClick={() => window.open(job.ysws_pr_url, "_blank")}
9797
variant="secondary"
9898
size="sm"
99+
className="hidden xs:inline-flex"
99100
>
100101
<Github className="w-4 h-4 mr-1.5" />
101102
View PR

0 commit comments

Comments
 (0)