aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pearl-menu.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-23 23:40:27 -0400
committerCraig Jennings <c@cjennings.net>2026-06-23 23:40:27 -0400
commit8869a083c3cc28c20efa63e8932347329b2865f4 (patch)
tree8959775eb2cae28a3418542ab8e2fc235fe465f2 /tests/test-pearl-menu.el
parent92ae9d8b56a9fabadf6ea8beb2163655c7a8ffb8 (diff)
downloadpearl-8869a083c3cc28c20efa63e8932347329b2865f4.tar.gz
pearl-8869a083c3cc28c20efa63e8932347329b2865f4.zip
feat(sources): single-issue source (favorites + open-issue-by-id)
I wired the issue kind into the same pipeline every other source uses, so a favorited issue renders in the buffer as its own subtree instead of the v1 browser punt. The new pearl-open-issue-by-id command does the same for an issue you type by identifier or id. It's handy when someone hands you ENG-123 and you'd rather read it in Pearl than a browser. Linear's issue(id:) accepts both the UUID and the human identifier, so there's no resolution step. I fetch by whatever was given and build the :type issue source from the returned node, so the stored id and identifier stay authoritative. Refresh re-fetches the one issue and merges by LINEAR-ID like the filter and view sources. Tests cover the source constructor, the header round-trip, and the fetch/render and command paths across Normal, Boundary, and Error.
Diffstat (limited to 'tests/test-pearl-menu.el')
-rw-r--r--tests/test-pearl-menu.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-pearl-menu.el b/tests/test-pearl-menu.el
index d939a9e..1795a41 100644
--- a/tests/test-pearl-menu.el
+++ b/tests/test-pearl-menu.el
@@ -79,6 +79,8 @@ menu entry that still points at it fails here."
pearl-set-default-view
;; fetch the full comment thread for the issue at point
pearl-fetch-all-comments
+ ;; single-issue source: open one issue by identifier
+ pearl-open-issue-by-id
;; view-shaping commands added to the Views group
pearl-set-sort
pearl-set-grouping