gohorsejobs/frontend/src
Tiago Yamamoto 2b98552658 feat(dashboard): rewrite jobs/new with all backend fields and location autocomplete
- Add workMode, languageLevel, visaSupport, salaryNegotiable to form
- Add all 10 currency options and all 8 employment types (including dispatch/voluntary)
- Add status selector (draft/review/open/paused/closed)
- Add location autocomplete with country dropdown and city/region search
- Add application channel (email/url/phone) with conditional inputs
- Add resumeRequirement selector and requirements map in payload
- Load companies via adminCompaniesApi (no registration — user is already logged in)
- Extend CreateJobPayload type with workMode, cityId, regionId, languageLevel,
  visaSupport, requirements, expanded currency and status options

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 12:58:03 -06:00
..
app feat(dashboard): rewrite jobs/new with all backend fields and location autocomplete 2026-02-22 12:58:03 -06:00
components refactor job posting routes and add dashboard job creation page 2026-02-17 09:42:31 -03:00
contexts fix: resolve merge conflicts in api.ts 2026-02-17 16:20:40 -06:00
hooks feat: implement careerjet gap analysis improvements 2026-02-14 19:37:25 +00:00
i18n Fix job details i18n and load company data from API 2026-02-17 18:23:30 -03:00
lib feat(dashboard): rewrite jobs/new with all backend fields and location autocomplete 2026-02-22 12:58:03 -06:00
README.md docs: complete project documentation overhaul 2025-12-09 19:36:36 -03:00

Frontend Source

Código fonte do frontend Next.js.


📁 Estrutura

Diretório Descrição
app/ App Router - páginas e layouts
components/ Componentes React reutilizáveis
contexts/ React Contexts (Auth, Theme)
hooks/ Custom hooks
lib/ Utilitários e configurações

🔑 Contextos

AuthContext.tsx

Gerencia autenticação global:

  • Estado do usuário logado
  • Funções de login/logout
  • Token JWT em localStorage

🪝 Hooks

Hook Descrição
useAuth Acesso ao contexto de autenticação
useProfile Gerenciamento de perfil de usuário

📦 Lib

Arquivo Descrição
utils.ts Funções helper (cn, formatDate)
api.ts Cliente HTTP para backend