166 ajustar lista de ramal - #167
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Uh oh!
There was an error while loading. Please reload this page.
Caution Review failedThe pull request is closed. WalkthroughInitial database migration adds comprehensive public schema with enums, tables, indexes, and FKs. Prisma schema renames CustomExtension to custom_extension, adds new user fields, and maps to custom_extensions. UI and API updated to use new model and snake_case TRPC procedures, extend ramal fields, and add Excel export on the extensions page. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User
participant FE as Extensions Page (FE)
participant API as TRPC user router
participant DB as Prisma/DB
rect rgba(200,230,255,0.3)
note right of FE: Load data
U->>FE: Open extensions
FE->>API: listExtensions(), listcustom_extensions()
API->>DB: users.select(nameExtension,setorExtension,extension,emailExtension)
API->>DB: custom_extension.findMany()
DB-->>API: Results
API-->>FE: Merged datasets
end
rect rgba(230,255,230,0.4)
note right of FE: Edit user ramal
U->>FE: Save changes (extension, email/name/setor)
FE->>API: updateExtension({ extension, emailExtension, nameExtension, setorExtension })
API->>DB: user.update(...)
DB-->>API: Updated user
API-->>FE: OK
FE->>API: refetch listExtensions + listcustom_extensions
end
rect rgba(255,240,200,0.4)
note right of FE: Manage manual contact
U->>FE: Create/Update/Delete manual ramal
FE->>API: create/update/deletecustom_extension(...)
API->>DB: custom_extension.create/update/delete
DB-->>API: Result
API-->>FE: OK
FE->>API: refetch both lists
end
rect rgba(245,245,255,0.5)
note right of FE: Export
U->>FE: Click Exportar Excel
FE->>FE: Build workbook (Setor, Nome, Ramal, Email)
FE-->>U: Download .xlsx
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Bug Fixes
Chores