Commit Graph

81 Commits (1d23c7098d3aecf14ed494ea3ace457fd0b0fcde)
 

Author SHA1 Message Date
OFF0 1d23c7098d
0.0.10
OFF0 e2431c7e60
profile: support kind 0 metadata events
Added simple profile form to the setting view to send kind 0
metdata such as: name, about and picture.
OFF0 9df0f723f2
preview: dont render empty meta fields
Metadata can contain empty fields or broken images. Improved
rendering of meta preview links with missing info, also added a
subtile transparent dark background color to preview images, as
some images contain white text on transparent background and are
invisible in light mode.
OFF0 ff0ba4f6e6
preview: show the full preview image
Was set to cover, which is nice but cuts off some sides,
especially since image dimensions are not known.
OFF0 9f992044b2
send: update layout on mobile
On mobile the keyboard covered half of the buttons, changed form
to be aligned at the top of the screen and made textarea a bit
smaller so that the mobile keyboard and the form are both visible.
OFF0 edbb861bf1
send: change wording, use note instead of post
In nostr we write notes, not posts no tweets just notes.
OFF0 b321acde02
noxy: add simple fetch queue and wait for meta data response
Instead of just blindly fetch noxy requests, this adds a simple
fetch queue and waits until the pending response is done. It
continues with the next one in the queue  whichever seen first,
This is not in chronological order, but incoming event order
(incoming events from different relays are probably out of order).
OFF0 a580bc67b2
noxy: add lazy load attribute to noxy images
Only for browsers that support loading=lazy attribute, but this
should reduce the load on noxy and only fetch images that are
relevant (in the viewport of close to it).
OFF0 9250ccf287
preview: fix limit width of large images
OFF0 2d2643c2c8
feed: display link preview with noxy
fetches the first link and shows it below a text note, all
resources are prxied through noxy.

see 
OFF0 0047c0bdc0
settings: document code on when exactly the pubkey is regenerated
The pubkey should not always be regenerated when a privatekey is
pasted. The reason is that on paste event is fired before the
privateKeyInput value is updated.

Added code comments on when the condition passes and should be save
to re-generate the pubkey.
OFF0 d8f71b74ec
send: hide new message afer successful send
The write new text note form should be hidden after successful send.
alex be5e88661e
about: link to the original write up on nostr protocol
updates 
OFF0 96087dc041
feed: fix multiple upvotes (reactions)
Fixes error when upvoting already starred events.

Now the tooltip should display the reactions again.
OFF0 9b6f78dff1
0.0.9
OFF0 71945b105f
settings: pasting private key should update pubkey
If the user pastes a private-key and the pubkey field is empty,
it should be ok to generate and autofill the pubkey without
confusing the user. There might be circumstances where it is
preferred to see an error if the pubkey does not correspond with
the private key.

Added an on paste event listener that tries to generate and auto-
fill the pubkey (if empty).

Also disabled autocomplete on the settings form to indicate to not
save the key in password manager.
OFF0 8ec9420be8
feed: render links in text notes
Links should be rendered as anchors so that they are clickable.
For now only links starting with http:// https:// or www. are
supported.

Temporary disabled text notes shortening.
OFF0 ec9945cf05
feed: reduce newlines in text notes
This change reduces 3 or more newlines to 2 to keep the output
somewhat sane, i.e. somebody spamming newlines.
OFF0 9711ca2ecf feed: refactor profile image placeholder
Move canvas placeholder image to getMetadata so that the logic is
in one place. Also added an exception for pubkeys starting with
at least 6 zeros to invert the color.
OFF0 d8c087bb71
about: link to and from the about page
The about page was not linked, added footer section on the settings
view to link to the about page. Also added a link from the about
page to link back to index.html.
alex 8f4c1c8712
docs: add a top link to the live instance
[ci skip]
alex e238bd9018
add an about page
this is a simple static text page showing current version from
the npm package and git commit hash at which the app was built.

it's served at /about.html but i didn't link it from the root.
not sure where the best place is.
OFF0 11fbc7aa7d
feed: ability to close reply form
This is an approach to close the reply-to-form automatically when
focus is lost and only if the input is empty. A second way to close
the reply-to-form is provided by toggling the reply icon.
OFF0 cfb7a2dc35
0.0.8
OFF0 16eb14d08e
layout: add dummy profile pic to recommend server
Recommend server events looked broken and still showed the old
bubble. Fixed layout and also use dummy pic for recommend server
events.
OFF0 2e94d59028
feed: fix expand long notes
Text notes longer than 280 are shortened and appended with '…' to
indicate that this note can be expanded, but this dotdotdot was
real text and was not removed once the note is expanded.

Changed to showing the dots through CSS and only if the attribute
exists, so it does not show on expanded notes.
OFF0 b4392bf215
layout: highlight kind 0 name and dummy profile pics
- added experimental dummy profile pics
- highlight kind 0 usernames
- improved dark mode colors
OFF0 b7c47a7a50
0.0.7
OFF0 fecbb8ff50
feed: show picture (kind 0) with noyx
Loading images from random url leaks meta data to other servers.

Enabled showing kind 0 picture from noxy (nostr proxy),
see https://git.qcode.ch/nostr/noxy

Only href that are a valid url and use http(s) should be allowed
to prevent malicious urls such as 'javascript:alert(1)'.

Kept the fallback to the speak bubble if there is no kind 0 event
for this pubkey or picture is missing.
OFF0 6a4266526d
keys: fix key validation
Pub and private key settings only showed errors if both values were
truthy, but it did not validate if one input was falsy, in which
case it only showed the last error.

Removed truthy check as it is not needed.
OFF0 4dd8dae483
layout: fix nav positioning on ios
Safari does not take the addressbar into account when using 100vh,
this is the cauase that the navigation is sometimes hidden when
the user scrolls up/down.

changed to 100dvh with fallback to 100vh.
OFF0 a7a2acfc0c
0.0.6
OFF0 4576355b03
layout: visual interface improvements
- writing a new message is now presented in full-screen, so that
  there are no distractions, i.e. other posts
- added back button and listen to esc key to close new message
- on portrait mode the navigation buttons are now positioned at
  the bottom of the screen
- write new message botton (bubble) is also positioned bottomright
- replies now use a line to the last reply instead of indentation,
  better use of available space, especially on small screen
- ignore newlines at the end of a post
- added subtile growin effect to the multiline textfield, to hint
  that the textarea is growing with more content
OFF0 3ab815c30e
post: remove whitespace of textnote content (trim right only)
Send button should be disabled if there are only white spaces or
newlines, trimming only right as white spaces at the beginning
could mean somethig i.e in markdown.
OFF0 8081d12254
post: disable input field resizing
Textarea can be resized manually, but this does play well
with the automatic resizing (yet), disabling for now.
OFF0 7d9f31f7c6
refactor: use evt as variable name if possible
This was we can use evt.id consistently instead of mental overhead
of textNoteEvent.id
OFF0 06686ba9a7
post: improve write and reply to textnote usability
- use growing textarea input to support multiline textnotes
- keep replyTo id in localstorage instead of global variable
- render reply to form on load if there was a replyTo in storage
OFF0 b10a63b932
comment code about textNoteList and eventRelayMap
OFF0 e9cc165738
utils: move multiline function to domutils
OFF0 409ff80d64
test multiline comments
OFF0 7b7b4d3f28
use nostr x1ddos only for now
OFF0 730db777b6
refactor: rename form to settingsform
OFF0 76861501cc
0.0.5
OFF0 8109a22bb8
style: make page mobile friendly
alex d401564cca
ci: remove "branch" from conditional release pipeline execution
the v0.0.3 should've trigger automated release but it didn't.
going to try removing branch from the condition, only the tag pattern.
alex 64170846d3
v0.0.3: bump from 0.0.2 to trigger an automated deployment
i broke the ci while moving the repo from x1ddos/nostrweb to
nostr/nostrweb - all settings remained in the old repo and pipelines
didn't run at the new location.

could've overwritten the git tag but what happens in public git,
stays in git. so, just making a new dummy tag to trigger the ci.
alex d6e49dc769
ci: empty commit to trigger a build
OFF0 14f67cb85e
0.0.2
OFF0 56da8772db
Merge branch 'change-everything'
OFF0 4a710ee5d1
getting ready
- added favicon.ico to get rid of anoying logs in the future
- clicking the idea bubble brings back the text input field
- stop accidentally submitting the reply form
- updated idea cloud to dark/light mode neutral gray
- contact list not needed yet, disabled
- add a detailed list of reactions in star tooltip
- removed debug debounce was for testing chronological feed order
- started username prototype