Clicking this strip navigates to the Patente screen. XP Total Card - Keep the existing…
- User
Clicking this strip navigates to the Patente screen.
XP Total Card
- Keep the existing "XP TOTAL ACUMULADO 2.450 XP" card
- Add small breakdown below: "Hoje: +85 XP · Esta semana: +225 XP"
PATENTE SCREEN CHANGES
Update rank thresholds to the new calibrated values:
Patente XP Necessário Recruta 0 Soldado 500 Cabo 1.500 3º Sargento 3.500 2º Sargento 6.500 1º Sargento 10.500 Subtenente 15.500 Aspirante 22.000 Tenente 30.000 Capitão 40.000 Major 52.000 Coronel 66.000 General 85.000 Add a NEW section to the Patente screen: "PRÓXIMAS CONQUISTAS"
Below the existing "Conquistas" section, add a preview list of the next 3 upcoming rank promotions with:
- Rank icon (grayed out)
- Rank name
- "Faltam X XP" indicator
- Small text: "Estimativa: X semanas no ritmo atual" (calculated as: (xp_faltando / xp_esta_semana) rounded up)
Add "HISTÓRICO DE PROMOÇÕES" card at the bottom
Simple timeline showing when each rank was achieved (mock data: "Recruta — início" / "Soldado — há 2 semanas"). This gives the user a sense of journey.
PERSONALIZED MISSION MODAL (kept as exception)
- Same modal as before, but ADD a required field "Frequência" (select: Diária / Semanal / De Fase / Única)
- ADD a required field "Tipo" (select: Binária / Quantitativa) — if Quantitativa, show extra field "Unidade" (text, e.g., "km", "reps")
- User-created missions get a small "PERSONALIZADA" tag on the card to differentiate from system missions
PAINEL SCREEN — INTEGRATION
- In the existing "Missão da Semana" card on Dashboard, replace the current custom-mission display with a live view of the 3 most relevant PENDING daily missions of today (auto-selected: incomplete daily missions with highest XP first)
- Each mission on this dashboard card shows: title, progress or checkmark, and the same complete/register interaction as in the Missões screen (so user can complete without navigating)
- Assistant
Let me read the current state of the relevant sections to understand what needs to be updated:
Let me now implement the requested changes. I'll update the type definitions, state management, and the relevant screens.
Let me read more of the file to understand the full scope of changes needed:
Let me read the MissionsScreen and RankScreen sections more carefully to make targeted fixes:
Given the complexity of these changes and the need for a complete refactor of the state management, let me take a more targeted approach. I'll read the full MissionsScreen and RankScreen sections and then make the necessary edits:
Let me fix the Sidebar to use the derived rank function:
Given the extensive changes needed, let me focus on the specific sections requested. Let me first fix the ProfileScreen rank reference, then update the MissionsScreen and RankScreen:
Let me now update the RankScreen to use the derived rank logic and add the new sections:
Let me now update the RankScreen component with the new structure and derived rank logic:
Now let me update the MissionsScreen to use the new mission structure and fix the mission modal: