~petersanchez

Los Angeles, CA

https://www.petersanchez.com

LA, CA USA - Managua, Nicaragua

~petersanchez/blog-discussion

~petersanchez/public-inbox

View more

Recent activity

Re: [PATCH links] Add ability to filter by link type (link or note). 20 hours ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   902d902..5362d40  master -> master

[PATCH links] Add ability to filter by link type (link or note). 20 hours ago

From Peter Sanchez to ~netlandish/links-dev

Fix filters when clicking between options (unread, starred, type, tags,
etc.) to preserve current filtering.

Also fixed filters when clicking tags on the tag cloud.

Implements: https://todo.code.netlandish.com/~netlandish/links/127
Changelog-added: Ability to filter by link type (note or link)
Changelog-updated: Fixed filtering state when clicking tags, filter
  types, etc.
---
 api/graph/generated.go                        |  25 +-
 api/graph/model/models_gen.go                 |   1 +
 api/graph/schema.graphqls                     |   1 +
 api/graph/schema.resolvers.go                 |   9 +-
[message trimmed]

[PATCH links] Improve navigation when performing actions on bookmark listings. Marking as read/unread, star/unstar and deleting links will now redirect you back to the same page (filters, etc. if present) as before. a day ago

From Peter Sanchez to ~netlandish/links-dev

Implements: https://todo.code.netlandish.com/~netlandish/links/121
Changelog-updated: Navigation when performing an action on a bookmark
  listing page.
---
 core/routes.go           | 66 +++++++++++++++++++++++++++++++---------
 templates/link_list.html | 10 +++---
 2 files changed, 57 insertions(+), 19 deletions(-)

diff --git a/core/routes.go b/core/routes.go
index e2eb8f2..ece5745 100644
--- a/core/routes.go
+++ b/core/routes.go
@@ -2271,6 +2271,12 @@ func (s *Service) OrgLinksList(c echo.Context) error {
		hasStarredFilter,
[message trimmed]

Re: [PATCH links] Add a note icon next to the note title for easy indication of the item type. a day ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   e7d2ee2..e35dd79  master -> master

[PATCH links] Add a note icon next to the note title for easy indication of the item type. a day ago

From Peter Sanchez to ~netlandish/links-dev

Implements: https://todo.code.netlandish.com/~netlandish/links/128
Changelog-added: Note icon next to note type in listing for easier
  indication of object type.
---
 core/routes.go           |  1 +
 templates/link_list.html | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/core/routes.go b/core/routes.go
index f34443b..e2eb8f2 100644
--- a/core/routes.go
+++ b/core/routes.go
@@ -2343,6 +2343,7 @@ func (s *Service) OrgLinksList(c echo.Context) error {
	pd.Data["saved"] = lt.Translate("saved")
[message trimmed]

Re: [PATCH links] Adding test to ensure export functionality is covered. 8 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   6ddf2e8..e7d2ee2  master -> master

[PATCH links] Adding test to ensure export functionality is covered. 8 days ago

From Peter Sanchez to ~netlandish/links-dev

---
 core/routes_test.go | 83 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 83 insertions(+)

diff --git a/core/routes_test.go b/core/routes_test.go
index 70eff34..3a98712 100644
--- a/core/routes_test.go
+++ b/core/routes_test.go
@@ -798,4 +798,87 @@ func TestHandlers(t *testing.T) {
		// Verify the form is shown (indicating error handling)
		c.True(len(htmlBody) > 0)
	})

	t.Run("export data", func(t *testing.T) {
[message trimmed]

Re: [PATCH links] Fix issue when exporting data. This is left over from the migration from integer values to string/enum. 8 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   2201d25..6ddf2e8  master -> master

[PATCH links] Fix issue when exporting data. This is left over from the migration from integer values to string/enum. 8 days ago

From Peter Sanchez to ~netlandish/links-dev

Changelog-fixed: Bug when a user wants to export their data.
---
 models/models.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/models/models.go b/models/models.go
index b2d1ec5..67cc9b2 100644
--- a/models/models.go
+++ b/models/models.go
@@ -344,7 +344,7 @@ type ExportOrgLink struct {
	Title       string      `db:"title" json:"title"`
	Description string      `db:"description" json:"description"`
	URL         string      `db:"url" json:"url"`
	Visibility  int         `db:"visibility" json:"visibility"`
[message trimmed]