[GH-ISSUE #16] Would be nice to have a tag-cloud #9

Closed
opened 2026-02-25 23:33:14 +03:00 by kerem · 5 comments
Owner

Originally created by @skx on GitHub (Mar 2, 2018).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/16

This is a beautiful project! I've imported 500+ bookmarks and it can be a little hard to find what I want, when I'm not 100% sure.

I think it would be useful to change the "Reload" icon at the top-right with a link to a tag-cloud view. A user who wants to reload could just use "F5" - unless I misunderstand what that link does.

Seeing all the tags in one place is likely to be a useful thing, and help show more data. (Because the thumbnail view of the main index means it takes up a lot of space.)

Originally created by @skx on GitHub (Mar 2, 2018). Original GitHub issue: https://github.com/go-shiori/shiori/issues/16 This is a beautiful project! I've imported 500+ bookmarks and it can be a little hard to find what I want, when I'm not 100% sure. I think it would be useful to change the "Reload" icon at the top-right with a link to a tag-cloud view. A user who wants to reload could just use "F5" - unless I misunderstand what that link does. Seeing all the tags in one place is likely to be a useful thing, and help show more data. (Because the thumbnail view of the main index means it takes up a lot of space.)
kerem 2026-02-25 23:33:14 +03:00
Author
Owner

@peteretelej commented on GitHub (Mar 2, 2018):

A user who wants to reload could just use "F5" - unless I misunderstand what that link does

the reload button doesn't perform a page reload. It updates the bookmark results via ajax

<!-- gh-comment-id:369827918 --> @peteretelej commented on GitHub (Mar 2, 2018): > A user who wants to reload could just use "F5" - unless I misunderstand what that link does the reload button doesn't perform a page reload. It updates the bookmark results via ajax
Author
Owner

@skx commented on GitHub (Mar 2, 2018):

Ahh I misunderstood its purpose then! But regardless it would be nice to see a tag list/cloud page.

Looking at the code I think this will be pretty simple. I will submit a pull-request later in the day.

Edit: This turned out to be harder than I thought. I updated sqlite.go + database.go to add a new function:

      // FetchTags returns all the unique tags, and their use-count
      FetchTags() (map[string]int, error)

Then I updated the server to use that:

      router.GET("/tags", serveTagsPage)

However that's probably not the right way to go. I suspect instead I should be using an AJAX call beneath /api/tags and that is beyond me because fileb0x fails to regenerate my assets ("Token too long").

I'll leave this open as a wishlist, and hope it is accepted in the future.

:)

<!-- gh-comment-id:369828932 --> @skx commented on GitHub (Mar 2, 2018): Ahh I misunderstood its purpose then! But regardless it would be nice to see a tag list/cloud page. Looking at the code I think this will be pretty simple. I will submit a pull-request later in the day. __Edit__: This turned out to be harder than I thought. I updated sqlite.go + database.go to add a new function: // FetchTags returns all the unique tags, and their use-count FetchTags() (map[string]int, error) Then I updated the server to use that: router.GET("/tags", serveTagsPage) However that's probably not the right way to go. I suspect instead I should be using an AJAX call beneath /api/tags and that is beyond me because fileb0x fails to regenerate my assets ("Token too long"). I'll leave this open as a wishlist, and hope it is accepted in the future. :)
Author
Owner

@skx commented on GitHub (Mar 6, 2018):

Looks like this has been implemented in :

I'll close.

<!-- gh-comment-id:370731694 --> @skx commented on GitHub (Mar 6, 2018): Looks like this has been implemented in : * https://github.com/RadhiFadlillah/shiori/pull/49 I'll close.
Author
Owner

@RadhiFadlillah commented on GitHub (Mar 10, 2018):

@skx I've merged it in eee3dc7. Could you check it out ?

<!-- gh-comment-id:372000014 --> @RadhiFadlillah commented on GitHub (Mar 10, 2018): @skx I've merged it in [eee3dc7](https://github.com/RadhiFadlillah/shiori/commit/eee3dc75c20a775e5b8fbb740490765518111377). Could you check it out ?
Author
Owner

@skx commented on GitHub (Mar 10, 2018):

Looks great, I'm happy to close this.

I'm sure I'm not alone in appreciating how responsive you've been to issues and pull-requests. :)

<!-- gh-comment-id:372008256 --> @skx commented on GitHub (Mar 10, 2018): Looks great, I'm happy to close this. I'm sure I'm not alone in appreciating how responsive you've been to issues and pull-requests. :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#9
No description provided.