DanConwayDev
c8335a0b5d
fix: neventOrNoteToHexId error handling
...
to prevent svelte 500 error when bech32 invalid
2 years ago
DanConwayDev
79a691726a
major refactor to improve handling of repo events
...
stop automatic grouping of repo events by identifer and
earliest unique commit into a single collection.
allow selection of different repos that have an
identifier collision by prioritising pubkey:identifier
over identifer
show repos grouped by name
2 years ago
DanConwayDev
2982f8f5bf
chore: bump ndk
...
in preparation for adding cache
2 years ago
DanConwayDev
d3cfce5036
fix: omit port in clone ~> readme url conversion
...
as the https port will be different than that used by git
fix nostr:nevent1qqsv7mqkleadz5jzd63rygnne73ugh02wxuuq8evzcmlult4658dulspp4mhxue69uhkummn9ekx7mqzypl62m6ad932k83u6sjwwkxrqq4cve0hkrvdem5la83g34m4rtqeggv37pm
2 years ago
DanConwayDev
63c74cb9a4
feat: add profile page
...
and link to it whenever the UserHeader is displayed.
closes issue:
nostr:nevent1qqsyxwvgdaacc3hcd9rjwmjwqsfpu8guhrj37026ntl3aqw02mrprsgpzemhxue69uhhyetvv9ujumn0wd68ytnzv9hxgq3ql5sga6xg72phsz5422ykujprejwud075ggrr3z2hwyrfgr7eylqseukj7u
and partially fulfills issue:
nostr:nevent1qqsyxwvgdaacc3hcd9rjwmjwqsfpu8guhrj37026ntl3aqw02mrprsgpzemhxue69uhhyetvv9ujumn0wd68ytnzv9hxgq3ql5sga6xg72phsz5422ykujprejwud075ggrr3z2hwyrfgr7eylqseukj7u
2 years ago
DanConwayDev
961d1d8645
feat: add lite event wrapper for reposts
...
as a temporary measure to prevent a wall of json
if this information is displayed at all it should be in the footer
of the event rather than amoung the replies
2 years ago
DanConwayDev
44fb751eca
feat: render npub and nprofile mentions
...
so that they display the inline UserHeader rather long npub terxt
2 years ago
DanConwayDev
7fe8fb1489
fix(ProposalPage): status selector in ProposalHeader
...
the dropdown icon was present but the selector component wasn't used
the selector options appeared without padding in header so this was
added in the component
fixes
https://gitworkshop.dev/repo/gitworkshop/issue/
7a8983734d366ae22828b4bbcc5c292480f427ab9f5a78428aa6fca1c9562b7b
2 years ago
DanConwayDev
0d6bef358e
feat(ProposalPage): add share button
...
to copy nostr address, nump or raw event id to clipboard.
fulfills:
http://gitworkshop.dev/repo/gitworkshop/issue/
5a3341dd50779f8a7d79ee938c66498332d28a87096cf3a4e2f729e3c2423549
2 years ago
DanConwayDev
299ea3cdb2
build: fix prettier errors
...
relating to class ordering
2 years ago
DanConwayDev
def718ac60
feat(RepoDetails): copy maintainers npub
...
to clipboard on click
2 years ago
DanConwayDev
ff7af17043
fix: hide reply whilst submitting
...
because often the reply gets displayed in the feed before the sent
confirmation is recieved from the relays so its displayed twice
momentarily
2 years ago
DanConwayDev
713b06a6a0
fix: disable send in compose when no content
...
to prevent empty events from being sent
2 years ago
DanConwayDev
b680b3def3
feat: tweak clone clipboard UI
...
so new lines aren't added when copying
2 years ago
DanConwayDev
2a444abcf3
feat: show repo menu on issue / proposal page
...
by moving the menu into the RepoHeader
enabling feature request:
nostr:nevent1qqsxpezng8ft7hydqz4g06r79n3vu2rrj560v86jhswaaxcf97zz04gw57v5f
2 years ago
DanConwayDev
7c277d493f
test: fix url in test case
...
as origname/reponame was missing
2 years ago
DanConwayDev
33d35dcac8
refactor: fetch user profile only when needed
...
store hexpubkey in Repo and Proposal data object
instead of full profile
this prevents unnecessary state updates for those objects
the trade-off is including business logic (getting profile data)
within UI components
this is mitigated by allowing hexpubkey or UserObject to be passed
to UI components so that UI component tests can be written without
having to worry about business logic
this new approach can be abstracted to other object types
2 years ago
DanConwayDev
4e691c6994
test: update snapshots
...
and rename argument based on recent change
2 years ago
DanConwayDev
19471e7c19
feat: display readme from more sources
...
instead of just github. unfortunately most servers have
CORS enabled so a proxy is needed
2 years ago
DanConwayDev
c380c40e9d
feat(init): support multiple git_servers
...
in line with initial merged nip34 spec
2 years ago
DanConwayDev
61c3259148
feat: improve and turn on readme display
...
for github only. added notes for enabling displaying readme for
other git servers in the future
2 years ago
DanConwayDev
78741bed05
feat(repo-details): improve copy to clipboard UI
...
* add icon and hover background and pointer
* rename copied ~> copied to clipboard
2 years ago
DanConwayDev
33ecbc0578
fetch(repo-page): display readme from github
...
turned off with feature stapling. requires:
* styles to be improved (inline image links, respecting html img sizing, etc)
* intergration into its own tab (potentially sepearte routing
for proposal, issues, readme)
* proxy to get readme via git for all git sources
2 years ago
DanConwayDev
ca4fca9b8b
feat(repo-details): show unqiue commit not specified
...
instead of not displaying the heading
to encourage repo maintainers to include it as it
improves ngit usability
2 years ago
DanConwayDev
99bda4b57a
feat(repo-details): add unique commit and naddr
...
and copy naddr on click
2 years ago
DanConwayDev
d87ac72080
feat(repo-details): combine duplicate headings
...
combine name and identifer into a single heading if they are identical
2 years ago
DanConwayDev
bc48f37782
feat(event): add img alt via imeta tags
...
extract imeta information for images and include image alt
considered adding blurhash but didn't want to increase package size
when implementing image uploading this could be added
2 years ago
DanConwayDev
3c1ecd1e86
feat(event): parse links and images
...
holding off on audio and video so that bandwidth heavy content
can be lazy loaded when visible
2 years ago
DanConwayDev
4663da09db
fix: status label name for issues
...
applied kind now reads 'Resolved' vs 'Applied' for issues
2 years ago
DanConwayDev
9591d59ef0
feat(event): stop overflow of nonbreaking content
...
prevent non-breaking content from overflowing outside the container
this mainly applies to long links and long ids
2 years ago
DanConwayDev
3f83d10146
fix(patch): unhandled unsupported language error
...
fall back to rendering line without formatting
in the future we should lazy load other/ all languages
2 years ago
DanConwayDev
b6eb83b498
fix: repo name fallback as identifer
...
if it is not present in the repo event
2 years ago
DanConwayDev
32688b87f9
feat: repo details show identifier and name
...
as the identifier may be useful and different from name
2 years ago
DanConwayDev
0411bb0eb3
feat: add about page, ngit copy, ngit v1.0.0
...
add an about page
improve ngit copy
bump ngit version to v1.0.0
2 years ago
DanConwayDev
5abaa290d7
feat: user name different from event content
...
so it is easier to read threads
2 years ago
DanConwayDev
a1d9c8aa13
feat: display cover letter content
...
as normal text note with header stripped for now
2 years ago
DanConwayDev
ccad628769
fix: status button hover color
...
it was turning pink unless status was applied and therefore already pink
2 years ago
DanConwayDev
f02d76f20c
feat: simplify thread hiding UI
...
remove text which overflowed onto the bottom line of logn content
2 years ago
DanConwayDev
8de6a257f9
fix(thread): show compose when no replies
...
when show_compose is set to true
2 years ago
DanConwayDev
3cff122091
feat: edit status from issue/proposal header
...
in preperation for showing sidebar less often
2 years ago
DanConwayDev
83df29d5f9
fix(patch): filename overflow
...
now wraps onto new lines
2 years ago
DanConwayDev
ef3fd9e9cc
feat: ComposeReply add nip10 p tags
...
tag in pubkeys participating in thread
2 years ago
DanConwayDev
e65bc77842
feat: sort thread oldest first
...
whilst maintaining sorting by youngest first in ProposalList
note: events that tag root event secondarily (eg. mention)
are no longer diplsayed
2 years ago
DanConwayDev
2a15e089e5
feat: show/hide thread replies
...
so that it is easier to read large threads and
connect replies to their parent message
2 years ago
DanConwayDev
fe1c6d34cc
feat: add threaded replies
...
for proposals and issues
2 years ago
DanConwayDev
e578ac81ba
fix: malformed replies
...
and improve how the UI reacts when events are sent
2 years ago
DanConwayDev
c623e10e1a
fix: staus icons reflect issue or proposal
...
status was showing wrong icon type in EventCard
2 years ago
DanConwayDev
42a8c0fe3d
feat: show avatar at compose
...
to make it more in keeping with other event messages
when displayed in thread
2 years ago
DanConwayDev
e56d28de98
feat: create issue page with status and replies
...
intergrating where possible with the existing proposal components
2 years ago
DanConwayDev
9ec0988006
feat: add issue icons
...
currently using the same status events as patches
2 years ago