Repository navigation
feat(meshmap): "View on #BEmesh map" label and a clickable Discord name (fork-local) - #32
Open
Confituurke wants to merge 2 commits into
Open
Confituurke wants to merge 2 commits into
Confituurke wants to merge 2 commits into
Conversation
…local) The link opens the node on the #BEmesh map, so it carries the map's own name.
… (fork-local) The map's partner claims feed now carries discordUrl, a link to the person's Discord profile, only for people who show their name (null otherwise). /api/meshmap/owners passes it on per person as discord, kept only when it is a https://discord.com/users/<id> address. The Repeater info section shows such a name as a link that opens the profile, where people can send a message. Without one, the name stays plain text as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small changes to the owner row in Repeater info.
1. The link text. It now carries the map's own name: "View on #BEmesh map" instead of "view on meshmap".
public/meshmap-owner.js: the label.tests/unit/test-meshmap-owner.js: the assertions on the label.docs/release-notes/nl/v3.17.0-on8ar.7.md: the quoted label in the Dutch note.2. A clickable Discord name. The map's partner claims feed now carries
discordUrl, a link to the person's Discord profile, only for people who show their name (nullotherwise; contract in docs/PARTNERS.md of the map). With this change:cmd/server/meshmap_owners.go:/api/meshmap/ownerspasses it on per person asdiscord, kept only when it is ahttps://discord.com/users/<id>address and the person has a name; otherwise empty.public/meshmap-owner.js: such a name (owner or manager) becomes a link that opens the Discord profile in a new tab, where people can send a message. Without one, the name stays plain text as before.cmd/server/openapi.go: the endpoint description mentionsdiscord.go test -run Meshmappasses (parse test covers a valid link, a wrong host, a link with markup and a link on a hidden name);tests/unit/test-meshmap-owner.js13 passed,tests/unit/test-repeater-info.js22 passed.Fork-local, like the rest of the meshmap owner feature. The map side is live, so the links show up at the next fetch of the claims feed.