Skip to content

feat: adicionar histórico de expedições na landing page - #3

Merged
BorniaPedro merged 3 commits into
feat/landing-pagefrom
feat/landing-page-expedition-history
Sep 10, 2026
Merged

BorniaPedro merged 3 commits into
feat/landing-pagefrom
feat/landing-page-expedition-history

Conversation

@BorniaPedro

Copy link
Copy Markdown

O que foi feito

Implementação da seção retrátil de histórico de expedições na landing page, seguindo o protótipo do Figma.

  • Componentes: Criação do ExpeditionHistoryCard (layout em linha com badges de status, local e data).
  • Interatividade: Adição do dropdown/accordion para expandir e recolher os cards do histórico.
  • Assets: Inclusão dos ícones de apoio (calendar, pin e chevron).
  • Dados: Separação de contratos em types.ts e inclusão de dados temporários em expeditions-mock.ts.
  • Layout: Ajuste do ScrollView para navegação fluida.

Copilot AI lite review requested due to automatic review settings September 10, 2026 21:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Address the FAB overlap and missing accordion accessibility state in Home.tsx.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a collapsible expedition-history section to the landing page using typed mock data, reusable cards, and supporting icons.

Changes:

  • Added expedition types and temporary mock data.
  • Implemented expandable history cards with status, date, and location.
  • Updated scrolling layout and supporting icons.
File summaries
File Summary Review notes
src/domain/home/types.ts Defines the expedition model. No final comments.
src/domain/home/Home.tsx Integrates the accordion and scrolling behavior. Moderate (1 vote): increase bottom padding to prevent FAB overlap. Moderate (3 votes): expose the accordion’s accessibility role and expanded state.
src/domain/home/expeditions-mock.ts Provides temporary expedition history data. No final comments.
src/domain/home/components/HistoryExpeditionCard.tsx Renders individual expedition cards. No final comments.
Review details

Suppressed comments (1)

src/domain/home/Home.tsx:193

  • Because the FAB is absolutely positioned with height 56 and bottom 87, the new 96px bottom padding is not enough to keep the end of the expanded history above it. After scrolling to the end, the last card can remain underneath the FAB by 47px, making its lower content difficult to reach. Increase this padding to at least the FAB's occupied height (or derive it from the FAB and safe-area insets).
    paddingBottom: 96,
  • Files reviewed: 4/7 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/domain/home/Home.tsx
Comment on lines +87 to +90
<Pressable
style={styles.historyButton}
onPress={() => setIsHistoryOpen(prev => !prev)}
>
@BorniaPedro
BorniaPedro merged commit e99b93f into feat/landing-page Sep 10, 2026
1 check passed
@BorniaPedro
BorniaPedro deleted the feat/landing-page-expedition-history branch September 15, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants