~petersanchez

Los Angeles, CA

https://www.petersanchez.com

LA, CA USA - Managua, Nicaragua

~petersanchez/blog-discussion

~petersanchez/public-inbox

View more

Recent activity

[PATCH links] Because of the way tags are stored we always used the first representation of the tag when displaying it. For instance, a user may save `Test` as a tag and another user may save `test` as a tag but the both users will see `Test` (first version) as their tag display. 6 days ago

From Peter Sanchez to ~netlandish/links-dev

This is now fixed and each user/organization can set their own tag
casing. In cases where there are multiple casing of the same tag in a
single organization then the first one to be saved is used.

Fixes: https://todo.code.netlandish.com/~netlandish/links/122
Changelog-updated: Tag casing is now preserved at the organization and
  bookmark level.
---
 api/graph/schema.resolvers.go                 | 46 +++++++++----------
 cmd/migrations.go                             |  7 +++
 core/import.go                                |  6 +--
 helpers.go                                    | 23 ++++++----
 .../0009_add_tag_junction_name.down.sql       |  3 ++
 migrations/0009_add_tag_junction_name.up.sql  | 11 +++++
[message trimmed]

Re: [PATCH links] Notify the user when a link has been previously saved instead of silenty ignoring it. 7 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   d81584e..d2be824  master -> master

[PATCH links] Notify the user when a link has been previously saved instead of silenty ignoring it. 7 days ago

From Peter Sanchez to ~netlandish/links-dev

Implements: https://todo.code.netlandish.com/~netlandish/links/123
Changelog-added: Notify user when a link has been previously saved.
---
 api/api_test.go                               |   77 ++
 api/graph/generated.go                        |   63 ++
 api/graph/schema.graphqls                     |    1 +
 api/graph/schema.resolvers.go                 |   19 +
 core/routes.go                                |    7 +-
 internal/translations/catalog.go              | 1007 +++++++++--------
 .../translations/locales/en/out.gotext.json   |    7 +
 .../locales/es/messages.gotext.json           |    5 +
 .../translations/locales/es/out.gotext.json   |    5 +
 models/models.go                              |    1 +
 10 files changed, 689 insertions(+), 503 deletions(-)
[message trimmed]

Re: [PATCH links] In link or note detail page, if the user viewing the page is the link/note owner, have tags link to their home feed versus the recent feed. 7 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   5fabccb..d81584e  master -> master

[PATCH links] In link or note detail page, if the user viewing the page is the link/note owner, have tags link to their home feed versus the recent feed. 7 days ago

From Peter Sanchez to ~netlandish/links-dev

Implements: https://todo.code.netlandish.com/~netlandish/links/124
Changelog-updated: Detail views for note/link will use the home feed for
 tag linking when it's the note/link owner.
---
 templates/link_detail.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/templates/link_detail.html b/templates/link_detail.html
index 23bdf12..cae7a7c 100644
--- a/templates/link_detail.html
+++ b/templates/link_detail.html
@@ -36,8 +36,12 @@
  <p>{{.pd.Data.tags}}:</p>
  <div class="link-tag">
[message trimmed]

Re: [PATCH links] Add an upgrade banner for free organizations. Only shows on the /home and /feed pages. If user closes it then it won't show again for 7 days. 12 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   7db696a..5fabccb  master -> master

[PATCH links] Add an upgrade banner for free organizations. Only shows on the /home and /feed pages. If user closes it then it won't show again for 7 days. 12 days ago

From Peter Sanchez to ~netlandish/links-dev

Also upgraded the look of the plan selection page

Changelog-added: Upgrade banner to encorage users to upgrade to paid
  plan.
---
 api/graph/schema.resolvers.go                 |    2 +
 billing/routes.go                             |    1 +
 core/routes.go                                |    1 +
 core/templates.go                             |   21 +
 internal/translations/catalog.go              | 1712 +++++++++--------
 .../translations/locales/en/out.gotext.json   |   28 +
 .../locales/es/messages.gotext.json           |   20 +
 .../translations/locales/es/out.gotext.json   |   20 +
 static/css/style.css                          |  123 ++
[message trimmed]

Re: [PATCH links] Strips, if present, the mbox From line when piping emails to the links-email binary. 13 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   c56f91e..7db696a  master -> master

[PATCH links] Strips, if present, the mbox From line when piping emails to the links-email binary. 13 days ago

From Peter Sanchez to ~netlandish/links-dev

Addresses failed header parsing when piped via Postfix.

References: https://todo.code.netlandish.com/~netlandish/links/132
---
 cmd/email/main.go | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/cmd/email/main.go b/cmd/email/main.go
index f1879fb..9461058 100644
--- a/cmd/email/main.go
+++ b/cmd/email/main.go
@@ -2,6 +2,7 @@ package main

import (
[message trimmed]