Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/__tests__/unit/components/Footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ describe('Footer', () => {
expect(footer).toHaveClass(
'mt-auto',
'w-full',
'border-t',
'border-t-1',
'bg-slate-200',
'dark:bg-slate-800',
'xl:max-w-full'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,9 @@ describe('LoginPageContent', () => {
expect(loginCard).toHaveClass(
'w-full',
'max-w-sm',
'space-y-6',
'flex',
'flex-col',
'gap-6',
'rounded-2xl',
'border',
'border-gray-200',
Expand Down
2 changes: 1 addition & 1 deletion frontend/__tests__/unit/components/MultiSearch.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe('Rendering', () => {
'h-12',
'w-full',
'rounded-lg',
'border',
'border-1',
'border-gray-300',
'pl-10',
'pr-10',
Expand Down
4 changes: 2 additions & 2 deletions frontend/__tests__/unit/components/NavButton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ describe('<NavButton />', () => {
'hover:ring-1',
'hover:ring-[#b0c7de]',
'hover:ring-offset-0',
'focus-visible:outline-none',
'focus-visible:outline-hidden',
'focus-visible:ring-1',
'focus-visible:ring-ring'
)
Expand Down Expand Up @@ -323,7 +323,7 @@ describe('<NavButton />', () => {
it('should maintain focus visibility with focus-visible classes', () => {
renderNavButton()
const link = screen.getByRole('link')
expect(link).toHaveClass('focus-visible:outline-none', 'focus-visible:ring-1')
expect(link).toHaveClass('focus-visible:outline-hidden', 'focus-visible:ring-1')
})
})

Expand Down
4 changes: 2 additions & 2 deletions frontend/__tests__/unit/components/Search.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ describe('SearchBar Component', () => {
render(<SearchBar {...defaultProps} isLoaded={false} />)
const input = screen.getByPlaceholderText('Search projects...')
expect(input).toHaveClass(
'h-12 w-full rounded-lg border border-gray-300 pl-10 pr-10 text-lg text-black focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-800 dark:text-white dark:focus:border-blue-300 dark:focus:ring-blue-300'
'h-12 w-full rounded-lg border-1 border-gray-300 pl-10 pr-10 text-lg text-black focus:border-blue-500 focus:outline-hidden focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-800 dark:text-white dark:focus:border-blue-300 dark:focus:ring-blue-300'
)
})

Expand All @@ -351,7 +351,7 @@ describe('SearchBar Component', () => {
fireEvent.change(input, { target: { value: 'test' } })
const clearButton = container.querySelector('button.absolute.rounded-full[class*="right-2"]')
expect(clearButton).toHaveClass(
'absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-1 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-300'
'absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-1 hover:bg-gray-100 focus:outline-hidden focus:ring-2 focus:ring-gray-300'
)
})

Expand Down
2 changes: 1 addition & 1 deletion frontend/__tests__/unit/components/UserMenu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ describe('UserMenu Component', () => {
expect(container).toHaveClass('relative', 'flex', 'items-center', 'justify-center')

const avatarButton = screen.getByRole('button')
expect(avatarButton).toHaveClass('w-auto', 'focus:outline-none')
expect(avatarButton).toHaveClass('w-auto', 'focus:outline-hidden')
})

it('applies correct CSS classes to dropdown menu', async () => {
Expand Down
3 changes: 1 addition & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"@types/react-gtm-module": "^2.0.4",
"@typescript-eslint/eslint-plugin": "^8.41.0",
"@typescript-eslint/parser": "^8.41.0",
"autoprefixer": "^10.4.21",
"eslint": "^9.34.0",
"eslint-config-next": "^15.5.2",
"eslint-config-prettier": "^10.1.8",
Expand All @@ -106,7 +105,7 @@
"prettier": "^3.6.2",
"prettier-plugin-tailwindcss": "^0.6.14",
"require-in-the-middle": "^7.5.2",
"tailwindcss": "^3.4.17",
"tailwindcss": "^4.1.12",
"ts-jest": "^29.4.1",
"ts-node": "^10.9.2",
"typescript": "~5.8.3",
Expand Down
1,105 changes: 370 additions & 735 deletions frontend/pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions frontend/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {},
tailwindcss: {},
'@tailwindcss/postcss': {},
},
}
4 changes: 2 additions & 2 deletions frontend/src/app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const About = () => {
return (
<div className="min-h-screen p-8 text-gray-600 dark:bg-[#212529] dark:text-gray-300">
<div className="mx-auto max-w-6xl">
<h1 className="mb-6 mt-4 text-4xl font-bold">About</h1>
<h1 className="mt-4 mb-6 text-4xl font-bold">About</h1>
<SecondaryCard icon={faScroll} title={<AnchorTitle title="History" />}>
{aboutText.map((text) => (
<div key={text} className="mb-4">
Expand Down Expand Up @@ -141,7 +141,7 @@ const About = () => {
{technologies.map((tech) => (
<div key={tech.section} className="mb-2">
<h3 className="mb-3 font-semibold text-blue-400">{tech.section}</h3>
<ul className="space-y-3">
<ul className="flex flex-col gap-3">
{Object.entries(tech.tools).map(([name, details]) => (
<li key={name} className="flex flex-row items-center gap-2">
<Image
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/global-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const ErrorDisplay: React.FC<ErrorDisplayProps> = ({ statusCode, title, m
<p className="font-inter mt-2 text-lg text-black dark:text-white">{message}</p>
<Button
onPress={() => router.push('/')}
className="font-inter mt-8 h-12 w-40 rounded-lg bg-owasp-blue text-base font-medium text-white transition-colors hover:bg-blue-400"
className="font-inter bg-owasp-blue mt-8 h-12 w-40 rounded-lg text-base font-medium text-white transition-colors hover:bg-blue-400"
>
Return To Home
</Button>
Expand Down
Loading