Skip to content

feat: Add expandable animated Batch Journey Timeline with metadata view#82

Merged
Nitya-003 merged 2 commits intoNitya-003:mainfrom
navin-oss:feat/expandable-timeline-371270540463329638
Feb 13, 2026
Merged

feat: Add expandable animated Batch Journey Timeline with metadata view#82
Nitya-003 merged 2 commits intoNitya-003:mainfrom
navin-oss:feat/expandable-timeline-371270540463329638

Conversation

@navin-oss
Copy link
Contributor

📌 Overview

This PR enhances the Batch Journey Timeline by introducing expandable step micro-interactions. Each timeline step can now expand inline to reveal detailed metadata, including:

  • Timestamp
  • Actor
  • Location
  • Certifications
  • Notes (if available)

The implementation uses TailwindCSS for consistent styling and framer-motion for smooth expand/collapse animations. The timeline has also been modularized for better maintainability, reusability, and scalability.

Additionally, minor runtime issues in main.tsx and Header.tsx were fixed to ensure proper app initialization.


🛠️ Type of Change

  • ⛓️ Smart Contract
  • 💻 Frontend (UI/UX, React components, Tailwind)
  • ⚙️ Backend
  • 📄 Documentation
  • 🧪 Testing

🔗 Related Issue

Closes #73


✨ Key Changes

  • Refactored Timeline into modular components:

    • Timeline.tsx
    • TimelineStep.tsx
    • TimelineStepDetails.tsx
    • types.ts
  • Added expandable inline metadata section per step

  • Implemented smooth animations using AnimatePresence and motion

  • Added arrow rotation micro-interaction

  • Preserved full mobile responsiveness

  • Integrated Timeline into:

    • TrackBatch.tsx
    • UpdateBatch.tsx
  • Removed deprecated legacy Timeline file


🧪 Testing & Verification

  • Verified expand/collapse behavior
  • Verified smooth animation (no layout shift)
  • Tested mobile responsiveness
  • Verified metadata rendering (timestamp, actor, location, certifications)
  • Ensured no runtime errors

📸 Screenshots / Demos

  • Collapsed state
  • Expanded state
  • Mobile responsiveness view

(Attached in PR)


✅ PR Checklist

  • Code follows the project’s style guidelines
  • Components are modular and reusable
  • No console warnings
  • No breaking changes
  • Clean commit history

💬 Additional Notes

  • Timeline animations use staggered fade-in for improved visual flow
  • Expandable sections use height-based animation for smoother UX
  • Inline expansion chosen over popovers to improve mobile usability

Co-authored-by: navin-oss <181780004+navin-oss@users.noreply.github.com>
@netlify
Copy link

netlify bot commented Feb 13, 2026

Deploy Preview for roaring-ganache-c7465f failed. Why did it fail? →

Name Link
🔨 Latest commit 4705c3b
🔍 Latest deploy log https://app.netlify.com/projects/roaring-ganache-c7465f/deploys/698f3c12440f880008d98ea6

Copy link
Owner

@Nitya-003 Nitya-003 left a comment

Choose a reason for hiding this comment

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

@navin-oss This has conflicts. Check:

Image

Copy link
Owner

@Nitya-003 Nitya-003 left a comment

Choose a reason for hiding this comment

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

@thank you for solving the conflicts.

@navin-oss
Copy link
Contributor Author

Thank you for the review and for assigning this to me.

@Nitya-003 Nitya-003 added enhancement New feature or request apertre3.0 Medium labels Feb 13, 2026
@Nitya-003 Nitya-003 merged commit 82e7e48 into Nitya-003:main Feb 13, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add “view details” micro-interactions to batch journey timeline

2 participants