Inbox: several Linear keys, one per workspace, picked by the link's workspace
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 46/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Start from the current single-key path: the handler behind POST /api/inbox/linear/key, the reading of inbox/linear-key / LINEAR_API_KEY, and the hover-card lookup that resolves a linear.app/<workspace>/issue/... link. /api/inbox/linear-refs already returns each key's workspace, so trace how that response feeds the Settings, Accounts, Linear row before adding the list UI. Done means inbox/linear-keys.json (0600) is the store with the old key read as one entry, both request shapes work on the existing endpoint, and cards resolve per workspace slug while unknown workspaces stay plain links. This spans storage, API and settings UI, so read the surrounding Inbox code before editing.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The Inbox takes one Linear API key (Settings, Accounts, Linear; saved in inbox/linear-key, or LINEAR_API_KEY). A Linear personal API key belongs to one workspace, so links to issues in any other workspace get no hover card. #3146 lists this as a known limit: "A link to another workspace's issue gets no card."
People who work in two Linear workspaces (for example a day job and a side project) see cards for one and plain links for the other. The only workaround today is to swap the saved key through POST /api/inbox/linear/key whenever they switch context, which also drops the cards for the workspace they just left.
Request
Let the Inbox hold several Linear keys and pick one per link by the workspace slug in the URL (https://linear.app/<workspace>/issue/ENG-123/...).
- Settings, Accounts, Linear: a list of keys instead of one. When a key is saved, the server already learns its workspace (
/api/inbox/linear-refsreturnsworkspace), so each row can show the workspace name and the key's last 4 characters, with Remove per row. - Cards: for a link to
linear.app/<workspace>/..., use the key whose workspace is<workspace>. A link to a workspace with no key stays a plain link, as now. - Storage: for example
inbox/linear-keys.json({ "<workspace>": "<key>" }, mode 0600), with today'sinbox/linear-keyread as one entry so existing setups keep working. An env form could beLINEAR_API_KEYS=<workspace>=<key>,<workspace>=<key>next toLINEAR_API_KEY. - API:
POST /api/inbox/linear/keycould take{ key }to add or replace the entry for that key's workspace, and{ workspace, key: null }to remove one, so scripts that set keys today keep working. - The issue-ref teams (
/api/inbox/linear-refs) would then cover every workspace with a key.
The same lookup would help plan review and annotate, which got Linear cards in #3783.
Related
- #3120: hover cards for Linear issue links.
- #3146: Linear hover cards and the Linear key in Settings, Accounts.
- #3783: Linear cards in plan review and annotate.
Setup
Plannotator 0.29.2, Linux (Ubuntu), Inbox reached over Tailscale.
- Ngôn ngữ chính
- TypeScript
- Star
- 8.7k
- Fork
- 649
- Merge trung bình
- 16 giờ 1 phút
- Pull request đã merge (30 ngày)
- 756
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của backnotprop/plannotator
-
Inbox: numbered choices in a :::question become free text, and context bullets become the choicesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
backnotprop/plannotator#4132 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Claude Code: "classic.PermissionRequest hook was skipped" notice is back on Bash permission promptsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
backnotprop/plannotator#4051 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
backnotprop/plannotator#4000 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PR description is hidden when a PR review opens on a phoneCó thể đã có người làm @flipcyde101 đã nhận 8 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
backnotprop/plannotator#3667 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
backnotprop/plannotator#2643 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của backnotprop/plannotator
Issue tương tự
-
enhancement UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
online-go/online-go.com#4000 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
SnosMe/awakened-poe-trade#1976 ·
-
[BUG]Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
jonp-h/TillerQuest#319 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
terrazzoapp/terrazzo#902 ·