~netlandish/links#95: 
Add tag cloud pages for organizations

A user has requested tag cloud page for their organization. Some things to consider is how expensive it is to generate it. If it's expensive we need to think about caching it or requiring that the end user be logged into an account to see it.

Status
RESOLVED IMPLEMENTED
Submitter
~petersanchez
Assigned to
No-one
Submitted
2 months ago
Updated
22 days ago
Labels
feature

~petersanchez 2 months ago

Toying around with queries this one seems to be fairly efficient:

SELECT
  t.name,
  COUNT(*) AS tag_count
FROM tags t
JOIN tag_links tl ON t.id = tl.tag_id
JOIN org_links ol ON tl.org_link_id = ol.id
WHERE ol.user_id = $1
GROUP BY t.name
ORDER BY tag_count DESC;

Gebhard Sengmüller (edited) a month ago* · edit

A tag cloud would be so great! It’s just the easiest way for my students to see all the available topics, click on one and then see all the links assiciated with that said topic.

~petersanchez a month ago

Thank you Gebhard. How would you envision the tag cloud to work? On the bookmark listing page for quicker filtering? A specific tag cloud page where all the tags are links to the corresponding bookmarks? Both maybe?

I know on Pinboard it's hosted on the bookmark listing page on the right column. I suppose we can do similar but just curious what you think is the best experience.

Gebhard Sengmüller a month ago · edit

Thanks Peter! I really like pinboards approach with the tag cloud next to the link listing page, on the right side. But with linktacos existing layout, maybe above the first link? or to the left below or in the menu? At least for me, a seperate tag cloud page would not be so useful.

~petersanchez REPORTED IMPLEMENTED 23 days ago

Peter Sanchez referenced this ticket in commit a3b9037.

~petersanchez 23 days ago

This has been added and pushed live. Let me know how it's working for you. I am watching for any errors etc as I work on unit tests for this but I wanted to get it live for real testing.

Gebhard Sengmüller 22 days ago · edit

This is great, thank you so much! I immediately become a paying customer. I really hope the feature stays.

~petersanchez 22 days ago

Wow thanks! It is staying for sure!

Register here or Log in to comment, or comment via email.