feat: implement secure multi-tenancy, RBAC, and premium dark mode
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m54s

- Enforced tenant isolation and Role-Based Access Control across all API routes

- Implemented secure profile avatar upload using multer and UUIDs

- Redesigned UI with a premium "Onyx & Gold" Charcoal dark mode

- Added Funnel Stage and Origin filters to Dashboard and User Detail pages

- Replaced "Referral" with "Indicação" across the platform and database

- Optimized Dockerfile and local environment setup for reliable deployments

- Fixed frontend syntax errors and improved KPI/Chart visualizations
This commit is contained in:
Cauê Faleiros
2026-03-03 17:16:55 -03:00
parent b7e73fce3d
commit 20bdf510fd
32 changed files with 2810 additions and 1140 deletions

View File

@@ -4,9 +4,6 @@ FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json ./
# In a real scenario, copy package-lock.json too
# COPY package-lock.json ./
RUN npm install
COPY . .
@@ -20,18 +17,19 @@ WORKDIR /app
ENV NODE_ENV=production
COPY package.json ./
COPY backend/package.json ./backend/
# Copy backend package.json as main package.json
COPY backend/package.json ./package.json
# Install dependencies (including production deps for backend)
# Install dependencies
RUN npm install --omit=dev
# Copy backend source
COPY backend/ ./backend/
# Copy backend source directly into root
COPY backend/index.js ./index.js
COPY backend/db.js ./db.js
# Copy built frontend from builder stage
# Copy built frontend
COPY --from=builder /app/dist ./dist
EXPOSE 3001
CMD ["node", "backend/index.js"]
CMD ["node", "index.js"]