-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Implement the Admin Version of the FAQs page #1305
Comments
@entrotech
|
Implementing the Answer editing: For this, some of the existing answers have HTML tags in them, like links, As long a s we do that, we may as well implement other formatting elements like ordered and unordered lists, bold text, paragraphs, etc. to do this, I had to modify the design to give the user an "HTML Editor" to use when they choose to edit an answer. This is mostly working at this point. However, when you are in edit mode and click on a Category Name, Question or Answer to begin editing, it should automatically give focus to the field you want to edit, but I have not implemented that yet, and choose to defer fixing that unless/until the team agrees that the overall concept has a good user experience. Implementing drag-n-drop has been very challenging. There are several libraries available to implement drag-n-drop, and I spent about two days of work trying to use dnd-kit, only to find that once I got it working, the draggable parts (i.e. the panels for editing FAQs or Categories could not respond to mouse clicks of keyboard actions. So I had to search for another library to use, and settled on react-beautiful-dnd, which took about 2 days of work to get working. This was pretty challenging because there was an egghead course on how to use it, but their examples were written with class-based react components (vs functional components we use), which made the handling of react refs quite different than what we need. I did find a poorly-written, but still helpful article that helped me adapt the egghead example to functional components. At this point, both the editing and drag-n-drop are working pretty well, so the remaining parts are:
I think the ETA can be in about a week, at which point, I can merge it to the development environment for @jamie and the other designers and PMs to review. My main concern is that it might be cumbersome to do all that editing before saving all the changes at once. It also might be confusing to have the confirmation dialog when deleting a FAQ, since the user might think that they are actually deleting the question immediately instead of the deletion only happening when the user later presses the "Save Edits" button. |
FYI wrong @jamie |
@shanesween The partial implementation is on the branch 1305-faq-admin-take-3. Here is a video I made trying to explain what is working as of where I left off with this branch: https://drive.google.com/drive/folders/1vtfW9FallzfHmC8t4wPbVHjNC1azwqJy |
@shanesween Please provide an update. Progress: "What is the current status of your project? What have you completed and what is left to do?" |
Progress
Blockers
Availability
Screen.Recording.2023-06-14.at.6.51.28.PM.movScreen.Recording.2023-06-14.at.6.52.43.PM.mov |
NOTE: A Pull Request has been created for the following changes:
Developer will be reviewing these changes with @entrotech over the coming week. Additionally, there is some work left to handle styling of the rich text editor for the Developer will take an additional 2 weeks to finalize |
8/9 Update: Continuing develop to match designs shown here: #76 (comment) This includes the following changes:
Anticipated work hours remaining for the above: 4 hours. |
@shanesween- will this be ready in time for the next meeting with the stakeholders on the 22nd? |
@Biuwa This can definitely be completed before 8/22. I hope to be completed by next stand-up meeting on 8/16. |
|
Noted fixes since last demo on 8/2/23:
Changes are pushed to #1397 |
DESIGN CALLOUTS as of 8/16/23 Design Callouts to mention on preview:
|
Hi team, @shanesween @entrotech 1.) Importance: low I think "expand all" and "collapse all" should either be grayed out or one or the other should disappear when everything is already expanded or collapsed. When there is 1+ thing expanded then we could have both "expand all" and "collapse all" show. For example, when we first open up the FAQ page everything is already collapsed. So shouldn't we just have "expand all" until something is opened? 2.) Importance: mid I think the icon on the "edit FAQ page" button should probably be a pencil, not the save icon. That could be confusing because people will see that icon and automatically think it is saving. 3.) Importance: low When I'm not in edit mode, the green box around the question is a little bit too close to the text. Can we add a more space here? 4.) Importance: mid/high When hovering over questions in edit mode, the trash can also simultaneously appears on the category. This looks confusing and might scare people into thinking they are deleting two things at once. Just need the trash can to appear only on the line that is being hovered over. 5.) Importance: high I did not get a warning box pop up when I deleted a question. Is this feature still being worked on? 6.) Importance: mid/high The editing feature works great. My question is can we make an underline appear on hover like in the prototype? I think the underline indicates to the user that they can click on the text and edit it. Otherwise, it might not be intuitive enough for them to know they can directly click on the text to edit. See example below where the user will hover, then click and the box appears. Thank you again! Please let me know if you have any questions or if there are certain things that would not be feasible. |
Submitted PR #1439 that fixes 2, 3, 4, and 6 of #1305 (comment). I will be merging this PR tonight after running some tests. 1, 5 is currently in process and will have those done by next week. |
Response to @jamiedesignedit Note 1
Response to @jamiedesignedit Note 21.) The expand collapse all disabling based on the expanded state of the FAQ is not completed. This would definitely cost a day's (4 ish hours) worth of development cycle and testing. I can implement this if we feel this is a must-have @Biuwa @bonniewolfe @entrotech @jamiedesignedit
|
Response to John comments on #76
cc: @entrotech @bonniewolfe @Biuwa
|
Updates based on stakeholder feedback mentioned in #1311 (comment) Items that have been resolved:
Items that are still in progress:
cc: @Biuwa @entrotech |
The Save Confirmation Modal has now been merged to 'develop' branch as of #1463 |
Reference for the destructive/warning modal: You can find it in Figma here |
I can also create a version that is specific to this issue - I just need a screenshot of the original (based on what I saw - there might not be a need for some of the extra titling/text types) |
As can be seen in the above PR^, I have added a patch that will fix the link issue seen when editing an answer. @Biuwa @entrotech please test and let me know if this now works as you would expect. In addition, I went through and tested the tools we have enabled in the text editor and removed ones that are not working in our current dev structure. Currently, we utilize two different components for an answer when it is being edited (rich text editor) and when not being edited (a simple HTML text element). If we want the below tools to work, we would have to re-consider the current implementation. IMO, to complete this MVP version of this feature, we should not seek to add these tools back. The tools removed are below:
|
@Noushie that would be nice. |
@Noushie I went ahead and used the same formatting and styling used in the Delete Projects Dialog modal. @Biuwa @entrotech The link editor is now working, as is the updated styling for the Save and Delete dialogs. Please test and let me know if there are any other changes you would like to see prior to stakeholder meeting. |
@shanesween please remember to leave a comment we could use in the meeting with Bonnie |
@shanesween following our meeting with Bonnie yesterday, the checklist will remain a pop-up that users can access on other pages as it is presently, but the HMTL checklist on the FAQ page will link to a checklist page. This will be tracked with #1478 |
@Biuwa @bonniewolfe @entrotech - Sounds good, are we OK to close this ticket then? |
@shanesween If the stakeholders approve it tomorrow with no changes in feedback |
Dependency
Overview
Action Items
Resources/Instructions
The text was updated successfully, but these errors were encountered: