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
6874f95f07
feat(PrPage): display event not found error
...
using daisyui alert component
2 years ago
DanConwayDev
3348fe2892
feat(RepoPage): display event not found error
...
using daisyui alert component
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
fb2ad81f70
build: temporarily remove storybook tests from ci
...
yarn test doesn't appear to ever finish when run in ci enviornment
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
DanConwayDev
9c33dd7838
chore: bump daisyui major version
...
to access skeleton feature
small fix of repo loading spinner based on version bump.
2 years ago
DanConwayDev
1c6f5885b8
chore: update yarn and nix
...
update dependancies using `yarn upgrade` and `nix flake update`
2 years ago
DanConwayDev
a17b5fbc8f
feat(homepage): add latest repositories list view
...
add pure ui components:
- add repo summary card
- add repo summary list
add data wrapper components:
- add repo recent
add repo rent to the homepage
2 years ago
DanConwayDev
eb0a284f2c
build: set visual regression method to ssim
...
ssim produces less false positives than pixelmatch
2 years ago
DanConwayDev
f3da9bd4e1
refactor: pascal case for component filenames
...
pascal is idiomatic for svelte
2 years ago
DanConwayDev
9efb43e0d2
build: fix dom snapshot config
...
using svelte format for stories requires storybook to run with the
--index-json flag but this breaks the storage location of DOM
snapshots
the configuration files in this commit fixes this and also moves them
to the same location as the image snapshots
2 years ago
DanConwayDev
e1a85b6a5a
build: fixed nix playwright install issue
...
7777e06a added a dependancy on playwright which wouldn't run in
nix-shell without extra configuration.
the simpliest configuration (used in this commit) required a more
recent version of nixpkgs unstable. unfortunately these more recent
versions introduce a 'system limit for file watchers reached' bug in
storybook's server when run on linux. This can be mitigated by
manually increasing the watcher limit.
attempts to fix the playwright nixpkgs dependancies to different
versions still introduced the bug
hopefully the bug will disapear in newer releases of nixpkgs unstable
2 years ago
DanConwayDev
73d05541ea
refactor: use svelte storybook format
...
replace plain typescript storybook format with svelte using
addon-svelte-csf
this requires running test-storybook with --json-index flag. see:
- https://github.com/storybookjs/addon-svelte-csf/issues/65
- https://github.com/storybookjs/test-runner/issues/80
2 years ago
DanConwayDev
d663869b0f
build: add visual regression testing
...
add image and dom snapshot comparison for storybook components
image snapshot comparison can been flaky and produce many
false-positives. a higher threshold has been used to mitigate this
although it may not identify all regressions. DOM snapshots
supplement images to increase the likelihood of capturing
regressions.
2 years ago
DanConwayDev
d6fd198f19
build: add storybook accessibilty plugin
...
add resolutions in package.json to fix `yarn storybook` error:
https://github.com/storybookjs/storybook/issues/22431#issuecomment-16
300860
2 years ago
DanConwayDev
861af19338
build: apply dark default storybook background
...
to reflect the default dark tailwind theme
2 years ago
DanConwayDev
d78fd6baa0
build: add storybook
...
- add default svelte storybook using yarn sb init
- add nip07plugin state for Navbar and navbar.stories.ts
2 years ago
DanConwayDev
c7677004d0
refactor(navbar): move to +layout.svelte
...
navbar will be used on every page so moved to +layout.svelte
to prevent reloading when the page route changes
2 years ago
DanConwayDev
0829f35400
build: add svelte and tailwind vscode extensions
...
apply standard svelte typescript prettier rules within svelte files
on paste and save
2 years ago
DanConwayDev
59988d4084
feat(homepage): add placeholder homepage
2 years ago
DanConwayDev
8f492f8995
build: add @tailwindcss/typography to apply standard text styling
...
tailwind removes all component text styling for consistancy.
standards can be applied with the use of the prose class using this plugin.
2 years ago
DanConwayDev
ea4c87703e
feat(navbar): add Navbar boilerplate
...
initial state with non-functional 'login' and 'sign up' buttons
2 years ago
DanConwayDev
fd1ba4c40b
build: set daisyui theme to dracula
...
a default dark theme with the intention to refine later
2 years ago