Skip to content

Commit 694c4b8

Browse files
committed
chore: inclui ajustes adicionais do dashboard
1 parent fc7d156 commit 694c4b8

15 files changed

Lines changed: 252 additions & 86 deletions

File tree

.cspell/custom-dictionary-workspace.txt

Lines changed: 122 additions & 0 deletions
Large diffs are not rendered by default.

backend/bruno/Auth/Register.bru

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ post {
1212

1313
body:json {
1414
{
15-
"email":"hudson60@gmail.com",
16-
"password": "tavares10",
17-
"name": "Hudson Tavares",
18-
"role":"banana"
15+
"email": "teste.criptografia.001@example.com",
16+
"password": "SenhaForte123",
17+
"name": "Teste Criptografia",
18+
"phone": "+5534999999999",
19+
"cpf": "12345678901",
20+
"technologies": ["TypeScript", "Node.js", "React"],
21+
"level": "pleno"
1922
}
2023
}
2124

backend/bruno/Jobs/SearchJobs.bru

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ meta {
55
}
66

77
get {
8-
url: {{base_url}}/jobs/search?keywords=node.js
8+
url: {{base_url}}/jobs/search?location=&keywords=node.js
99
body: none
1010
auth: inherit
1111
}
1212

1313
params:query {
14+
location:
1415
keywords: node.js
1516
}
1617

front_admin/src/app/layouts/MainLayout/Sidebar/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useNavigate } from "react-router-dom";
2+
import { CandidateLogo } from "../../../../lib/ui/CandidateLogo";
23
import { useAuth } from "../../../../modules/auth/hooks/useAuth";
3-
import { CandidateLogo } from "../components/CandidateLogo";
44
import { SidebarFooter } from "./components/SidebarFooter";
55
import { SidebarItem } from "./components/SidebarItem";
66
import { NAV_ITEMS } from "./sidebar.config";

front_admin/src/app/layouts/MainLayout/components/CandidateLogo.tsx renamed to front_admin/src/lib/ui/CandidateLogo.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
// interface CandidateLogoProps {
2-
// size?: "sm" | "md";
3-
// }
4-
5-
// const SIZE_STYLES = {
6-
// sm: "text-xl",
7-
// md: "text-2xl",
8-
// };
9-
10-
// export function CandidateLogo({ size = "md" }: CandidateLogoProps) {
11-
// return (
12-
// <span
13-
// aria-label="Cand!Date!"
14-
// className={`inline-flex items-baseline whitespace-nowrap font-extrabold tracking-normal ${SIZE_STYLES[size]}`}
15-
// >
16-
// <span className="text-[#2f6fff] dark:text-[##2D5CAB]">&lt;</span>
17-
// <span className="text-slate-950 dark:text-slate-100">Cand!Date</span>
18-
// <span className="text-[#2f6fff] dark:text-[#2D5CAB]">!&gt;</span>
19-
// </span>
20-
// );
21-
// }
221
interface CandidateLogoProps {
232
size?: "sm" | "md";
243
}

front_admin/src/modules/auth/LoginPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Lock } from "lucide-react";
22
import { useNavigate } from "react-router-dom";
3-
import { CandidateLogo } from "../../app/layouts/MainLayout/components/CandidateLogo";
43
import { ErrorMessage } from "../../components/common/ErrorMessage";
4+
import { CandidateLogo } from "../../lib/ui/CandidateLogo";
55
import { BrandPanel } from "./components/BrandPanel";
66
import { LoginForm } from "./components/LoginForm";
77
import { LoginHeader } from "./components/LoginHeader";

front_admin/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
"erasableSyntaxOnly": true,
2323
"noFallthroughCasesInSwitch": true
2424
},
25-
"include": ["src"]
25+
"include": ["src", "../shared/CandidateLogo.tsx"]
2626
}

frontend/eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default defineConfig([
1919
ecmaVersion: 2020,
2020
globals: globals.browser,
2121
parserOptions: {
22+
tsconfigRootDir: import.meta.dirname,
2223
ecmaVersion: 'latest',
2324
ecmaFeatures: { jsx: true },
2425
sourceType: 'module',

frontend/src/app/AppRoutes.tsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import NotFound from "@/app/NotFound";
12
import { useAuth } from "@/domains/auth/application/AuthContext";
2-
import { AuthenticatedLayout } from "@/app/AuthenticatedLayout";
33
import AuthCallbackPage from "@/domains/auth/presentation/pages/AuthCallbackPage";
44
import LoginPage from "@/domains/auth/presentation/pages/LoginPage";
55
import RegisterPage from "@/domains/auth/presentation/pages/RegisterPage";
6-
import JobsPage from "@/domains/jobs/presentation/pages/JobsPage";
76
import LandingPage from "@/domains/marketing/presentation/pages/LandingPage";
8-
import NotFound from "@/app/NotFound";
7+
import NewDashboardPage from "@/domains/new_dashboard/NewDashboardPage";
8+
import NewDashboardLayout from "@/domains/new_dashboard/layout";
99
import Loading from "@/shared/ui/Loading";
1010
import { Navigate, Route, Routes } from "react-router-dom";
1111

@@ -24,21 +24,23 @@ function PublicRoute({ children }: { children: React.ReactNode }) {
2424
}
2525

2626
export function AppRoutes() {
27+
const dashboardElement = (
28+
<ProtectedRoute>
29+
<NewDashboardLayout>
30+
<NewDashboardPage />
31+
</NewDashboardLayout>
32+
</ProtectedRoute>
33+
);
34+
2735
return (
2836
<Routes>
2937
<Route path="/" element={<LandingPage />} />
30-
<Route
31-
element={
32-
<ProtectedRoute>
33-
<AuthenticatedLayout />
34-
</ProtectedRoute>
35-
}
36-
>
37-
<Route path="/home" element={<JobsPage />} />
38-
<Route path="/dashboard" element={<NotFound />} />
39-
<Route path="/vagas" element={<JobsPage />} />
40-
<Route path="/mentoria" element={<NotFound />} />
41-
</Route>
38+
<Route path="/home" element={dashboardElement} />
39+
<Route path="/dashboard" element={dashboardElement} />
40+
<Route path="/vagas" element={dashboardElement} />
41+
<Route path="/mentoria" element={dashboardElement} />
42+
<Route path="/perfil" element={dashboardElement} />
43+
<Route path="/ajuda" element={dashboardElement} />
4244
<Route
4345
path="/login"
4446
element={

frontend/src/domains/auth/domain/auth.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export interface User {
33
email: string;
44
name?: string;
55
displayName?: string | null;
6+
avatarUrl?: string | null;
67
}
78

89
export interface LoginCredentials {

0 commit comments

Comments
 (0)