Commit Graph
962 Commits
Author SHA1 Message Date
Sebastian Martinez e86accafae Handle errors in Browser.svelte
Updates also the seed fixture to fix some minor issues and add a
relative image markdown example

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-21 17:10:20 +01:00
Rūdolfs Ošiņš 5f2cd259a0 Clean up snapshot cache on master
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-19 13:31:54 +01:00
Rūdolfs Ošiņš e80fabbbdd Fix flaky visual tests
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-19 10:37:09 +01:00
Sebastian Martinez 34cb75da12 Skip objects in front-matter
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-19 10:05:28 +01:00
Rūdolfs Ošiņš 41168db8d5 Improve CI workflows
- bump visual spec timeouts
- don't warn if there are no artifacts
- revert unneeded workflow checks
- improve workflow messages

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-16 23:10:57 +01:00
Sebastian Martinez 65b37b7ef4 Updates some CI packages to v3 and skips test if PR is merged
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-16 16:16:39 +01:00
Rūdolfs Ošiņš d7f8156725 Format yaml files with prettier
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-16 15:51:13 +01:00
Rūdolfs Ošiņš 2c022a40df Add visual snapshot tests
We use the cache Github action to store snapshots when pushing to master and
then load them in pull requests and run the visual tests against it.

This way we don't have to commit the images to the repository and always
get diffs to the latest master.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-16 15:06:05 +01:00
Rūdolfs Ošiņš d5f690926e Move build smoke tests to a separate folder
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-16 15:06:05 +01:00
Rūdolfs Ošiņš 836b0ccc09 Extract fixture URL
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-16 15:06:05 +01:00
Rūdolfs Ošiņš 0b6d9586ee Extract custom app config in tests
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-16 15:05:57 +01:00
Sebastian Martinez d1a1b4c9c0 Fix pretty-lights theme
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-16 12:15:21 +01:00
Sebastian Martinez 569b660134 Move syntax highlighting to web client
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-16 11:00:17 +01:00
Rūdolfs Ošiņš 795ab5253d Upgrade transitive dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-13 10:08:00 +01:00
Rūdolfs Ošiņš 9e71823a99 Remove SIWE functionality
It's not working with our current seed nodes and is confusing to users.
It also prevents us from upgrading transitive dependencies.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-12 20:24:19 +01:00
Sebastian Martinez df680677b5 Rewrites url for vite preview server paths
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-12 17:18:35 +01:00
Sebastian Martinez 7be0a366b3 Update dependencies
Includes the move from the `svelte-preprocess` package for preprocessing
to `@sveltejs/vite-plugin-svelte` which allows us to use Vite also for
preprocessing.

Also had to remove the `vite-plugin-rewrite-all` again since they don't
support vite@4. So I wrote the plugin myself and without the dependecies
used by `vite-plugin-rewrite-all`.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-12 10:46:42 +01:00
Sebastian Martinez fa0007cda4 Run GitHub CI only if push to master or activity on PR branch but not both
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-02 10:51:05 +01:00
Sebastian Martinez 9d3353b4f6 Cache Playwright binaries if possible
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-02 10:48:23 +01:00
Sebastian Martinez cdef3b5d5e Add route support to vesting feature
This allows people to either search for their vesting contract through
the search form or visit directly `vesting/<contract address>`

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-02 10:29:49 +01:00
Rūdolfs Ošiņš 6c363e9313 Move all test files to the tests folder
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-01 16:36:40 +01:00
Sebastian Martinez 3aa99ca4df Update dependencies
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-01 16:13:45 +01:00
Rūdolfs OšiņšandSebastian Martinez 9cb9332e88 Replace Cypress with Playwright
Playwright is more flexible and has better developer experience than Cypress.
We add end to end tests covering:

  - project source browsing
    - tree view
    - commit list view
    - commit view
  - routing
    - hash based
    - history API based
  - clipboard copy paste functionality
  - seed view
  - project search
  - landing page view
  - settings

Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-01 15:54:56 +01:00
Sebastian Martinez d740d7e5a1 Fix ABI used in vesting page
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-24 17:12:48 +01:00
Sebastian Martinez 31e037eb16 Add postinstall scripts to build step
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-24 10:51:48 +01:00
Sebastian Martinez 2dd53321d9 Remove some deprecated CSS props and change form items to align-items: flex-start
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-24 09:54:14 +01:00
Sebastian Martinez ba7067492e Add bottom-border radius to Readme component due to background peaking out
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-24 09:54:14 +01:00
Sebastian Martinez c335638a38 Fix minor issues with settings dropdown
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-24 09:19:06 +01:00
Sebastian Martinez e1caae028c Update dependencies
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-23 21:17:00 +01:00
Sebastian Martinez 4f50b959cc Check if there is a final new line in the blob content
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-23 18:38:54 +01:00
Sebastian Martinez d45e21c82d Add settings dropdown
Moving the theme toggle inside a settings dropdown in-place.
Adding a switch for the used monospace font, user can either use the
OS or browser default, or switch to "JetBrains Mono".

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-23 10:14:07 +01:00
Sebastian Martinez a99c9c7275 Format peer id when no committer context available
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-22 09:45:14 +01:00
Sebastian Martinez 7b33243848 Add enableAutoPageviews
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-19 10:34:16 +01:00
Sebastian Martinez 2816333a4a Switch plausible script for npm package
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-18 11:04:02 +01:00
Sebastian Martinez a8b4b4f2ef Improve handling of app base
To differenciate between which base assets should take, we need a `base`
const in `router/index` that any function or component can consult so we
don't get issues between relative and absolute paths.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-18 11:04:02 +01:00
Sebastian Martinez c8b99a8b74 Removes compilerOptions and chunk size warnings
We split some third party packages into their own bundles to reduce the
size of the index.js bundle.
We also don't need hmr ever in production.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-16 12:06:08 +01:00
Sebastian Martinez d97e4b5f7b Push new routes to the history stack instead of replacing it
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-16 11:51:47 +01:00
Sebastian Martinez 3fbd832ef1 Update dependencies
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-15 23:59:22 +01:00
Sebastian Martinez b8ec63497b Add missing twemojis to commit components
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-15 17:34:37 +01:00
Sebastian Martinez 3a352eab4c Fix markup being wrapped by self-closing anchor tags
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-15 16:30:07 +01:00
Sebastian Martinez b1472b4b01 Fix twemoji base
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-15 15:46:12 +01:00
Sebastian Martinez f38893407a Add hash routing
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-15 15:24:12 +01:00
Sebastian Martinez cd60ad7298 Convert emojis to twemojis
To provide the same emoji experience on all browsers and OS we use
Twemoji and replace all emojis where possible.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-15 15:10:48 +01:00
Sebastian Martinez ae9d9b4024 Don't replace history stack when looking up profiles
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-08 20:42:33 +01:00
Sebastian Martinez d68e6c7f0a Improve display of lastCommit in Blob component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-07 23:25:48 +01:00
Rūdolfs Ošiņš 1254d15d3d Upgrade dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-11-07 18:05:06 +01:00
Rūdolfs Ošiņš bc43fc4fef Make all Svelte events type-safe
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-11-07 18:00:24 +01:00
Sebastian Martinez 83d943177b Add line-height: 1.625 to li and ol elements
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-07 17:56:51 +01:00
Sebastian Martinez 2c085c92fa Add smoke check for production builds
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-07 17:53:19 +01:00
Rūdolfs Ošiņš 7088a990a2 Use node 18.12.1 LTS everywhere consistently
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-11-07 15:23:21 +01:00