Feature request: configurable redirect after creating a collection item
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 70/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
- Lĩnh vực
- frontend
Hướng nghiên cứu
Search the collection-item creation flow for the router.push(${collectionPath}/item/${encodeURIComponent(slug)}) entry point. Trace how collection-level options are defined and passed into that flow, then verify that the existing item redirect remains the default while the new collection option returns to collectionPath. Confirm the behavior by creating an item through both configurations.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When creating a new collection item, Keystatic currently redirects to the newly created item's edit page.
For some editorial workflows, it would be useful to optionally return to the collection list instead.
Example use case:
- editor opens a collection
- clicks "Add"
- fills the form
- clicks "Create"
- item is saved
- editor is returned to the collection list and can immediately add another item
In a real user test, staying on the newly created item's edit page caused confusion: the editor thought the form was ready for the next item and started editing the item that had just been created.
A collection-level option could perhaps look like:
afterCreate: 'item' | 'collection'
with the current behaviour remaining the default.
For my project, changing:
router.push(${collectionPath}/item/${encodeURIComponent(slug)});
to:
router.push(collectionPath);
produces the desired behaviour.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.5k
- Fork
- 176
- Merge trung bình
- 5 giờ 46 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 Thinkmill/keystatic
-
Incorrect Dutch translations: “Save” is translated as “Redden”Có thể đã có người làm @MilindChatrabhuji đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/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 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Typo/Grammar on Website HomepageCó thể đã có người làm @Punith1117 đã nhận 149 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Array field: no visible edit button on rows and no close button in the "Edit item" dialogCó thể đã có người làm @bacarndiaye đã nhận 10 ngày trước. Đang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature: post-save "publishing" notice / `onCommit` hook so editors know changes aren't live yetĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Thinkmill/keystatic
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:web p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Lets-Parley/Parley#912 ·
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 78/100
wealthfolio/wealthfolio#2376 ·
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 82/100
be-BOP-io-SA/be-BOP#2817 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
sno-ai/sno-station#149 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày