Skip to content

Conversation

@rak3rman
Copy link
Member

No description provided.

@rak3rman rak3rman self-assigned this Oct 21, 2025
Copilot AI review requested due to automatic review settings October 21, 2025 05:14
@github-actions
Copy link

Pull Request Smart Comments
Assignee(s): Mark tasks as they are completed. Code Reviewer(s): Ensure all tasks are complete and follow best standards before approving.

  • Assigned at least one (1+) experienced code reviewer and notified them requesting a review
  • Assigned all contributors as assignees
  • Assigned relevant labels that are a subset or related to the parent issue's labels
  • Checked that PR description contains a quick summary of work accomplished and uses issue closing words
  • Checked that completed tasks in related issue(s) are marked accordingly
  • Checked that PR title is descriptive and follows commit message semantics

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces an item status system to replace the binary archived state, and adds location tracking for outfits. The item status enum supports three states: 'available', 'withheld', and 'retired', providing more granular control over item availability. Additionally, outfits can now record location coordinates when created.

Key Changes:

  • Replaced binary isArchived field with a three-state status enum for items
  • Added geolocation capture and storage for outfit creation
  • Removed archive-specific filtering logic in favor of status-based filtering

Reviewed Changes

Copilot reviewed 16 out of 19 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
next/src/lib/types.ts Defines ItemStatus type and constants for the new status system
next/src/lib/hooks/useLocation.ts New hook for requesting and managing geolocation data
next/src/lib/hooks/useItemSearch.ts Removed archiveFilter parameter and simplified filtering logic
next/src/lib/client.ts Updated API client to use updateItemStatus instead of archiveItem
next/src/components/OutfitList.tsx Added location pin icon display for outfits with coordinates
next/src/components/Item.tsx Updated to display status labels instead of archived state
next/src/components/AddOutfitModal.tsx Integrated location capture when creating outfits
next/src/app/(authenticated)/items/page.tsx Updated sorting and context menu to support three item statuses
hono/test/utils/factory/items.ts Added status field to item test factories
hono/src/services/outfits.ts Updated outfit service to handle location fields and status-based filtering
hono/src/services/items.ts Replaced archive endpoint with status update via PUT, updated sorting
hono/src/schema.ts Added itemStatus enum and location fields to database schema
hono/src/drizzle/0007_concerned_nitro.sql Migration script for status enum and location columns
Files not reviewed (2)
  • hono/package-lock.json: Language not supported
  • next/package-lock.json: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

rak3rman and others added 4 commits October 20, 2025 22:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…calplatforms/shafa into radison/item-status-outfit-location
@rak3rman rak3rman merged commit d9af3f3 into main Oct 21, 2025
5 checks passed
@rak3rman rak3rman deleted the radison/item-status-outfit-location branch October 21, 2025 05:31
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