Commit Graph
988 Commits
Author SHA1 Message Date
Sebastian Martinez b2c82b06bd Improve vesting discovery and error messages
When loading a ETH address as vesting contract we show a cryptic error
message, which non tech-savy end users don't understand, this commit
changes it to something more human readable.

We allow users to enter and load a contract that probably isn't a
vesting contract.

The `getInfo` function in the `vesting` folder is very prone to possible
errors, and benefits from some parallelization between all the method
calls.

We allow hereby to enter a contract address in search and once on the
contract profile page we provide a link to the detailed vesting
information if available.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-01-10 14:15:08 +01:00
Adam Szkoda 8df7d66419 Download radicle-httpd executable for e2e tests
Signed-off-by: Adam Szkoda <adaszko@gmail.com>
2023-01-09 15:25:12 +01:00
Rūdolfs Ošiņš a301224c58 Chunk more imports to reduce individual chunk size
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-01-09 10:45:01 +01:00
Rūdolfs Ošiņš ccacd824a6 Update dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-01-09 10:39:48 +01:00
Sebastian Martinez 1143737c89 Always format ETH address in Profile component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-01-06 16:07:43 +01:00
Sebastian Martinez c7cb461586 Convert URLs in project descriptions to anchor tags
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-01-06 15:51:27 +01:00
Rūdolfs Ošiņš 972b5ccf20 Remove playwright dependency install steps
It seems like the tests on CI work just fine without installing the
deps. We assume the deps are already installed in the ubuntu image.

This saves build time and our builds still work when the azure servers
that provide the deps are down.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-01-06 15:25:54 +01:00
Rūdolfs Ošiņš d8dd0d8e5b Fix flaky landingPage visual spec
This makes sure that the stubs are always loaded before the app.
We assume that previously the load order was not deterministic due to
the dynamic import.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-01-06 14:53:54 +01:00
Sebastian Martinez 4b58539eff Vendor onig WASM dependency
Instead of letting `starry-night` fetch the `vscode-oniguruma` WASM, we
fetch it from the `node_modules` folder and do the same in the e2e
tests.
For this to work we need to update `starry-night` to version `1.5.0`

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-01-05 14:51:26 +01:00
Rūdolfs Ošiņš c3c3d06380 Split up visual markdown specs into sections
So that it's easier to spot changes.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-01-04 17:37:06 +01:00
Rūdolfs Ošiņš 57600c8adf Remove *.log files from snapshot artifacts
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-01-04 17:37:06 +01:00
Alexis Sellier d31981f4ad Fix nested list margin
This makes the ToCs better looking, for example.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2023-01-04 11:32:55 +01:00
Alexis Sellier 90e420b430 Fix a couple of markdown styles
It looks like there was maybe a regression at some point and
we lost the colors on the code and blockquote blocks. This adds
them back. We also give blockquotes some padding like regular
paragraphs.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2023-01-04 11:32:55 +01:00
Sebastian Martinez a76f789636 Reset search input on user navigation
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-01-04 11:31:33 +01:00
xphoniexandRūdolfs Ošiņš f72405a3e4 Add support for Heartwood
Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-01-04 11:20:14 +01:00
Rūdolfs Ošiņš adc159a71e Fix regression in patches feature
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-29 15:58:11 +01:00
Rūdolfs Ošiņš cc416bcbf8 Fix svelte complaining about types
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-29 15:56:55 +01:00
Rūdolfs Ošiņš cd9b2adcdd Rename label -> tag
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-29 13:45:52 +01:00
Rūdolfs Ošiņš 5f0d187ecd Undo line diff type change, it was unnecessary
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-29 11:48:05 +01:00
Rūdolfs Ošiņšandxphoniex 4bb34023c2 Add Heartwood translation layer for file diffs
Co-authored-by: xphoniex <dj.2dixx@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-29 09:58:59 +01:00
Sebastian Martinez ca10a69ee5 Update dependencies
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-28 22:43:56 +01:00
Sebastian Martinez d6dbc16909 Fix querystring handling for issues and patches
There were some issues in how we handled the state param in the url
querystring in the issue and patch listings.
This commit should improve this, and allow for better usage of
querystring params in the future.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-12-28 16:12:43 +01:00
Rūdolfs Ošiņšandxphoniex 25edd969f8 Rename Seed class attributes
seed.api -> seed.addr
seed.link -> seed.node

Co-authored-by: xphoniex <dj.2dixx@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-28 15:28:34 +01:00
Rūdolfs Ošiņšandxphoniex 26f96990a4 Extract fixture specific variables
Co-authored-by: xphoniex <dj.2dixx@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-28 12:23:28 +01:00
Rūdolfs Ošiņšandxphoniex 1a5430aced Rename URN -> ID
Co-authored-by: xphoniex <dj.2dixx@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-27 15:43:46 +01:00
Rūdolfs Ošiņš caa83db480 Organise files more consistently
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-22 16:46:08 +01:00
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