Skip to content

Commit c80f399

Browse files
fix: apply all PR review feedback - deduplication, spelling, link fixes, 403 corrections
Agent-Logs-Url: https://github.com/codebuilderinc/codebuilder-frontend/sessions/16c5a567-7235-4e88-a5dd-3207d6f98425 Co-authored-by: digitalnomad91 <2067771+digitalnomad91@users.noreply.github.com>
1 parent 721fbf7 commit c80f399

15 files changed

Lines changed: 77 additions & 714 deletions

File tree

package-lock.json

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/403/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const ASCII = [
1111
' \\______)___/ \\____|\\____)______/ \\____|_|_|\\____|\\____)_| (_)_|\\___/ ',
1212
]
1313

14-
const PROMPT = "404. The page you requested cannot be found right now. Try typing 'hack the world'."
14+
const PROMPT = "403. Access denied. Try typing 'hack the world'."
1515
const MATRIX_TEXT =
16-
'You are a slave. Like everyone else, you were born into bondage, born into a prison that you cannot smell or taste or touch. A prison...for your mind....Unfortunatly, no one can be..._told_ what the Matrix is...you have to see it for yourself.'
16+
'You are a slave. Like everyone else, you were born into bondage, born into a prison that you cannot smell or taste or touch. A prison...for your mind....Unfortunately, no one can be..._told_ what the Matrix is...you have to see it for yourself.'
1717

1818
export default function FourOhThreePage() {
1919
const [input, setInput] = useState('')
@@ -103,7 +103,7 @@ export default function FourOhThreePage() {
103103
const value = input.trim().toLowerCase()
104104

105105
if (value === 'hack the world') {
106-
setLines((prev) => [...prev])
106+
setLines((prev) => [...prev, input])
107107
setInput('')
108108
setCurrentOutput('')
109109
setIsTyping(true)

src/app/admin/time/page.tsx

Lines changed: 3 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,5 @@
1-
'use client'
1+
import { AdminTimePage } from '@/components/admin/time/admin-time-page'
22

3-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
4-
import { faPlus } from '@fortawesome/free-solid-svg-icons'
5-
import { AdminLayout } from '@/components/admin/admin-layout'
6-
import { ActionButton, Separator } from '@/components/breadcrumbs'
7-
8-
const timesheets = [
9-
{
10-
date: 'November 02nd, 2024',
11-
time: '9:00 AM - 1:30 PM',
12-
hours: '4.50 hrs',
13-
user: 'Andrew Corbin',
14-
client: 'ACME Product Team',
15-
firm: 'ACME Labs LLC',
16-
description:
17-
'Polish invoice payment UX, fix edge cases in router transition handling, and review responsive behavior.',
18-
},
19-
{
20-
date: 'October 28th, 2024',
21-
time: '2:15 PM - 6:00 PM',
22-
hours: '3.75 hrs',
23-
user: 'Tom Goodrie',
24-
client: 'Northgrid Studio',
25-
firm: 'Northgrid Studio',
26-
description: 'Review sitemap IA, implement content page scaffolding, and prep migration notes for API transition.',
27-
},
28-
]
29-
30-
export default function AdminTimePage() {
31-
return (
32-
<AdminLayout title="Timesheets" breadcrumbLabel="Timesheets">
33-
<div className="border border-[#ececec] rounded bg-white shadow-[0_8px_24px_rgba(0,0,0,0.04)] p-6 lg:p-8">
34-
<div className="flex flex-col gap-4 md:flex-row md:items-start md:justify-between">
35-
<h1 className="text-[34px] font-normal leading-[1.15] text-[#2a2a2a]">Timesheets</h1>
36-
<ActionButton href="/admin/time" variant="primary">
37-
<FontAwesomeIcon icon={faPlus} />
38-
<span>New</span>
39-
</ActionButton>
40-
</div>
41-
<Separator />
42-
<div className="overflow-x-auto">
43-
<table className="w-full min-w-[880px] text-left text-[14px]">
44-
<thead>
45-
<tr className="border-b border-[#ececec] text-[#555]">
46-
{['Date', 'Hours', 'User', 'Client', 'Description', ''].map((header) => (
47-
<th key={header} className="px-4 py-3">
48-
{header}
49-
</th>
50-
))}
51-
</tr>
52-
</thead>
53-
<tbody>
54-
{timesheets.map((row) => (
55-
<tr key={`${row.date}-${row.user}`} className="border-b border-[#f3f3f3] text-[#666]">
56-
<td className="px-4 py-4">
57-
<div className="text-center">
58-
{row.date}
59-
<br />
60-
<small>({row.time})</small>
61-
</div>
62-
</td>
63-
<td className="px-4 py-4 font-semibold">{row.hours}</td>
64-
<td className="px-4 py-4">{row.user}</td>
65-
<td className="px-4 py-4">
66-
{row.client}
67-
<br />
68-
<small>{row.firm}</small>
69-
</td>
70-
<td className="px-4 py-4">
71-
<textarea className="h-[150px] w-full rounded-[3px] border border-[#ddd] px-3 py-2 text-[13px] outline-none">
72-
{row.description}
73-
</textarea>
74-
</td>
75-
<td className="px-4 py-4 text-center text-[#c46]">Delete</td>
76-
</tr>
77-
))}
78-
</tbody>
79-
</table>
80-
</div>
81-
</div>
82-
</AdminLayout>
83-
)
3+
export default function AdminTimeRoutePage() {
4+
return <AdminTimePage />
845
}

0 commit comments

Comments
 (0)