contacts #84

Merged
offbyn merged 15 commits from contacts into master 9 months ago
Owner

this PR adds support for following/unfollowing and showing events of the followed contacts in the timeline.

this PR adds support for following/unfollowing and showing events of the followed contacts in the timeline.
offbyn added 12 commits 9 months ago
a73af8bb78
event: fix classname on event detail view
still had recommend-server class (copy/paste error)
5a31d78a07
content: fix parse links with uppercase characters
ignore case sensitivity when checking for possible links
f9fc0162ff
event: remove time in title attribute
time is already shown as an entry in the content area
a2cf5c90b9
profile: fix displaying website metadata
was using the wrong key and did not update
208ea6363a
profile: refactor
each view has it's own DOMMap to reference its own elements this
can us non-unique keys, i.e. each view can have a header key.

changed:
- use getViewElem instead of querying the dom
- access button.dataset.id directly before traversing the dom
f92cfbbb31
contact: add follow and unfollow support
this creates a kind 3 event that includes a list of profiles that
the user is following.

the feed is still the public global feed and individual feed with
only events from followed pubkeys will be added in the next commit.

also:
- updated following and unfollwing wording
- added proper primary and secondary button styles.
7539d11a56
contact: show timeline of only followed contacts
added home and global feed, home will try to show timeline with
all followed contacts and fallback to global if there are no
followees.

in a future commit global tab could become search and have a
search field at the top.
889a49e0ef
links: remove trailing slash in link text
due to URL formatting, the link text of https://example.com was
showing as example.com/

removed trailing slash if possible.
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
edf5ac21a6
relays: remove noisy eose console log
offbyn added 2 commits 9 months ago
80d3a3f6a7
view: prevent scrolling navigation elements
scrolling on navigation moved the whole view up, this change
prevents nav from being scrollable.
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
25d3283a80
routes: fix internal link detection
it just checked link length, but should at least ensure that the
condition which checks for internal links starts with a slash.
offbyn added 1 commit 9 months ago
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
fea8c0bd21
route: add contact list view
added new route /contacts/npub... to show contact lists of users.
each user has about text, follow/unfollow buttons.

fixed CSS and JavaScript links in index.html to support deeper
path i.e. /contacts/npub... uri's.
offbyn merged commit fea8c0bd21 into master 9 months ago
offbyn deleted branch contacts 9 months ago
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
The pull request has been merged as fea8c0bd21.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b contacts master
git pull origin contacts

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff contacts
git push origin master
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
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: nostr/nostrweb#84
Loading…
There is no content yet.