Skip to content

Show parent-link children in Sub tab on Cloud#66

Merged
textfuel merged 5 commits intotextfuel:mainfrom
seflue:feat/parent-link-children
May 3, 2026
Merged

Show parent-link children in Sub tab on Cloud#66
textfuel merged 5 commits intotextfuel:mainfrom
seflue:feat/parent-link-children

Conversation

@seflue
Copy link
Copy Markdown
Contributor

@seflue seflue commented May 2, 2026

Closes #65

On Cloud, the Sub tab is now sourced from parent = <KEY>
instead of Issue.Subtasks. Epics show their Stories (and any
other parent-link children that don't surface as classic
subtasks). Stories with subtasks render the same as before. DC
is untouched: GetChildren is a no-op there and the tab keeps
reading Issue.Subtasks. The DC equivalent ("Epic Link" = KEY)
is left for a follow-up since I can't test it.

Two changes that ride along:

  • Sub rows now show the issue type. Children can be any type the
    user has configured in their Jira instance (Story, Bug, ...),
    so the bare key isn't enough to tell what you're looking at.
  • The active info tab persists across issue selection. Lets you
    skim through Epics with the Sub tab open to scan their
    children.

Notes:

  • App.childrenEpoch mirrors the existing previewEpoch pattern
    for dropping stale responses on rapid selection.
  • InfoPanel.MaybeChildrenRequest is the gating: fetch only when
    Sub is active and the current key is neither loaded nor errored.
  • Children cached per parent key for the session; child detail is
    prefetched after the list arrives so Enter is instant.

@seflue seflue requested a review from textfuel as a code owner May 2, 2026 11:36
Copy link
Copy Markdown
Owner

@textfuel textfuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!
Cloud/DC split is clean and the test coverage is great.
Left two comments inline. One looks like a real bug worth a test, the other is more of a UX question.
Overall really like the direction

Comment thread pkg/tui/children_test.go
Comment thread pkg/tui/views/infopanel.go
@seflue seflue force-pushed the feat/parent-link-children branch from 9cf729c to 30b8753 Compare May 3, 2026 09:30
seflue added 3 commits May 3, 2026 11:34
The active tab (Info/Lnk/Sub) now persists across issue changes,
so navigating between tickets keeps users on the tab they chose.
Cursor and offset still reset, since they reference issue-specific
positions that no longer apply to the new issue.
The Sub tab now lists children fetched via JQL "parent = KEY"
on Cloud, alongside classic subtasks on Server/DC. Cloud uses
the parent-link model where children are not exposed via
Issue.Subtasks, so the info panel issues a dedicated fetch
when a parent issue is selected.

Responses are tagged with an epoch counter so stale results
from rapid selection changes are dropped, mirroring the
existing preview-debounce mechanism.
@seflue seflue force-pushed the feat/parent-link-children branch from 30b8753 to 4e49738 Compare May 3, 2026 09:35
@seflue seflue force-pushed the feat/parent-link-children branch from 4e49738 to 8348d42 Compare May 3, 2026 09:58
@seflue seflue requested a review from textfuel May 3, 2026 10:09
Copy link
Copy Markdown
Owner

@textfuel textfuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix and the tests, looks good now

@textfuel textfuel merged commit 26afc79 into textfuel:main May 3, 2026
2 checks passed
@seflue seflue deleted the feat/parent-link-children branch May 4, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sub tab is empty for Epics on Cloud

2 participants