DanConwayDev
8c769e151f
feat!: use nip34 kinds
...
a series of changes must follow to align with nip34 event formats
2 years ago
DanConwayDev
a03b13235b
feat(UserHeader): add size option
...
enables the display of UserHeader in sm or md option when flag inline is
true or false
2 years ago
DanConwayDev
6f010c29ec
feat(UserHeader): add inline flag
...
this option reduces the size of the avatar so that it doesn't effect the
line height. note this only works at the text size / line-height
where the component is currently used.
2 years ago
jk
8ae123fd0b
eslint + prettier ( #2 )
...
Co-authored-by: DanConwayDev <114834599+DanConwayDev@users.noreply.github.com>
2 years ago
jk
c03a4cd01d
Fix reactive values in UserHeader
2 years ago
DanConwayDev
0e29374773
fix(homepage): remove duplicate repo events
...
temporary solution to users who accidentally ran `ngit claim` on a repo
they didn't own
ngit will select the version listed in `maintainers.yaml` if present but
git together doesn't have a trusted copy of the underlying repo to find
the correct `maintainers.yaml`
presenting multiple options for the user combined with a staring /
following system linked with WoT is the long term plan
2 years ago
DanConwayDev
5889f305e5
fix(PRPage): status event using t not l
...
this change was ommited when t was changed to l in dd24dc12
2 years ago
DanConwayDev
c032e97a34
fix(PRPage): status events using nip10
...
status events were not tagging pr event as root
2 years ago
DanConwayDev
3ff2d0a923
fix: ParsedContent not updating with new content
...
content would only show if it was present when the component was
initially mounted
2 years ago
DanConwayDev
111d6273b3
feat(PRPage): add compose replies
...
to both the pr other events posted in respose to the root pr event
2 years ago
DanConwayDev
eb0365f0b7
feat(PRPage): add created_at to event wrapper
...
the text is not aligned to the middle which needs fixing
tailwind align-middle wasn't working
2 years ago
DanConwayDev
17a35f0fda
feat(RepoPage): display git server
...
display the git-server present in the repo event.
fix a bug where with would spill over if 1/3 the page was larger than
tailwinds md
2 years ago
DanConwayDev
00ea449298
feat(PRPage): parse event content with line breaks
...
This applies a really basic version of the parsing in
ndk-svelte-components which was copied from coracle. hopefully they can
be fully aligned in the future. I applied extra typing and will
intergrate other ParsedParts when needed.
applied line breaks to commit messages, pr description and default for
event content.
2 years ago
DanConwayDev
c454bcc059
fix: replace base relays
...
snort.social does not accept events from users without a subscription
whereas nos.lol does. This makes it a more likely to have more git
related events
2 years ago
DanConwayDev
b4cf763814
feat(homepage): list more recent repos
...
reduce the space used each repo summary and make them less striking as
more are going to be displayed
2 years ago
DanConwayDev
e5629f93d6
fix(navbar): fix site name
...
change the site url to gitworkshop.dev
2 years ago
DanConwayDev
21b44bb34a
feat(navbar): add signup placeholder function
...
replacing a button with no action with a placeholder function that
launches an alert
2 years ago
DanConwayDev
dd24dc1236
fix(PrPage): use l tag for status
...
instead of t tag to more closely align to nip-32
2 years ago
DanConwayDev
a4c1ce634d
feat(navbar): improve display of site name
...
and link to home page
2 years ago
DanConwayDev
5bca100f28
feat(PrPage): include commit id in commit event
...
to make commits easier to identify
2 years ago
DanConwayDev
5fdb361782
fix(PrPage): fix duplicate event on status changes
...
now that the subscription remains open the status change doesnt need to
be manually added to the selected_pr_replies store
2 years ago
DanConwayDev
4b7087a2cf
refactor: wrap navbar component
...
so component can have ui tests
2 years ago
DanConwayDev
faf7231d01
fix: clear pr summaries and responses on change
...
prevent bug where PR responses and summaries are added to an incorrect
pr or repo after the array has been cleared but before
ensureSelectedRepo has returned
2 years ago
DanConwayDev
fd73f0952b
fix: update pr status accross app
...
- move status from PRFull into PRSummary
- fetch statuses when fetching pr summaries
- ensure status gets displayed accurately across the app
2 years ago
DanConwayDev
1547662205
feat: keep listening for repo and pr events
...
instead of closing connection on eose
2 years ago
DanConwayDev
75d649f2b9
feat(PRPage): display status event
...
list status update in timeline
2 years ago
DanConwayDev
2cd6d2f77b
fix: pr status kind
...
19851985 is nip32 label kind written twice
2 years ago
DanConwayDev
fad66e14e5
refactor: abstract pr status
...
abstact pr status into its own component
2 years ago
DanConwayDev
2a6ef1fbdc
fix: get user relays
...
replace getLoggedInUserRelays with getUserRelays as
getLoggedInUserRelays was broken and getUserRelays is more flexible
2 years ago
DanConwayDev
7507ea2ea7
feat: use user and repository relays
...
- send status events to user and repository relays
- get repoistory events from base relays
- get pr events and replies from repository relays
2 years ago
DanConwayDev
7256f970ab
feat(navbar): add nip07 login
...
- add login function to call nip07 plugin
- add logged_in_user store
2 years ago
DanConwayDev
2f3bd85e80
feat: rename app and tweak ui
...
- rename for 'git together' to 'git work'
- tweak ui to make it responsive
2 years ago
DanConwayDev
e3ddb30205
feat(PRPage): add pr status
...
- add pr details
- gather status events when loading PRFull
- add StatusSelector component that enables sending new status events
2 years ago
DanConwayDev
eca198799f
feat(PRPage): custom display of commit events
...
display summary of 317 commit event
2 years ago
DanConwayDev
4861420d63
feat(PRPage): display pr commits and responses
...
- add thread wrapper
- add event wrapper
- display pr events
2 years ago
DanConwayDev
cca93434b0
refactor: replace PRSummary with PRFull
...
create PRFull in preparation for adding related events
2 years ago
DanConwayDev
a64df89733
feat(PRPage): add page and header
...
add page, pr store, pr ui type and pr page header
2 years ago
DanConwayDev
2487be2dc9
feat(RepoPage): add RepoHeader
...
create a RepoHeader for use on multiple pages
2 years ago
DanConwayDev
9ccf21c0a7
feat(ListPRs): add author name to summary
...
refactor to reflect new stardards for ui and data logic seperation
2 years ago
DanConwayDev
4fc877bd3e
feat: add UserHeader
...
add user profile details via a svelte store
this sets a standard for abstracting ui from data wrappers even when
multiple calls are needed
2 years ago
DanConwayDev
730167bc70
feat(RepoPage): add UserHeader
...
- add UserHeader UI component
- add to RepoDetails
2 years ago
DanConwayDev
07e8190713
build: change loading behaviour to fix tests
...
repo summary loading spinner caused intermittant test failures
2 years ago
DanConwayDev
dbce354429
build: mitigate intermittent storybook tests in ci
...
removed skipping tests using tags as this isn't functional. cannot
apply tags to stories made using addon-svelte-csf. therefore cannot
skip intermittently passing tests.
instead all tests will be rerun upto 9 times if any tests fail. A
better approach would be rerunning individual tests but this would
require a PR for test-runner.
2 years ago
DanConwayDev
f7ee9ef179
build: fix storybook test running in ci
...
add dependancies to enable tests to run
there is a slight missmatch in html classes in `js.snap` test vectors
when tests are run with storybook is built using `storybook dev` vs
`storybook build`
2 years ago
DanConwayDev
92c9637b8d
feat(RepoPage): add maintainer profile name in ui
...
add ui component states and test vectors for loading, displayName only
and no name or displayName found
wrapper for fetching user profile to follow
2 years ago
DanConwayDev
46edd25ea5
feat(RepoPage): add repo details
...
- add repo details ui component
- add test storybook tests
- add repo details wrapper
- add repo details to repo page
2 years ago
DanConwayDev
51c829134f
feat(ListPRs): reduce heading size
...
so that title doesnt look out of place
2 years ago
DanConwayDev
656d286036
feat(PageChrome): add responsive container
...
limit width on desktop size screens
2 years ago
DanConwayDev
c142375fd6
feat(ListPRs): add wrapper
...
- add repo page
- add wrapper for for listPR component
2 years ago
DanConwayDev
df843d90ab
feat(ListPRs): add list PRs ui component
...
with test vectors
includes datejs dependancy
2 years ago