Commit graph

407 commits

Author SHA1 Message Date
Tiago Yamamoto
afab4e89cd refactor: merge company and job form into single step
- 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
2025-12-26 15:53:15 -03:00
Tiago Yamamoto
249081554d feat: add company profile fields
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
2025-12-26 15:48:13 -03:00
Tiago Yamamoto
cca951ca23 feat: add currency, salary period, and rich text description
Frontend:
- Added currency selector (BRL, USD, EUR, JPY, GBP, CNY, AED, CAD, AUD, CHF)
- Added salary period dropdown (hourly, daily, weekly, monthly, yearly)
- Created RichTextEditor component for job descriptions (Bold, Lists, Alignment)
- Updated confirmation step to display currency symbol and period label

Backend:
- JobService now persists currency in job creation
- Extended currency validation in DTOs

Seeder:
- Already includes currency in job insertion
2025-12-26 15:37:54 -03:00
Tiago Yamamoto
91e4417c95 feat: add working hours and salary negotiable logic
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
2025-12-26 15:29:51 -03:00
Tiago Yamamoto
d6bb579260 feat: add salary options with toggle and candidate proposal
Backend:
- Added migration 030_add_salary_negotiable.sql
- Added SalaryNegotiable field to Job model

Frontend:
- Updated PostJobPage with salary mode toggle (fixed/range)
- Added 'Candidato envia proposta' checkbox to hide salary
- Updated job submission logic and confirmation display
2025-12-26 15:23:22 -03:00
Tiago Yamamoto
fb79e987bb feat: add location selector and contract types
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
2025-12-26 15:18:16 -03:00
Tiago Yamamoto
818edf2575 fix: Resolve type mismatch in settings page credentials fetch 2025-12-26 14:57:32 -03:00
Tiago Yamamoto
e5d0cd483a feat: Implement Dynamic Credentials Management
Backend:
- Added GET /api/v1/system/credentials to list configured services
- Added DELETE /api/v1/system/credentials/{service}
- Updated CredentialsService to support listing without revealing secrets

Frontend:
- Updated Settings page with Tabs
- Added 'Integrations' tab to manage credentials
- Allows Configuring (Update) and Deleting credentials
- Lists status of Appwrite, Stripe, Firebase, etc.
2025-12-26 14:43:35 -03:00
Tiago Yamamoto
7d797aac2b fix: Add graceful handling for unconfigured Appwrite in messages page
When Appwrite is not configured:
- Shows friendly 'Service not configured' message
- Displays icon and helpful description
- Links to dashboard and settings
- Shows technical details in collapsible section
- Prevents client-side crash
2025-12-26 13:15:29 -03:00
Tiago Yamamoto
bf41570cae docs: Update SEEDER-API.md with current scripts and location data 2025-12-26 13:11:53 -03:00
Tiago Yamamoto
24c3eeaf5b fix: Add missing dependencies for backoffice email module
Added:
- @nestjs/typeorm
- typeorm
- handlebars
- nodemailer
- amqplib
- pg
2025-12-26 13:07:37 -03:00
Tiago Yamamoto
90a5f7b2a6 fix: Add /api/v1/auth/register/company route for public job posting
Added route aliases:
- POST /api/v1/auth/register/candidate
- POST /api/v1/auth/register/company

These maintain consistency with the /post-job frontend page
2025-12-26 12:54:37 -03:00
Tiago Yamamoto
db5c0671dc docs: Comprehensive root README.md with business flows, monetization, and all documentation links
- Added business value proposition and monetization models
- Added Mermaid diagrams for user flows
- Added links to all 6 docs files
- Added links to component-level documentation
- Updated architecture diagram with all services
- Added project status summary
2025-12-26 12:51:36 -03:00
Tiago Yamamoto
cb4fd35dc2 docs: Comprehensive FRONTEND.md update with all pages, components, and features 2025-12-26 12:47:53 -03:00
Tiago Yamamoto
32fc42a29c docs: Update all documentation files (API_SECURITY, ROADMAP, TASKS, DEVOPS, DATABASE, API)
- Updated dates to 2024-12-26
- Added new features: Email System, Avatar Upload, Public Job Posting
- Updated security routes and access levels
- Updated infrastructure and secrets documentation
- Marked completed tasks in ROADMAP and TASKS
2025-12-26 12:45:03 -03:00
Tiago Yamamoto
b0378985a4 docs: Comprehensive BACKOFFICE.md update with all modules and integrations 2025-12-26 12:40:04 -03:00
Tiago Yamamoto
6c5b7586c9 docs: Comprehensive BACKEND.md update with all services, endpoints, and integrations 2025-12-26 12:35:13 -03:00
Tiago Yamamoto
867a155423 fix: Add missing appwrite dependency to package.json 2025-12-26 12:31:38 -03:00
Tiago Yamamoto
504c1025a5 debug: Add console logs to homepage to trace job data source 2025-12-26 12:30:16 -03:00
Tiago Yamamoto
06924383bb chore: Remove compiled binary from repo and add to .gitignore 2025-12-26 12:24:44 -03:00
Tiago Yamamoto
841b1d780c feat: Email System, Avatar Upload, Email Templates UI, and Public Job Posting
- Backend: Email producer (LavinMQ), EmailService interface
- Backend: CRUD API for email_templates and email_settings
- Backend: avatar_url field in users table + UpdateMyProfile support
- Backend: StorageService for pre-signed URLs
- NestJS: Email consumer with Nodemailer and Handlebars
- Frontend: Email Templates admin pages (list/edit)
- Frontend: Updated profileApi.uploadAvatar with pre-signed URL flow
- Frontend: New /post-job public page (company registration + job creation wizard)
- Migrations: 027_create_email_system.sql, 028_add_avatar_url_to_users.sql
2025-12-26 12:21:34 -03:00
Tiago Yamamoto
b1639dbcd8 Implement secure Stripe credential management using RSA encryption 2025-12-26 11:03:52 -03:00
Tiago Yamamoto
d771e2a3a9 Hide Companies menu item for non-superadmin users 2025-12-26 10:51:44 -03:00
Tiago Yamamoto
7a1d0417bc Fix ListUsers 500 query error (use tenant_id instead of company_id) 2025-12-26 10:48:11 -03:00
Tiago Yamamoto
722e72cdbd Implement FCM Token Management (DB, Backend, Frontend, Backoffice) 2025-12-26 10:41:50 -03:00
Tiago Yamamoto
03827302e5 Add Stripe controller routes and full Plans CRUD in backoffice 2025-12-26 10:30:10 -03:00
Tiago Yamamoto
ee5a680468 Add missing CRUD routes: Companies GET by ID, Support Tickets 2025-12-26 10:20:38 -03:00
Tiago Yamamoto
d61b4db69a Regenerate Swagger docs with DeleteApplication route 2025-12-26 10:15:31 -03:00
Tiago Yamamoto
f1fc45b5ce Add company edit section to profile page for Admin users 2025-12-26 10:12:56 -03:00
Tiago Yamamoto
d52a83f94b Redirect /profile to /dashboard/profile for dashboard layout 2025-12-26 10:09:41 -03:00
Tiago Yamamoto
78857b7afe Show Backoffice menu only for Superadmin users 2025-12-26 10:08:22 -03:00
Tiago Yamamoto
fb98016afc Refactor RBAC: Admin sees only their company data, Superadmin sees all 2025-12-26 10:05:57 -03:00
Tiago Yamamoto
f9c9293a19 Fix undefined middleware.GetRequestID in backend 2025-12-26 09:58:33 -03:00
Tiago Yamamoto
e0b16e5b29 Fix profile 404/500 and user deletion 403 2025-12-26 09:55:19 -03:00
Tiago Yamamoto
f51a8dd99c fix: resolved user profile 500 error, fixed frontend build types, enhanced logging, increases test coverage 2025-12-26 01:35:34 -03:00
Tiago Yamamoto
3fa875ed98 feat: implemented delete application endpoint and dashboard action 2025-12-26 01:29:31 -03:00
Tiago Yamamoto
7b76b62490 feat(backoffice): implemented edit and delete company functionality 2025-12-26 01:23:01 -03:00
Tiago Yamamoto
43c0719664 feat(users): add company selection and status to create user modal 2025-12-26 01:18:14 -03:00
Tiago Yamamoto
6ab7e357fb fix(users): resolve 403 on update and enable role/status editing 2025-12-26 01:14:18 -03:00
Tiago Yamamoto
3d7612901d feat(seeder): add job tags seeder
- Created seeders/tags.js with area, level, and stack categories
- Area: Engineering, Design, Product, Marketing, Sales, etc.
- Level: Intern, Junior, Mid, Senior, Lead, Staff, Manager, etc.
- Stack: JavaScript, Python, Go, React, Node.js, AWS, Docker, etc.
- 79+ tags in total
2025-12-26 01:04:29 -03:00
Tiago Yamamoto
e47c25fac8 fix(companies): format JSON description in modal
- Added formatDescription helper to parse JSON and display as formatted list
- Shows tagline, stores, employees, motto etc as labeled fields
- Falls back to plain text if not JSON
2025-12-26 01:02:16 -03:00
Tiago Yamamoto
16012b701a fix(companies): remove Slug column from table 2025-12-26 01:01:10 -03:00
Tiago Yamamoto
eae3df7f38 fix(cors): add PATCH to allowed methods
Without PATCH in CORS headers, user update was failing with:
'Method PATCH is not allowed by Access-Control-Allow-Methods'
2025-12-26 00:59:04 -03:00
Tiago Yamamoto
aa97d86d0e feat(jobs): add public job posting page
- Created /register/job page with same layout as company registration
- Split panel design: info panel on left, form on right
- Two-step form: job details, then salary & company selection
- Uses same styling and animations as company registration
2025-12-26 00:54:33 -03:00
Tiago Yamamoto
73967ca52b fix(users): allow superadmin to list all users without tenant restriction
- Modified ListUsers handler to check for admin/superadmin role
- Superadmins can now list all users across tenants
- Added ListUsers method to AdminService
- Added Status field to dto.User

Fixes 403 error when superadmin tries to access /api/v1/users
2025-12-26 00:51:54 -03:00
Tiago Yamamoto
546e253a5f feat(companies): add view modal and fix createdAt field
- Added modal dialog to view company details when clicking eye icon
- Fixed createdAt field name (was created_at, Go returns camelCase)
- Expanded AdminCompany type to include all company fields
- Modal shows: status badges, contact info, description, timestamps
2025-12-26 00:47:04 -03:00
Tiago Yamamoto
f396acfb72 debug: add RBAC logging to RequireRoles middleware 2025-12-26 00:42:55 -03:00
Tiago Yamamoto
01aca8971b fix(auth): include legacy role column in getRoles query
The superadmin role was stored in users.role column but getRoles()
only checked user_roles table. Updated to use UNION query that
combines both sources for backward compatibility.

Fixes 403 Forbidden on /api/v1/users for admin users.
2025-12-25 23:20:22 -03:00
Tiago Yamamoto
14af54ec39 fix(backoffice): upgrade @fastify/cookie to v11 for Fastify 5 compatibility
- Updated @fastify/cookie from ^9.3.1 to ^11.0.0
- Fixes FST_ERR_PLUGIN_VERSION_MISMATCH error
2025-12-25 22:44:49 -03:00
Tiago Yamamoto
cb6afe9583 fix(frontend): enable job delete/update API calls and add logging
- Added update() and delete() methods to jobsApi in api.ts
- Fixed handleDeleteJob to call jobsApi.delete() instead of just local state
- Fixed handleSaveEdit to call jobsApi.update() instead of being commented out
- Added console logging to all CRUD operations for debugging
2025-12-25 22:41:38 -03:00