Open
Description
Goal
As a strategy admin, I want the source of data for identifying position records to be hidden in the UI to be the position record from the trade-executor state
API payload.
Background
- see Hide flagged strategy positions #812
- see Add "hidden" flag to TradingPosition records that should be hidden in the UI trade-executor#1041
Acceptance criteria
Given: a position that has been flagged as hidden
on the backend (see tradingstrategy-ai/trade-executor#1041):
- For non-admin users
- the position is hidden on the strategy positions table
- the route for the position details returns a
404 Not found
- For admin users
- the position is included on the strategy positions table with a
hidden
badge shown and reduced opacity on the table row to indicate that this position would be hidden for non-admin users - the route for the position details displays the position, with a
hidden
badge
- the position is included on the strategy positions table with a
- The
frontend
strategy config no longer includeshiddenPositions
array (this was a stop-gap solution until we had the proper backend solution)