-
-
Notifications
You must be signed in to change notification settings - Fork 904
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
Enhance content path feature #2778
Enhance content path feature #2778
Conversation
For now, it's mainly a draft, to see if the core team is interested in the change. If yes, there is still a bunch of things to do (propagate translation, propagate CSS things, etc.)
About this last point, some extra thinking:
|
Thanks @javerous |
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.
Not sure what I think of the icons, especially because it looks a bit like an illustration. just a textual Preview
button might be preferable.
Btw, you can just paste the JS into https://jshint.com/. You don't need to install it locally or wait for the CI. |
The textual button are so big… Perhaps can be a button with this icon but no text ? ^^' What others are thinking about that ? |
Ah yes, think you ! It will help. |
Okay, I will try this. |
642ab41
to
fa772d7
Compare
- Add a maintenance section to be able to clear cache and force reload a feed. - Add an icon next to path field to show a pop-up with the result of the content path.
- Add missing semicolon.
Co-Authored-By: Frans de Jonge <[email protected]>
Co-Authored-By: Frans de Jonge <[email protected]>
Co-Authored-By: Frans de Jonge <[email protected]>
Co-Authored-By: Frans de Jonge <[email protected]>
Co-Authored-By: Frans de Jonge <[email protected]>
Co-Authored-By: Frans de Jonge <[email protected]>
Co-Authored-By: Frans de Jonge <[email protected]>
Co-Authored-By: Frans de Jonge <[email protected]>
…us/FreshRSS into 2772-enhance-content-path-feature
…in closure. Use 'let' instead of 'var', as... it's better.
Okay, I think that this time, it's all done ! (the tests are failing because of some time-out, I don't think it's related to my last changes…) |
I fixed some minor details I found while working on the style. The improved popup looks like this (don't pay attention to the small scrollbar glitch at the bottom of the popup, it was caused by the devtools): I'm not totally satisfied with the controls box (maybe too grey?), but I think it's enough for now. |
@marienfressinaud Yes, I was testing the changes right now. It's definitely better! For the gray, I don't have special advice, it looks good to me (I'm not accustomed to see source code with white text on a dark background, but I think it's the most common). [Edit] Oh, you were speaking about the gray of the controls box. It's perfect from my point of view. |
I didn't style specifically the source code, just reused what was done in the rest of the application :) If we change the style here, we should change it for code in the articles. |
Fixed for the |
Not exactly, the rest of the application has an actual application going on. :-P (But fair enough.) |
If there's no new comments, I'll merge this PR before the end of the day :) |
@marienfressinaud Like I said before, I could nitpick various things but I think it's good enough to merge. ;-) |
🎉 |
Sorry for the late feedback. This is a great work :-) |
@Alkarex Thank you, it was a bit "laborious" (I don't know if it translates well), but mainly because I'm not a web developer ;p
No. I followed the suggestion from @Frenzie : I do the preview on the last article (i.e. the last retrieved) of the feed, so it should be okay (it's your "b" proposal, I think). I used the feature a bunch of time since, and it's very practical (okay, I'm perhaps not very impartial, but it helped me for sure). A possible enhancement would be to be able to update the css path while we are inside the preview pop-up, but it seems too complex for me ;p |
Great, testing more carefully on another feed indeed shows that it works as intended :-) |
Slight refactoring in #4291 |
Closes #2772
Changes proposed in this pull request:
/p/themes/Origine/origine.css
/p/scripts/main.js
/app/layout/layout.phtml
/app/Controllers/feedController.php
/app/views/helpers/feed/update.phtml
/p/themes/icons/screwdriver.svg
/app/Models/Themes.php
/app/Controllers/feedController.php
// this is probably not the right place/p/scripts/extra.js
/app/views/helpers/feed/update.phtml
/p/themes/icons/look.svg
/app/Models/Themes.php
How to test the feature manually:
Pull request checklist:
Screenshots: