Commit Graph
32 Commits
Author SHA1 Message Date
Sebastian Martinez 846daf0b16 Fix mutation of commit listing in place
The commit listing on each patch revision started to be flaky when using
browser navigation. It seems like the `Array.sort()` call started to
reverse the order of the commit listing back to HEAD on top which isn't
what we wanted.
`Array.toReversed()` returns a fresh copy of the reversed array which is
less error prone.
2024-10-21 21:13:58 +02:00
Sebastian Martinez beaf6adbbf Update tsconfig target to es2021
This gives us support for String.replaceAll
2024-07-01 13:04:18 +02:00
Rūdolfs Ošiņš 2f1a5dcdfe Rename http-server -> radicle-httpd
So that the directory name matches the crate name.
2024-06-20 11:44:44 +02:00
Sebastian Martinez 23107912af Exclude http-server from eslint and tsconfig 2024-06-07 12:22:28 +02:00
Sebastian Martinez 2ee8bae82e Rename httpd-client to http-client 2024-06-07 12:22:28 +02:00
Sebastian Martinez caf2cf0ae2 Update dependencies 2024-03-04 22:08:57 +01:00
Sebastian Martinez 908c10b3a9 Update dependencies 2024-01-25 16:14:16 +00:00
Thomas Scholtes 5d4511e3a7 Fix noEmit option in tsconfig
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:37:13 +01:00
Sebastian Martinez 9f68848bc0 Update dependencies
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 07:56:26 +02:00
Thomas Scholtes 40f2b3e516 Tests automatically use heartwood binaries from local test folder
It’s not necessary anymore to add the folder with the heartwood test
binaries to `PATH` before running the end-to-end tests.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-06-29 11:34:53 +02:00
Sebastian Martinez cc70c24684 Remove unnecessary type definitions from vite and tsconfig
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-23 09:31:36 +02:00
Sebastian Martinez 233517aa6e Add noUnusedLocals and noUnusedParameters to tsconfig
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-07 18:01:18 +02:00
Rūdolfs Ošiņš 069b0949d5 Enable the @typescript-eslint/no-floating-promises rule
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-12 15:05:05 +02:00
Rūdolfs Ošiņš c8c251fabd Add httpd-client api library
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-11 15:31:08 +02:00
Rūdolfs Ošiņš 46666fd6da Fix tsconfig
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-03-28 18:12:12 +02:00
Sebastian Martinez c39ad9f520 Update dependencies
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-03-28 09:26:26 +02: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
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
Rūdolfs Ošiņš 9b8a9a46dd Upgrade Cypress dependency
This gets rid of the testing-library-* and cypress-vite-devserver
dependencies and updates the specs according to the latest Cypress
documentation.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-26 16:34:30 +02:00
Rūdolfs Ošiņš b3cec1f314 Format *.ts, *.js, *.css, *.html, *.json and *.svelte
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 17:47:07 +02:00
Alexis Sellier 213a8d7f0b Add verified badge popup
Signed-off-by: Alexis Sellier <self@cloudhead.io>
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-01 15:58:02 +02:00
Sebastian Martinez 2d7c535e14 Update Cypress to v10
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-09 08:34:10 +02:00
Sebastian Martinez 286cb1cd21 Improve testing suite
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-03-24 15:05:15 +01:00
Sebastian Martinez 4b79ad9ca7 Update marked to 4.0.12
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-02 13:00:43 +01:00
Sebastian Martinez 0a2481792c Add unit & integration testing
* Add Cypress component testing
* Add SeedAddress component testing
* Add Error component test
* Add Search component test
* Add code coverage instrumentation
* Add BranchSelector component testing
* Add coverage check to CI
* Require node version 14

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-31 16:05:23 +01:00
Sebastian Martinez 27a11c9b54 Replace snowpack with vite
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-06-18 09:21:42 -03:00
Alexis Sellier 4e8081136f Turn on source maps 2021-06-13 13:16:18 +02:00
Sebastian Martinez fabb6be496 Remove blockies type
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-06-13 11:44:14 +02:00
Alexis Sellier 8e73432703 Use Alchemy as fallback provider 2021-05-21 15:06:14 +02:00
Alexis Sellier 4ab188b6ed Move config to JSON, update tsconfig 2021-05-04 10:48:25 +02:00
Alexis Sellier 52919bcf1f Update tsconfig 2021-04-28 11:49:59 +02:00
Alexis Sellier a34b26384c Switch to TypeScript 2021-04-27 15:22:22 +02:00