-
Notifications
You must be signed in to change notification settings - Fork 2
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
77 - make about editable #172
Conversation
* retrieve about text from api * WIP * escape input * switched to markdown-it * fixed some styles * use toast to show errors * size; reset after Cancel * made height fixed; use break-words * changed modal size * changed Edit button * allow users/operators to read * some UI changes * escape input; allow for creation or updating * use popover to indicate syntax * UI changes * added unauthenticated route * cleanup * changed routes; UI changes * WIP * force equal heights; made break-words work * use labels optionally * WIP * changed .gitignore; seed data * WIP - HTML line breaks missing * fixed several styles * fixed spacing; fonts * use constant height across different screen sizes * labels as props * edited seeding code
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.
Can operators update entries, or is that something only admins can do?
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.
@deepakduggirala I have added the Edit permission for operators as well. Please approve if all else looks good.
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.
I have also added a script to populate the base About text when we release to Prod. This script is not part of the 'seed' script - it is it's own one-time script for populating data upon release - here.
Description
Made the About page's text editable via a markdown editor.
Related Issue(s)
Closes #77
Changes Made
List the main changes made in this PR. Be as specific as possible.
Feature added
Code refactored
Other changes: [describe]
Made the About page editable via a markdown input.
Persists sanititzed HTML. Upon retrieval, convert persisted HTML to markdown, which can then be edited to updated the About.
Added tabs for mobile view, and side-by-side editor/preview for desktop view.
The HTML generated from real-time markdown-to-HTML conversion is also sanitized.
About Page is globally accessible, but can only be modified by admins and operators.
Endpoints in the about route are authenticated, except
/about/latest
.Screenshots (if applicable)
Desktop View
Mobile View
Checklist
Before submitting this PR, please make sure that: