-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Improve packages webui #111
Conversation
@mreid-tt this includes a proposal to distinguish active an inactive packages. It is still a static solution and does not add a user filter to include/exclude inactive packages. |
- apply "beta" to package versions instead of packages - use green labels for active packages - use default (gray) label for inactive packages and add tooltip telling the package is inactive - update version date (cut microseconds) - fix unclosed span tag in package.html
- do not hide package in packages when there is no active version (SynoCommunity/spksrc#5803) - remove obsolete TODOs
0a42006
to
fed32c9
Compare
@hgy59, great work! Pulled into my test environment and all the improvements seem to be there as described. 🚀 I've not interrogated the modifications you did to the tests but I will be guided by your validation. |
packages frontend test changes:
package (singular) frontend test changes:
|
I was thinking more about the tests. Is there a way for it to test that the builds that are shown in the package webpage have the active/inactive colours you added? I don't recall seeing that in your new tests. |
29c6fb9
to
b2368a7
Compare
b2368a7
to
0ce2d02
Compare
Hello @hgy59, I encountered a situation while working on the admin side that I believe you can address on the frontend and incorporate into this pull request. The issue arises when a package is created without any versions, and upon manually navigating to the package URL, the server returns an internal server error. I propose the following code modification to handle this scenario: spkrepo/spkrepo/views/frontend.py Line 100 in 0ce2d02
Change to:
|
Hi @hgy59, as another suggestion I would remove the duplicate password reset link on the login page by deleting this line:
|
@hgy59, I'd love to hear your thoughts on my suggestions. Alternatively, if you prefer, I can make the amendments directly through a commit for you. |
- remove duplicate link to recover email - handle invalid navigation to package without versions
- TODOs in `spkrepo/views/admin.py` addressed in #112
@Diaoul, @publicarray, do either of you have time to give this a review and approval? Eager to get these into production. |
I was looking at issue #116 that was raised regarding the webpage footer. In looking at the code and the website they do not seem to be in sync. For example the footer in the source code is: spkrepo/spkrepo/templates/layout.html Lines 91 to 97 in 021528d
However on the website the footer has this code:
I would have normally proposed a fix to include in this PR but the codebase and the website don't seem to align. Any thoughts on this? @publicarray @Diaoul ? |
Yes some templates are overridden locally on the server. The only way to change them is to SSH to it. |
Hmm, any particular reason for this manual editing? Should I move the server-side HTML into the codebase so they can be in sync? |
I wonder if @Diaoul expects to include synocommunity.com specific templates into code base, as spkrepo may be deployed by other users. |
As far as I can observe the code is very explicit to SynoCommunity in the templates. My suspicion is that there was a minor HTML change in the footer that was needed sometime ago and the change was made as a direct edit on the server and never brought back into the codebase (I've seen a similar thing in the database schema). This last commit was meant to bring them back in sync so that we don't have this to worry about it moving forward. To check for any others (that we can't see without server access), according to this blog we can run these commands on the server: To display file names that are NOT under version control:
To display all changes in the GIT files just use:
So if there are any other files which are different we can sync them up. This makes the server easier to maintain and if we ever had to move to another server there would be less non-standard variables to worry about. |
@mreid-tt looks good to me, with this the spkrepo is going to be more specific for our use case and no longer as generic. The reason for removing the password reset I assume is because we can't send emails? I would have thought it's best to leave it in regardless so that at least a reset code can be generated, even if it isn't sent. |
Oh duplicate I see |
Some web ui improvements
fix beta label and use different labels for active and inactive packages
show packages without active versions (leftover of #106)
remove obsolete TODOsfix webpage footer (fixes #116)