feat(timeline): save named timeline views per workspace

Đang mở
#401 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
14/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
nextjs, postgresql, react, typescript
Lĩnh vực
databases, frontend, full-stack

Hướng nghiên cứu

Read #377 (option 9) and #119 first, then src/lib/timeline/query.ts to see how timelineHref serialises filters, and src/lib/palette/commands.ts for the existing jump targets. The blocking step is the options table: pick storage shape, RLS policies and permission model, and where views surface. Done means a recorded decision plus a saved view that restores its exact URL filters, with pgTAP coverage for member/nonmember/anonymous and a Playwright save-and-restore test.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: timeline enhancement priority: P3 size: M

Context

Original option 9 of #377 ("Named, shareable views"), deferred by the #377 review. URLs already share a view (timelineHref, src/lib/timeline/query.ts) and the command palette already jumps to a provider or type timeline (src/lib/palette/commands.ts). What is new is saving a named filter set per workspace, such as "Production" or "Payments".

Plan

Not specified yet. Needs a decision on:

  1. Storage: a new table with RLS and policies in the same migration, scoped to workspace, and who may create, rename, and delete a view.
  2. Overlap with the per-member preferences in #119.
  3. Where views appear: timeline header, command palette, or both.

Acceptance criteria

  • Options table on this issue with Eddie's choice recorded, including the overlap with #119.
  • A saved view restores exactly the URL filters it was saved with, and a member of another workspace cannot read its name.

Files and areas

New migration and RLS, src/lib/timeline/query.ts, timeline page, command palette. Non-goal: changing URL sharing.

Verification

pgTAP tests for RLS (member, nonmember, anonymous); Playwright for save and restore.

Model: anthropic/claude-opus-5-5 | Reasoning effort: not exposed by harness

Ngôn ngữ chính
TypeScript
Star
1
Fork
1
Merge trung bình
6 giờ 56 phút
Pull request đã merge (30 ngày)
136

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eddiejaoude/StackDash

Tất cả issue của eddiejaoude/StackDash

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.