Skip to content

[P25] [Team Management] Restrict Training Profiles block to /train.php only #28

Description

@MostDef2000

Problem

The SLF Training Profiles v1 helper block is currently displayed on:

https://slf.fm/train.php?action=team

This is incorrect.

Required behavior

The SLF Training Profiles v1 block must be displayed only on the final/main training URL:

https://slf.fm/train.php

It must not be displayed on any URL with a query string, including:

/train.php?action=team
/train.php?action=player
/train.php?action=...

Scope

Module: Team Management

Allowed scope:

  • Only the page-detection/render guard for the Training Profiles helper block.

Forbidden:

  • Do not change training profile values.
  • Do not change business logic of training recommendations.
  • Do not touch Transfer Analyzer.
  • Do not touch Strategy Data.
  • Do not modify release artifacts.
  • Do not bump version from the module branch.
  • Do not commit secrets/tokens.

Expected implementation direction

Find the module that renders SLF Training Profiles v1 and require strict URL matching:

const isTrainingMainPage = () => {
  return /\/train\.php$/i.test(location.pathname || '') && !(location.search || '');
};

Equivalent implementation is acceptable if it requires:

  • pathname ends with /train.php;
  • location.search is empty.

Acceptance criteria

  • On https://slf.fm/train.php, the SLF Training Profiles v1 block is displayed.
  • On https://slf.fm/train.php?action=team, the block is not displayed.
  • On any /train.php?action=*, the block is not displayed.
  • Team training page content remains functional.

Required agent flow

Team Management Agent must:

  1. Work by contracts/branches/team-management.md.
  2. Perform Branch Freshness Check before implementation.
  3. Return COPY-READY MESSAGE FOR CORE RELEASE AGENT after implementation.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions