piker/piker/ui
Tyler Goodlet 583353acb9 ui.order_mode: prioritize mkt-match on `.bs_mktid`
For backends which opt to set the new `BrokerdPosition.bs_mktid` field,
give (matching logic) priority to it such that even if the `.symbol`
field doesn't match the mkt currently focussed on chart, it will
always match on a provider's own internal asset-mapping-id. The original
fallback logic for `.fqme` matching is left as is.

As an example with IB, a qqq.nasdaq.ib txn may have been filled on
a non-primary venue as qqq.directedea.ib, in this case if the mkt is
displayed and focused on chart we want the **entire position info** to
be overlayed by the `OrderMode` UX without discrepancy.

Other refinements,
- improve logging and add a detailed edge-case-comment around the
  `.on_fill()` handler to clarify where if a benign 'error' msg is
  relayed from a backend it will cause the UI to operate as though the
  order **was not-cleared/cancelled** since the `.on_cancel()` handler
  will have likely been called just before, popping the `.dialogs`
  entry. Return `bool` to indicate whether the UI removed-lines
  / added-fill-arrows.
- inverse the `return` branching logic in `.on_cancel()` to reduce
  indent.
- add a very loud `log.error()` in `Status(resp='error')` case-block
  ensuring the console yells about the order being cancelled, also
  a todo for the weird msg-field recursion nonsense..
2026-01-01 17:37:36 -05:00
..
kivy Port kivy monitor to new tractor stream api 2021-04-29 09:10:11 -04:00
quantdom Drop quantdum legend item 2021-05-24 12:23:02 -04:00
__init__.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_anchors.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_annotate.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_app.py Adjust to `trio`'s strict eg nurseries throughout! 2026-01-01 16:00:01 -05:00
_axes.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_chart.py Adjust to `trio`'s strict eg nurseries throughout! 2026-01-01 16:00:01 -05:00
_cursor.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_curve.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_dataviz.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_display.py Adjust to `trio`'s strict eg nurseries throughout! 2026-01-01 16:00:01 -05:00
_editors.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_event.py Adjust to `trio`'s strict eg nurseries throughout! 2026-01-01 16:00:01 -05:00
_exec.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_feedstatus.py Adjust feed status fields/display-pane to new actor-ID 2026-01-01 16:00:01 -05:00
_forms.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_fsp.py Adjust to `trio`'s strict eg nurseries throughout! 2026-01-01 16:00:01 -05:00
_icons.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_interaction.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_l1.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_label.py Adjust feed status fields/display-pane to new actor-ID 2026-01-01 16:00:01 -05:00
_lines.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_notify.py ARRG, disable `dunst` notifications for now in order mode 2023-05-09 14:49:26 -04:00
_ohlc.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_orm.py Adjust `.ui` modules to new set-style "optional" annots 2023-03-10 18:20:22 -05:00
_overlay.py Facepalm, align overlay plot view exactly to parent 2023-03-10 18:20:22 -05:00
_pg_overrides.py Fix `._pg_overrides` import cycle caused by our `Axis` override 2023-12-22 12:05:18 -05:00
_position.py Use a `unit_prefix: str` (like u or $) on health bar 2024-05-01 14:09:39 -04:00
_remote_ctl.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_render.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
_search.py `.ui._search`: collapse EGs as needed, use `tn` naming. 2026-01-01 17:26:26 -05:00
_signalling.py Change over the UI layer to use `MktPair` 2023-05-24 15:30:17 -04:00
_style.py Add a couple new grays to the pallete 2026-01-01 15:55:18 -05:00
_window.py Port all `.ui*` submods to new `.ui.qt` imports 2024-05-01 14:33:10 -04:00
cli.py A working remote annotations controller B) 2023-12-22 15:19:20 -05:00
order_mode.py ui.order_mode: prioritize mkt-match on `.bs_mktid` 2026-01-01 17:37:36 -05:00
qt.py Add `piker.ui.qt` as a `PyQt6` shim module 2024-05-01 14:30:18 -04:00
view_mode.py Adjust all `.tsp` imports to use new sub-pkg 2023-12-18 11:54:28 -05:00