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
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
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
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
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
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
59988d4084
feat(homepage): add placeholder homepage
2 years ago
DanConwayDev
ea4c87703e
feat(navbar): add Navbar boilerplate
...
initial state with non-functional 'login' and 'sign up' buttons
2 years ago