"My cards" section

未关闭
#8,655 4 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript
领域
api, database, frontend

调研方向

Start by reading the existing /upcoming implementation and how it uses the /boards and /boards/{id}/stacks REST endpoints; the issue names no source files or tests. The requested work spans several views, drag-and-drop interactions, and private per-user storage, with API gaps also identified. Done means the described cross-board views and private sorting behavior are available without changing shared cards or boards.

由索引模型根据 Issue 内容生成。

描述

0. Needs triage enhancement
How to use GitHub

Is your feature request related to a problem? Please describe.

There is no cross-board view of "my cards" that I can sort myself. Deck offers:

  • the per-board filter "assigned to me", which stops at the board boundary;
  • /upcoming, which spans boards but is strictly grouped by due date – useless for cards without a due date and for any priority that isn't a date;
  • global search (assigned:me), which is a flat, unsortable result list.

In a team with 10+ boards, every member keeps a mental list of "what is actually mine right now, and in which order". Labels can't fill the gap: they are per board, shared with everyone and have team semantics; a personal "Fokus / Später" ordering doesn't belong on a shared board.

Describe the solution you'd like

Extend /upcoming into a "My cards" section with several views of the same data set (all open cards assigned to me, across all boards I can access):

  1. Upcoming – today's view, unchanged.
  2. Boards – one column per board, cards in their list/position order, list names as sub-headers; column order of the boards user-sortable by drag & drop.
  3. My sorting – user-defined columns ("buckets"), name and colour per column, plus a trailing "Unsorted" column holding everything not placed yet; cards moved between columns by drag & drop; the whole thing is private per user and does not touch the card (no label, no list move, nothing visible to others).
  4. Recent – two columns: latest comments on my cards (from the Activity feed, with author, time and text) and my cards by lastModified.

Storage for 2 and 3 is tiny per-user data: board order, bucket list (id, name, colour, card ids), unsorted-column name/colour/position – a user config value or a small table. Opening a card from any view should open the regular card details, as /upcoming already does.

Describe alternatives you've considered

  • Labels like agenda:fokus as pseudo-priorities: per board, visible to the whole team, and overlapping with real label usage. Rejected.
  • Moving cards to a personal board: breaks the shared boards, cards can only live on one board.
  • Due dates as the only ordering: /upcoming already does this; it's the thing that doesn't fit.

Because none of these work, I built the views above as a standalone page against the current REST API (/boards, /boards/{id}/stacks, the Activity OCS API, plus a per-user JSON file on WebDAV for the private sorting). The API was sufficient; the only gaps were:

  • no "cards assigned to me across boards" endpoint – the page has to fetch every board's stacks and filter assignedUsers client-side (one request per board);
  • comments are only reachable per card or via the Activity feed, not per user.

Happy to share the implementation (plain HTML/JS, mirrors Deck's card/stack markup) as a reference for the UI and the drag & drop behaviour if that helps.

Additional context

  • Nextcloud 34, Deck 1.18 (stable34).
  • Related: #6489 asks for the same thing in short form; this issue is the detailed version (concrete views, storage, API gaps) and could supersede it.
主要语言
JavaScript
星标
1.4k
派生
380
平均合并
1 天 17 小时
30 天内合并 PR
72

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/deck 的其他 Issue

查看 nextcloud/deck 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。