juanigarciadev.Let's talk
All projects
Grupo Broda

Brodaverso

Internal platform of Grupo Broda: single sign-on that sends each team to its own tools for purchasing, finance, marketing, management control and HR, plus shared modules like tickets and announcements.

Brodaverso is the internal web platform of Grupo Broda and the biggest project I have worked on. It started as a way to give each area of the company its own tool and it grew into a platform: one login, one design language and a set of modules that every team can rely on, instead of spreadsheets, chat messages and loose emails.

One login for the whole company

Employees sign in once with Clerk. Every team is a Clerk organization, and after signing in the home works as a hub: a tile for each module the person can access, such as purchasing, Progresivo Techbox, the gastronomy panel, announcements, tickets, news and management control. All the apps live under subdomains of the same domain and share the same Clerk instance, so the session carries over between them without asking the user to sign in again.

Architecture: independent apps that feel like one

Each area is its own Next.js frontend, deployed independently, with its own backend when it needs one. The platform is deliberately not a monolith:

  • Frontends in Next.js, React and TypeScript, with Tailwind CSS and shadcn-style components.
  • Dedicated APIs in NestJS for the modules that need business logic, and direct Postgres access with plain SQL for the smaller ones.
  • Integrations with the company's Odoo ERP for the data that already lives there.
  • Every module is deployed through our own CI/CD pipeline, with Docker-based setups and deployment guides.
  • Every module validates the Clerk session by itself, so a proxy or redirect never replaces the authorization of the module behind it.

A design system to keep everything consistent

Every app follows the same design system, so they all look and behave alike. It documents color and typography, general layout, the filter and toolbar bar repeated in every module, buttons, menus, tables, modals, loading, error and empty states, feedback, and dark mode, plus a list of consistency rules. A new module starts from that system instead of from a blank page.

Tickets: requests between teams

The first shared module. Tickets replaces requests scattered across chat channels and emails: anyone in the company can ask something of another team, and the team handles it on a Kanban board.

  • One board per team, with fully configurable columns (create, rename, color, reorder and delete) and drag & drop for both tickets and columns.
  • Multiple assignees, priority, due date, team-wide tags with custom colors, and a checklist with a progress bar visible from the card.
  • A single timeline for comments and activity, @mentions, a pinned comment per ticket, and attachments with an internal preview for images and PDFs.
  • Reassign, reject (with a mandatory reason), finish and reactivate, plus search and filters by text, priority, assignee, requester and month.
  • A personal view with everything you created, whatever the team, in a grid or a list. In-app notifications and a documents module with a Notion-style editor complete the module.

Permissions that live on the server

The person who opens a ticket for another team is a requester: they can always follow it and comment, and can edit it only while it is still in the default column. Once the team takes it, it becomes read-only for them, and only the team can manage tags, checklists or close it. If the creator belongs to the destination team, none of those limits apply. All of this is revalidated on the server on every mutation, not just hidden in the interface, and attachments are never exposed through a public storage URL but through an authenticated route.

Announcements for the stores

A bulletin board where marketing, administration and purchasing publish notices with a cover and a rich description, written in a Notion-style block editor, that every FRAT store can read. A new store gets access automatically just by following the naming convention of its organization, with no redeploy.

Technical decisions

How the platform should grow is guided by written decisions:

  • No ORM in the smaller modules: idempotent SQL migrations that are safe to run on every deploy, and a repository pattern that keeps Postgres, Clerk and file storage behind interfaces.
  • Fractional indexing for the order of tickets and columns, so moving a card never forces the whole column to be reindexed.
  • A proposal to share modules between frontends: Web Components for small embedded modules, and rewrites (or a load balancer if it scales) for large modules reachable under the same domain.
  • A permissions model that goes from one organization per app to a set of modules per organization, starting with configuration in code and moving later to the session token.