nhan0504 / CS326

0 stars 1 forks source link

Add LogAddItem and LogDeleteItem components with event handling #61

Closed KhanhLeBigWow closed 1 week ago

KhanhLeBigWow commented 1 week ago

Summary

This PR introduces two new features to the LogViewComponent:

Key Changes:

  1. New Components:

    • LogAddItem.js and LogDeleteItem.js:
      • Implemented modular components for adding and deleting items in the outfit log.
      • Integrated with WardrobeRepositoryService and OutfitRepositoryService for data handling.
      • Utilized event publishing (Events.OutfitUpdated, Events.OutfitDeleted) to communicate changes.
  2. LogViewComponent Adjustments:

    • Subscribed to new events (Events.OutfitUpdated, Events.OutfitDeleted) to refresh the outfit list dynamically.
    • Ensured compatibility with the new components and maintained existing functionality.
  3. Sequence Diagram Updates:

    • Documented the operational flow for LogAddItem and LogDeleteItem using sequence diagrams for better understanding.

How It Works:

Testing:

Notes for Reviewers: