Spyglass and Red Flag feature
complete
Amrayu78
Check email for Canva link.
Admins and Editors need a way to check download and creation logs for users.
The current implementation in Downloads needs to be enhanced so admins and editors can have a overall view of any given user.
I suggest we move the admin downloads feature to a new tab titled "Spyglass"
What we need to see:
- Downloads (subtitles, pirate's booty)
- Content created (dramas, movies, series, SPs, groups, people, lists, oshi shrines)
- Profile details
New feature:
- Red flags
- Incident logging
Check Canva link for more details.
Amrayu78
marked this post as
complete
Amrayu78
Max Romanchenko Not sure what happened to the other canny link. so recreating again.
Max Romanchenko
Amrayu78
Thank you for the new feature. I have reviewed the details carefully and would like to clarify a couple of points:
- When creating a new incident, may I apply the same approach to the gallery as we currently use for episodes? Specifically, I am referring to the way photo captions are displayed within the modal window of the media uploader (please refer to the screenshot). This method allows for optimized and unified storage of both photos and their captions.
- I am planning to integrate the Red Flag section directly under the invite details, rather than keeping it as a separate tab in te admin panel. I would also like to remove the promotional tab that is linked to the AISEO plugin, as it is not available during user creation and does not appear to serve a functional purpose in that context.
Does that make sense?
Amrayu78
Max Romanchenko
- Yes, you can use it the same way as photo captions.
- That is fine too. You can remove AISEO plugin tab and put the red flag section on the same page.
Max Romanchenko
Amrayu78
Thank you! I'm working on a new feature.
Max Romanchenko
Amrayu78
All done. Please check it when you have a chance.
Amrayu78
Max Romanchenko Thanks, it looks great! I found some minor issues.
- Text box doesn't keep the breaks in the text box.
- Attachments don't open up in gallery view, so I can't see the notes/captions.
- I'm guessing we'll have to convert the box to WYSIWYG? because it would be nice if links were linked; it's plain text now.
- Would it be hard to add edit functionality in the front-end display? I'm just foreseeing others like Editors/Authors being able to add to this also.
Max Romanchenko
Amrayu78
I 've made the changes, please test again.
_____________
Text box doesn't keep the breaks in the text box.
–– I've fixed it.
_____________________________________________
Attachments don't open up in gallery view, so I can't see the notes/captions.
–– My fault, I forgot to do that. It's been fixed now.
_____________________________________________
I'm guessing we'll have to convert the box to WYSIWYG? because it would be nice if links were linked; it's plain text now.
–– I 've implemented support for links in the textarea. The WYSIWYG editor has bugs when there are multiple editors on a page. In addition, users can copy extra HTML garbage when pasting into the editor, so I recommend leaving the textarea as it is, since it now supports line breaks and links.
_____________________________________________
Would it be hard to add edit functionality in the front-end display? I'm just foreseeing others like Editors/Authors being able to add to this also.
–– This task is also solvable. I 've added the functionality to add/remove/edit flags for the frontend. Please check it out.
This is not inline editing, but the current method is also good and uses the same methods as in the admin panel, which makes support easier and safer.
__________
The functionality of the spyglass page is available only to administrators and editors.
Amrayu78
Max Romanchenko Please check the attachments for feedback. I've blocked out some info in one image for privacy reasons.
Max Romanchenko
Amrayu78
I 've made some enhancements that will ensure a smoother experience and a unified UI for all forms.
After saving the flag form, the form will redirect back, so there is no need to clutter the interface with additional buttons.
The Add button should be at the bottom, as on all other forms; this is a unified solution. But this is reasonable -after all, sometimes when the button is above the elements being created, the new items are out of the user's field of view.
Please check these improvements.
Amrayu78
Max Romanchenko This looks great! and is more inline with the rest of the forms. Thanks for taking the time to do this. I think we're good to go.
Amrayu78
Max Romanchenko I found one minor issue related to attachments. I'm trying to attach a zip file and seeing this in the gallery.
Amrayu78
Max Romanchenko There's also one critical element that I forgot to include in this.
For the "Search users" search bar, can we have options to search by the following?
Options:
email, username, credential
For credential, this may be a bit messy, but usually the username is at the end of the credential like this:
Max Romanchenko
Amrayu78
I made the necessary changes so that the slider supports not only images, but also added an icon and a download button. I also changed the label in the form:
from "Add or Upload Images"
to "Add or Upload Files".
Please check it.
Max Romanchenko
Amrayu78
I've added email and username search - it's live now, please check it out. Email search is available for admins and editors only.
Regarding the credential search I'd advise against it...
Searching through user meta and extracting usernames from urls like "twitter.com/username" using pattern matching would be really slow and database-heavy, especially as user base grows. If this is important for you I can figure something out, but I felt it was necessary to warn you about the performance implications. Also, could you clarify how you'd want this to work - should it search by the full URL or just by the username part at the end?
Let me know what you think after testing the current implementation.
Amrayu78
Max Romanchenko thanks for the improvements and fixes.
for the credential, I'd say that this pretty important since our current way is using an outdated Google sheet with thousands of rows (i've attached it to this post). We used to log everything on a Google sheet, but it quickly got out of hand. My goal is to move these activities over to the website since the data there is the most current.
If you think it'll cause too much of a load, is it possible for us to export the data into csv on demand so we can search it via Google sheets?
Amrayu78
Max Romanchenko Just thinking outloud, but for the credential, is it possible for us to migrate this data to an existing field that is "searchable" like the user "website" field that's a part of Wordpress?
Amrayu78
Max Romanchenko for email search, is it possible to show it in the results? Otherwise a user will wonder why this username is showing up since it doesn't match.
Max Romanchenko
Amrayu78 Thanks for the details. I vote for having all the data in one place - the website is perfect for this.
Periodic export is not a problem, but I think this step is unnecessary and could potentially expose user lists, since file protection is not an easy task.
Therefore, I believe everything should be done in the website interface.
Max Romanchenko
Amrayu78
ust thinking outloud, but for the credential, is it possible for us to migrate this data to an existing field that is "searchable" like the user "website" field that's a part of Wordpress?
_____________________
– That's a great idea. But this field is used in several places and for different purposes (as far as I understand). If you can confirm whether it is possible to combine everything into one field (website), that would be an excellent solution.
Amrayu78
Max Romanchenko We have several other fields that can be repurposed. Like AIM or Yahoo IM. People do not use these services anymore. So we can repurpose these fields. What do you think?
Max Romanchenko
Amrayu78
I've implemented the credential search using our do_set_credential meta field , it’s now optimized to run in a maximum of 3 sql queries, with preloaded credential data for performance.
It also extracts the username part (like @username) from URLs automatically. This approach is much faster and cleaner than repurposing AIM/Yahoo IM fields and will remain future-proof.
Please check the updated search by email and credentials.
Amrayu78
Max Romanchenko I just tested this and it works great! Thank you so much for this.