-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Allow frontend editing of page title fields (#8131) #8132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…#8115) * Fix: Placeholder page getter fails for unpublished pages * Update cms/models/placeholdermodel.py * Update cms/models/placeholdermodel.py
Reviewer's Guide by SourceryThis pull request introduces the ability to edit page title fields directly from the frontend. It adds a new endpoint to retrieve the form fields for editing page titles and modifies the PageAdmin class to specify which fields are editable from the frontend. Sequence diagram for frontend page title editing flowsequenceDiagram
actor User
participant Frontend
participant PageAdmin
participant Database
User->>Frontend: Click edit title
Frontend->>PageAdmin: Request editable fields
PageAdmin-->>Frontend: Return title_frontend_editable_fields
Frontend->>Frontend: Display edit form
User->>Frontend: Edit title fields
Frontend->>PageAdmin: Save changes
PageAdmin->>Database: Update title fields
Database-->>PageAdmin: Confirm update
PageAdmin-->>Frontend: Return success
Frontend-->>User: Show updated page
Class diagram showing updated PageAdmin with frontend editable fieldsclassDiagram
class PageAdmin {
+title_frontend_editable_fields: list
+copy_form: CopyPageForm
+move_form: MovePageForm
+inlines: PERMISSION_ADMIN_INLINES
+has_add_permission(request): bool
}
note for PageAdmin "Added title_frontend_editable_fields
for frontend editing capability"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @fsbraun - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Description
Related resources
Checklist
develop-4
Summary by Sourcery
Bug Fixes: