-
Notifications
You must be signed in to change notification settings - Fork 92
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
Allow editing all onboarding pages #471
Conversation
Discord and Request page are not editable, they are very dynamic. |
The timing! I’ve just turned off my computer as I’m putting in a new cooler but I’ll get to it as soon as I’m done. 😊 |
@albinmedoc I'm back at my PC, did you want this reviewed or are you still working? |
I think I can improve the implementation. |
No worries! Let me know when you need me. |
Now I feel satisfied with the implementation. During setup, the Welcome & Download page is created automatically based on the server type chosen (plex, jellyfin, emby). Discord page is added/hidden automatically when connecting/disconnecting from discord. The same applies to the Request page. If there is at least one request connection, the page is created. When there are no connections, it is hidden. If you change the server type (for example from plex to Jellyfin), the onboarding pages are NOT updated. Welcome & Download page is just a standard markdown string saved to the DB. I have created in the migration that Welcome & Download (for the current server type), Discord, Request pages are created. This makes the onboarding page (/help) look exactly like before. |
@albinmedoc I'll get it tested for you now, whilst I have you... Did you want to look into an issue people are having with the image upload limit? Seems files larger than 1MB cannot be uploaded, no error message or anything. Perhaps we need to increase it on the web service? |
I can take a look |
I have only tested this with Plex and Discord. We must not miss testing this with Jellyfin, Emby and request systems |
Thank you for the feedback. I will mark this as draft again and continue with the work. |
The pre-existing onboarding pages (Welcome & Download) are just plain markdown texts, I can't separate them from others.
I need to look this up further.
Markdown doesn't support buttons. Maybe it is possible to create an extension to the md-editor-v3 library that is used. I know they support extension in some way. I liked the idea to have the buttons hard coded and make the text editable. I will look into this further.
Thats weird, the Discord page should not have been added. I will take a look at this.
Definitely, I will implement it |
Don’t worry about implementing buttons then, unless you see the appeal for them to be used aside from that functionality as we could just have the download page hard coded again and use the toggle system to just allow them to toggle it off and make their own version. |
Yeah, I agree. That sounds like the best option. |
This reverts commit 5bb4059.
feat: 🚀 Make it possible to show/hide onboarding pages
This might be an caching issue. |
I'm happy with this. Please take a look and give comments |
Give me a moment, i'll completely wipe everything and start again as it occured even adding for the first time. |
I don't have a request system, so I haven't tested this. However, according to the error message, it indicates that a row is trying to be inserted into the database, but requests.url is not unique. |
Great! |
Approved :D |
## [4.2.0-beta.3](v4.2.0-beta.2...v4.2.0-beta.3) (2024-08-05) ### New Features * ✨ Allow editing of all onboarding pages ([#471](#471)) ([3d4c06a](3d4c06a)) * 🎉 Add MAX_CONTENT_LENGTH configuration for file uploads ([#473](#473)) ([2edf951](2edf951)) * 🎉 Add swedish translations ([#475](#475)) ([e3b0240](e3b0240)) ### Chores * 🧽 sync develop with beta ([3de4467](3de4467)) ### Code Refactoring * 🛠️ Remove auto PR [skip-ci] ([d57e726](d57e726))
Several people wanted to be able to edit all onboarding pages.
I am working on trying to get this functionality working.