New: Sharing articles from the article title line#6395
New: Sharing articles from the article title line#6395Alkarex merged 14 commits intoFreshRSS:edgefrom
Conversation
|
The reading view is untouched yet. It will prevent conflicts with #6297. Sharing will be added later. |
|
I like the idea, but I would like to suggest a more powerful solution: make a menu from the title line as you have, but allowing multiple functions, the sharing one being a sub-menu. |
| $id = $this->entry->id(); | ||
| $link = $this->entry->link(); | ||
| $title = $this->entry->title() . ' · ' . ($this->feed === null ? '' : $this->feed->name()); | ||
| foreach (FreshRSS_Context::userConf()->sharing as $share_options) { |
There was a problem hiding this comment.
Implementation consideration: this adds a lot of data in the output (consume resources server side, at network level, and client side) for a non-essential shortcut feature. To save resources and improve performances, I think this should be left to a dynamically-generated menu like we have for the configuration drop-down menu of the feeds in the aside bar.
Example:
FreshRSS/app/layout/aside_feed.phtml
Lines 153 to 189 in 329fd4b
Or (probably even better) use an HTML template element https://developer.mozilla.org/docs/Web/HTML/Element/template like:
FreshRSS/app/views/configure/integration.phtml
Lines 15 to 31 in 329fd4b
|
@Alkarex Thanks for your feedback. Let me explain my roadmap that I have in mind: TODO: I was thinking to use the templates too, because this menu is created in each article (also before this PR). I wanted to do this refactoring after this PR to keep focus on this feature and do not mix it with the refactoring of the existing sharing menu. The submenu thing: yes, I am thinking about it too, but there is some more brain power needed ;) Right now the code does not have any sub menu features. A sub menu needs one more click/interaction than just a button (I can remember some discussion about having 1 more click to more-or-less important features). I think it will be important to have this sub menu feature and more features as you described. We could play here with CSS container queries too, so that it is usable on small and big screens. My roadmap in bullet points to summarize it:
While doing it we should not forget to have a good integration into the reading view too. I am bit excited to implement it :) |
A search could be add there too: #6595 |
|
@Alkarex Could we merge this PR? |
|
And please double-check my light refactoring 6e55595 |
fixed. it was issued by merge conflicts. |
Nice! Thanks! |
|
This new feature is really really great, thanks a lot! Do you know how could I achieve the same sharing functionality you added for Whatsapp, but for Telegram? |

It adds a column for sharing articles directly in the normal view article row
config via display config (default: not selected)

Pull request checklist: