AI assist admin half: field actions with streaming, and usage (A-38)
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
- 35/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ệ
- csharp
- Lĩnh vực
- ai, api, full-stack, testing
Hướng nghiên cứu
Start with docs/planning/admin-technical-spec.md, sections 5.1, 5.5 and 10.7, then read the A-51 admin stub and the AI plugin endpoints /ai/actions/{action}, /ai/fields and /ai/usage. The issue describes work across the admin form, streaming action panel, usage page, settings and tests, with dependencies on A-51 and A-34. Done means the acceptance criteria pass, including the sample field action, OpenAPI checks and an end-to-end accepted suggestion.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Rows 9.14 and 9.15 ask that an editor runs AI actions on the fields a site opted in, and sees the usage. The AI assist plugin has /ai/actions/{action}, /ai/fields and /ai/usage, and its admin half is the stub of A-51. The form has no place for a field action either: FieldActionBase and [FieldAction] are in the contract and the manifest since A-18, and nothing draws, gates or loads one.
Proposal
The form's side, in FluentCMS.Admin (5.1). A field whose type a field action of an enabled half names gets a menu of those actions, for a caller who holds the action's permission. The half loads when the menu is first opened. An action answers a FieldActionResult that leaves the draft or replaces the field's value as an unsaved change; it never saves or publishes.
The half FluentCMS.Plugins.AiAssist.Admin (5.5):
- The actions (rewrite, shorten, expand, fix grammar, title, summary, SEO, translate) on the fields that
GET /ai/fieldsnames for the site, for a caller who holdsai.use. The suggestion streams into a panel (text/event-stream) and goes into the draft only when the user accepts it. - A refusal before the provider is a problem as any other; one after the stream began is its
errorevent. Both are shown in the panel, and the draft is left as it was. - The daily budget of the site (
FCMS1693, a 429) is shown with the problem's own text, and is not sent again as the client sends another 429 again. - Alt text: the server takes
altTextfor an opted-in text field withoptions.mediaId, so the action is offered on such a field with the images of the entry's media fields to choose from. Alt text of the asset itself waits for #3418. /ai/usage, forai.usage.read: the usage read in pages, with filters by principal, action and time, and the totals of the filter. A principal shows by its id until #3418.- The settings of
aiare the generated page of A-34, with the key as a secret. - The half's records are checked against the OpenAPI document.
Acceptance
- On an opted-in field an editor runs an action, sees the suggestion arrive in parts, accepts it and finds it in the draft as an unsaved change; declined, the draft is unchanged
- A field that is not opted in, a site with AI assist off and a caller without
ai.useshow no action, and the half is not fetched - A refusal before the stream, an error within it and the daily budget each show their reason and leave the draft as it was
- Alt text is suggested for an image of the entry on an opted-in text field
- The usage page lists and filters the usage of the site
- The sample half's field action shows in the form through the same seam
- Component tests cover the menu, the panel and the stream against a fake; the API tests check the records against the OpenAPI document and run an action against a stand-in of the provider; an end-to-end case accepts a suggestion
Design: docs/planning/admin-technical-spec.md, sections 5.1, 5.5 and 10.7 (A-38). Rows 9.14, 9.15. Needs A-51, and A-34 for the settings page; #3101, #3103 and #3104 are merged; #3418 for alt text of an asset and for names in the usage. Size: M.
- Ngôn ngữ chính
- C#
- Star
- 567
- Fork
- 107
- Merge trung bình
- 1 giờ 19 phút
- Pull request đã merge (30 ngày)
- 353
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 fluentcms/FluentCMS
-
area:localization plugin type:bug
Độ 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:storage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:testing type:bug
Độ khó 3/5 1-2 ngày 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
-
area:api area:publishing type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
fluentcms/FluentCMS#3473 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:storage plugin type:bug
Độ khó 5/5 Hơn một tuần 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
Tất cả issue của fluentcms/FluentCMS
Issue tương tự
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeCó thể đã có người làm @Goldziher đã nhận hôm nay. Đang mở
Độ 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
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsĐang mởbug sev-5 vm
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
area:jobads-cv bug FE mvp P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
klasolsson81/jobbliggaren#2271 ·
Maintainer thường phản hồi trong vòng 1 ngày