Skip to content

[P29] [Team Management] Apply training preset to selected players #29

Description

@MostDef2000

Problem

On https://slf.fm/train.php, SLF already shows a reference table SLF Training Profiles v1 with role-based training profile levels.

User wants to use this table as an actionable preset source for selected players in the personal/team training table.

Current page context from screenshot:

  • Page: https://slf.fm/train.php
  • Area: Personal training / training table
  • Players are selected with checkboxes in the table rows.
  • There is an existing reference panel: SLF Training Profiles v1
  • The panel contains role rows and two preset columns:
    • normal
    • top

Required behavior

Add a way to apply a selected training preset to all currently selected players.

Expected user flow:

  1. User opens https://slf.fm/train.php.
  2. User selects one or more players using row checkboxes.
  3. User chooses a preset from SLF Training Profiles v1.
  4. SLF applies the selected preset values to the selected players' training fields.

Initial UX idea

Acceptable implementation options:

  • Add action buttons to the SLF Training Profiles v1 table, for example:
    • Apply normal
    • Apply top
  • Or add compact controls per role/preset row.
  • Or add a preset selector + Apply to selected button.

Final UX can be chosen by Team Management Agent if it stays simple and clear.

Scope

Responsible agent: Team Management Agent
Branch: team-management
Page: https://slf.fm/train.php
Module area: training profiles / personal training table

Allowed source area:

  • src/modules/team-management/**
  • training-page module files only
  • bundle-order/module-registry only if a new runtime file is truly required

Functional requirements

  • Detect selected players from the training table checkboxes.
  • Read the target preset from SLF Training Profiles v1 data.
  • Apply preset values only to selected players.
  • Do not apply anything if no players are selected; show a clear non-blocking message instead.
  • Preserve existing training table behavior.
  • Preserve the current rule that SLF Training Profiles v1 appears only on /train.php without query string.

Important open questions for implementation discovery

Team Management Agent must inspect the actual DOM and current module behavior before implementation:

  • Which input/select elements store daily training values?
  • Are training values controlled by text inputs, selects, hidden inputs, or JS handlers?
  • Does changing a field require dispatching input / change events?
  • Does the page have native save behavior that must be reused?
  • Are roles directly available from the row, or does SLF need to map displayed player AM/LD/GK etc. to profile rows?

Out of scope

  • Do not change SLF Training Profiles v1 numeric preset values.
  • Do not change training recommendation business logic.
  • Do not change Team4 transfer logic.
  • Do not change Strategy Data.
  • Do not change Transfer Analyzer.
  • Do not change release artifacts manually.
  • Do not bump version from the module branch.
  • Do not commit tokens/secrets.

Acceptance criteria

  • On /train.php, user can select several players by checkbox and apply a preset.
  • Applying normal updates only selected players' training fields according to the selected profile.
  • Applying top updates only selected players' training fields according to the selected profile.
  • Unselected players are not changed.
  • If no players are selected, no player fields are changed and a clear message is shown.
  • Existing training page controls remain usable.
  • /train.php?action=team still does not show SLF Training Profiles v1.
  • No release files are changed by the module branch.

Suggested implementation constraints

  • Prefer modifying the existing training reference guide module if feasible.
  • Do not create a separate overlay file unless it is required and wired atomically.
  • If new runtime file is required, bundle-order impact must be explicitly declared in the handoff.
  • Keep the first version simple: selected players + one chosen preset + apply.

PM planning

Complexity: M
Risk: medium
Recommended order: after current training profiles display guard fix is verified
Type: Feature / Team Management
Reason:

  • User-visible productivity improvement on an existing page.
  • Requires DOM integration with live training controls.
  • Needs careful validation so selected/unselected player rows are handled safely.

Required agent flow

  1. Work by contracts/branches/team-management.md.
  2. Perform Branch Freshness Check before implementation.
  3. Inspect current training table DOM and existing SLF Training Profiles v1 module.
  4. Return implementation plan before writing if DOM uncertainty is high.
  5. After implementation, return COPY-READY MESSAGE FOR CORE RELEASE AGENT.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions