refatoração fluxo de vagas e correção login automático
- Frontend:
- Implementa componente JobFormBuilder para perguntas dinâmicas
- Atualiza página /post-job com fluxo de 3 etapas e integração do builder
- Corrige payload de registro (auth.ts) enviando campo password corretamente
- Implementa auto-login após cadastro da empresa (redirecionamento e token)
- Remove páginas obsoletas de registro de candidato
- Backend:
- Atualiza CreateCompanyUseCase para retornar token JWT
- Ajusta JobService para persistência correta de campos JSON (Questions, Benefits)
- Atualiza DTOs de Job e Company para refletir novas estruturas
- Adiciona migração (033) para novas colunas de refatoração
- Ajustes nos repositórios para suporte aos novos modelos
Ref: #refactor-jobs #fix-auth
- Reduced form from 3 steps to 2 steps
- Step 1 now contains both company and job data with visual separator
- Step 2 is confirmation only
- Updated progress indicators and card headers
- Fixed navigation button references
Backend:
- Created migration 031 for employee_count and founded_year
- Updated Company model with EmployeeCount and FoundedYear
- Updated core DTO with website, employeeCount, foundedYear, description
Frontend:
- Added website input field to company form
- Added employee count dropdown (1-10, 11-50, etc.)
- Added founded year input
- Added 'About Company' rich text editor
- Updated API payload to send new fields
Backend:
- Updated DTOs to include SalaryNegotiable and WorkingHours
- Updated JobService to map and persist these fields (CREATE, GET, UPDATE)
- Ensure DB queries include new columns
Frontend:
- Added 'Working Hours' (Jornada de Trabalho) dropdown to PostJobPage
- Updated state and submit logic
- Improved salary display in confirmation step
Seeder:
- Updated jobs seeder to include salary_negotiable and valid working_hours
Backend:
- Created LocationHandler, LocationService, LocationRepository
- Added endpoints: GET /api/v1/locations/countries, states, cities, search
- Added migration 029_expand_employment_types.sql with new contract types (permanent, training, temporary, voluntary)
- Fixed .gitignore to allow internal/api folder
Frontend:
- Created LocationPicker component with country dropdown and city/state autocomplete search
- Integrated LocationPicker into PostJobPage
- Updated contract type options in job form (Permanent, Contract, Training, Temporary, Voluntary)
- Added locationsApi with search functionality to api.ts