Skip to content

Add per-item target Star Force to the upgrade order - #8

Merged
ejpham merged 6 commits into
mainfrom
feature/target-star-force
Nov 11, 2026
Merged

ejpham merged 6 commits into
mainfrom
feature/target-star-force

Conversation

@ejpham

@ejpham ejpham commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Target stars per item (Star Force tab): leave blank to rank only the next star, or enter a target to rank every star up to it. A later star never ranks above an earlier one, and steps of the same item that sit next to each other in the list show as one row.
  • The target is kept when an item is rescanned or replaced, and ranking stops at the item's star limit.
  • Show filter remembered for each tab and section, across tab switches and reloads.
  • Tidier detail panels: the custom-modes table collapses into a summary row, and the scan buttons moved to the profile panel.
  • Number fields with a maximum snap to it while typing.
  • The recommendation model version is now 8, so saved recommendations are flagged to recompute.
  • Dev only: .claude/launch.json for a local test server.

Testing

  • pytest: 699 passed. node --test tests/js/*.cjs: 34 passed.
  • In the app: Show filters persist and stay independent across Star Force, Potentials and Equipment, including after a reload.

Screenshots

Star Force detail panel

  • Target stars field, with a hint saying which stars get ranked
  • Custom modes fold into a one-line summary with Edit
  • Scan buttons moved to the profile panel
image

Star Force upgrade order

  • Steps toward a target merge into one row (19→22★, "Combines steps 1–3")
image

FD / meso list

  • Each star up to the target ranked separately
image

Eric Joseph Pham and others added 6 commits November 11, 2026 02:07
An item can now carry a target star (starforce_target). When it is set
above the current stars, every star up to the target is priced and ranked,
not just the next one. Leaving it blank keeps the old next-star behaviour.

- Each step gets a row for each plan. A step's rank score is capped at its
  predecessor's, so a later star never outranks the one it depends on.
- A target above the item's limit (the lower of its scanned max stars and
  its level's cap) is saved as that limit. Ranking still clamps a target
  carried over to a replaced item, a reached target does nothing, and the
  target survives rescans and item replacement.
- Steps of one item that sit next to each other in the list are shown as
  one combined row. "Best per item" still shows one row per item: its top
  upgrade plus only the target steps that directly follow it.
- New route POST /equipment/<slot>/starforce-target and a target box on
  the item's Star Force panel, capped at the item's star limit. Text the
  box cannot parse shows an error instead of clearing the target.
- The suggestions model version moves to 7 and now lives in one constant,
  scouter.suggestions.MODEL_VERSION, which the page reads from the profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Collapse the own-modes table into one card whose header row shows the
  current modes with an Edit/Hide toggle. It opens when the switch is
  turned on and starts collapsed when modes are already set.
- Merge the separate "Current Star Force" card into the cost section,
  which is now titled "Star Force", and shorten the custom-modes text.
- Move the per-item scan button next to "Scan equipped gear…" and drop
  the hover hint.
- Show "Edit flame stats" only on the Flame tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One input listener for the whole page lowers any whole-number field
with a max (Star Force target, Hyper Stat levels, flame values, swap
levels and stars, Scouter tiles) to that max as soon as the typed value
goes over it. It runs before each field's own handlers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starts the app on port 5077 so it can run beside the installed app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Send a capped flag instead of step and rank-cap note text, so the page
  no longer matches backend wording to merge steps.
- Move step merging into its own module, separate from filtering.
- Share one helper between the per-item modes and target endpoints.
- Reuse star_limit in ranking and keep a typed target above the limit;
  ranking stops at the limit instead.
- Drop row fields only tests read and bump the model version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each page and section keeps its own choice across tab switches and reloads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ejpham
ejpham merged commit bd13c08 into main Nov 11, 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.

1 participant