#003 New Items display after last item on first page #3

Closed
opened 2026-08-08 18:29:01 -05:00 by BigPappa · 1 comment
Owner

🐛 Problem

When viewing a category containing items across multiple pages, new unassigned items are being placed on the first page immediately after the last assigned item on that page.

Unassigned items should instead begin on the last page containing assigned items, immediately after the last assigned item on that page.

🔎 Observed Behavior

For example:

  • Page 1 contains assigned items in slots 9 and 18.
  • Page 2 contains assigned items in slots 18 and 20.
  • Unassigned items are then displayed beginning at slot 19 on Page 1.
  • Additional unassigned items continue filling the remaining available slots on Page 1.
  • Unassigned items also continue onto Page 2 beginning at slot 21.

The unassigned items are not duplicated between pages, but they are being distributed across every page containing assigned items.

🎯 Expected Behavior

Unassigned items should remain together with the assigned items until the last page containing assigned items.

Using the example above:

  • Page 1: Assigned items only.
  • Page 2: Assigned items remain in their assigned slots, with unassigned items beginning immediately after the last assigned slot.
  • Page 3+: Remaining unassigned items continue from the beginning of the available item slots.

This keeps unassigned items together and prevents them from appearing on earlier pages unnecessarily.


🧪 Investigation Checklist

  • Verify bug.
  • Locate bug.
  • Fix bug.

🔧 Resolution Checklist

  • Update item pagination logic.
  • Verify assigned items remain in their existing slots.
  • Verify unassigned items begin after the last assigned item on the final assigned page.
  • Verify remaining unassigned items continue onto subsequent pages without duplication.
  • Test categories with one page of assigned items.
  • Test categories with multiple pages of assigned items.
  • Implement new version and release.
  • Implement new version and release
    • Previous Version: 1.1.0
    • New Version: 1.2.0

📌 Status

Confirmed — Investigation in progress.

## 🐛 Problem When viewing a category containing items across multiple pages, **new unassigned items are being placed on the first page immediately after the last assigned item on that page**. Unassigned items should instead begin on the **last page containing assigned items**, immediately after the last assigned item on that page. ### 🔎 Observed Behavior For example: - Page 1 contains assigned items in slots 9 and 18. - Page 2 contains assigned items in slots 18 and 20. - Unassigned items are then displayed beginning at slot 19 on Page 1. - Additional unassigned items continue filling the remaining available slots on Page 1. - Unassigned items also continue onto Page 2 beginning at slot 21. The unassigned items are **not duplicated between pages**, but they are being distributed across every page containing assigned items. ### 🎯 Expected Behavior Unassigned items should remain together with the assigned items until the **last page containing assigned items**. Using the example above: - **Page 1:** Assigned items only. - **Page 2:** Assigned items remain in their assigned slots, with unassigned items beginning immediately after the last assigned slot. - **Page 3+:** Remaining unassigned items continue from the beginning of the available item slots. This keeps unassigned items together and prevents them from appearing on earlier pages unnecessarily. --- ## 🧪 Investigation Checklist - [x] Verify bug. - [x] Locate bug. - [x] Fix bug. --- ## 🔧 Resolution Checklist - [x] Update item pagination logic. - [x] Verify assigned items remain in their existing slots. - [x] Verify unassigned items begin after the last assigned item on the final assigned page. - [x] Verify remaining unassigned items continue onto subsequent pages without duplication. - [x] Test categories with one page of assigned items. - [x] Test categories with multiple pages of assigned items. - [x] Implement new version and release. - [x] Implement new version and release - **Previous Version:** `1.1.0` - **New Version:** `1.2.0` --- ## 📌 Status **Confirmed — Investigation in progress.**
Author
Owner

Resolution

The issue with Unassigned Items appearing on earlier pages has been identified and fixed.

What Was Happening

When a category contained assigned items across multiple pages, the pagination system was determining where to place Unassigned Items independently for each page.

As a result, each page containing assigned items would begin filling its remaining available slots with Unassigned Items immediately after the last assigned slot on that page.

For example:

  • Page 1 had assigned items in slots 9 and 18.
  • Page 2 had assigned items in slots 18 and 20.
  • Unassigned Items therefore began at slot 19 on Page 1.
  • They then continued at slot 21 on Page 2.

The items were not duplicated, but they were being distributed across multiple assigned pages rather than beginning on the final assigned page.

Root Cause

The item pagination logic was calculating the starting position for Unassigned Items on a page-by-page basis.

This caused the pagination system to treat each assigned page as a potential starting point for Unassigned Items instead of determining the final page containing assigned items first.

Fix

The pagination logic has been updated so that:

  • Pages before the final assigned page contain assigned items only.
  • Unassigned Items begin on the final page containing assigned items.
  • Unassigned Items begin immediately after the last assigned slot on that page.
  • Once that page is full, remaining Unassigned Items continue onto subsequent pages beginning at the first available item slot.
  • Unassigned Items are consumed continuously and are not duplicated between pages.
  • Existing assigned item slots remain unchanged.

Verification

The corrected pagination was tested using multiple pages containing assigned items and confirmed that Unassigned Items now begin only on the final assigned page.

The existing behavior for assigned item placement was preserved.

Categories without assigned items continue to display Unassigned Items normally.

Status

Fixed and verified.

The fix is ready for inclusion in the next release.

## Resolution The issue with **Unassigned Items appearing on earlier pages** has been identified and fixed. ### What Was Happening When a category contained assigned items across multiple pages, the pagination system was determining where to place Unassigned Items **independently for each page**. As a result, each page containing assigned items would begin filling its remaining available slots with Unassigned Items immediately after the last assigned slot on that page. For example: - Page 1 had assigned items in slots 9 and 18. - Page 2 had assigned items in slots 18 and 20. - Unassigned Items therefore began at slot 19 on Page 1. - They then continued at slot 21 on Page 2. The items were not duplicated, but they were being distributed across multiple assigned pages rather than beginning on the final assigned page. ### Root Cause The item pagination logic was calculating the starting position for Unassigned Items **on a page-by-page basis**. This caused the pagination system to treat each assigned page as a potential starting point for Unassigned Items instead of determining the **final page containing assigned items** first. ### Fix The pagination logic has been updated so that: - Pages before the final assigned page contain **assigned items only**. - Unassigned Items begin on the **final page containing assigned items**. - Unassigned Items begin immediately after the last assigned slot on that page. - Once that page is full, remaining Unassigned Items continue onto subsequent pages beginning at the first available item slot. - Unassigned Items are consumed continuously and are **not duplicated between pages**. - Existing assigned item slots remain unchanged. ### Verification The corrected pagination was tested using multiple pages containing assigned items and confirmed that Unassigned Items now begin only on the final assigned page. The existing behavior for assigned item placement was preserved. Categories without assigned items continue to display Unassigned Items normally. ### Status **Fixed and verified.** The fix is ready for inclusion in the next release.
BigPappa changed title from New Items display after last item on first page to #003 New Items display after last item on first page 2026-08-12 21:36:42 -05:00
Sign in to join this conversation.