Skip to content

feat: mocked Timeline screen - #6

Merged
danielhe4rt merged 2 commits into
mainfrom
feat/timeline-mockup
Oct 4, 2026
Merged

danielhe4rt merged 2 commits into
mainfrom
feat/timeline-mockup

Conversation

@tecrodrigocastro

Copy link
Copy Markdown
Contributor

Summary

This is a mocked screen — Timeline moves from the "em desenvolvimento" placeholder to a designed mockup, same spirit as the Início mockup from #5. No real API behind it yet; all data lives in Timeline.php as mock arrays, pending the real Timeline API from docs/plans/2026-09-22-api-mobile-jwt.md.

  • 5 mocked posts (mixed CORE/regular authors, some with a code-snippet preview) across 4 categories.
  • Real chip-driven category filtering over the mock data (Tudo/Projetos/Eventos/Mentorias/Geral) — genuinely filters, not decorative — plus an empty state for categories with no posts.
  • Extracted the post card into a shared partial (resources/views/native/partials/post-card.blade.php) and switched Home's featured-post block to use it too, removing the duplication between the two screens.

Test plan

  • php artisan test --compact — 20 passed
  • vendor/bin/pint --dirty — clean
  • php artisan native:validate — passes (pre-existing warnings only)
  • Manual check on iOS simulator (php artisan native:run ios)
  • Manual check on Android emulator (php artisan native:run android)

Pulls the featured-post markup into resources/views/native/partials/post-card.blade.php
so Home and the upcoming Timeline feed render posts identically instead
of duplicating the card.
Timeline is now a designed mockup instead of a "coming soon" screen:
5 mocked posts (mixed CORE/regular authors, some with code snippets)
filterable by category (Tudo/Projetos/Eventos/Mentorias/Geral) via
real chip-driven filtering over the mock data, plus an empty state.
No real API yet — see docs/plans/2026-09-22-api-mobile-jwt.md.
@tecrodrigocastro
tecrodrigocastro requested a review from a team October 4, 2026 13:46
@danielhe4rt
danielhe4rt merged commit 2b66f14 into main Oct 4, 2026
1 check passed
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