Skip to content

🐛 Opening the activity log from a graph loses the graphed entity's scope #14

Description

@iTerminate

On the main screen, all three activity-log actions close the inline graph panel first and
then compute their entity scope from the table/list state, never from what was actually
graphed:

# main.py:939-946 (action_toggle_activity_log; same shape at 969-970 / 1015-1016)
if self.query_one("#detail_panel", EntityDetailPanel).has_class("-visible"):
    self.graph_ctl.close_panel()

if self.current_list_name:
    entity_ids = list(self.entity_lists.get(self.current_list_name, []))

So pressing a while looking at an inline graph shows the log for the whole active list
(or the first 50 entities with no list active) instead of the entity that was graphed —
another instance of "related entities instead of the one trying to view contents for."
i happens to work only when the table cursor still sits on the graphed row.

The fullscreen graph screen (ui/graph/preview_screen.py) already scopes its own a
correctly to its plotted _entity_ids; only the main screen's inline-graph case is wrong.

Fix: when the inline graph panel is open, a/A/i should scope to the graphed
entity (plus any + comparison lines for a), not the current list/table selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions