Feature request: accommodations for event hooks
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
Start by tracing the /update route, its POST body, and the UI's save handling using the existing network traffic described in the issue. Determine how collection and slug data, server reload signals, and HTTP error messages would fit together; done means the route contract and client behavior support these event-hook workflows.
索引モデルが issue の本文から書いたものです。
説明
I'm trying to add some automation & verification to my workflow. Some examples:
- When a post is set to 'published', automatically set the 'published_at' field to the current time
- A post may only be published if required fields are filled in
- When a post is created, store a random nonce so I can pass around unpublished drafts with secret URLs
- Disallow saving a post if it's already published and the slug would change
- Alternatively, create a redirect if I change a post slug
I don't know what Keystatic plans for the long term, but I think right now I could do all of this with just a few small changes:
- Commit to the
/updateroute being a stable API so I can build a middleware that intercepts it - Include the collection name and slug as fields in the
POSTbody to/update - Allow the server to signal that the client needs to reload the post content. Maybe a header?
- Have the UI gracefully handle if the server returns an HTTP error status & error message when saving.
With these changes, my server can intercept post updates and change the content however it needs. Looking at the existing network traffic, this feels fairly non-intrusive, but offers big benefits.
- 主要言語
- TypeScript
- スター
- 2.5k
- フォーク
- 176
- 平均マージ
- 5時間 46分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Thinkmill/keystatic のほかの issue
-
Incorrect Dutch translations: “Save” is translated as “Redden”対応中かも @MilindChatrabhuji が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Typo/Grammar on Website Homepage対応中かも @Punith1117 が 153 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Array field: no visible edit button on rows and no close button in the "Edit item" dialog対応中かも @bacarndiaye が 14 日前に担当しました。 オープン
難易度 3/5 半日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
Feature: post-save "publishing" notice / `onCommit` hook so editors know changes aren't live yetオープン
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
Thinkmill/keystatic の issue をすべて見る
似ている issue
-
Remove unused dependencies対応中かも @alastair-smith が今日担当しました。 オープンchore other
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
alastair-smith/card-games#384 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
code-yeongyu/senpi#5571 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nexu-io/open-design#9262 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
friction
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kentcdodds/kody#4753 ·
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
lingdojo/kana-dojo#33508 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信