Commit Graph
905 Commits
Author SHA1 Message Date
Sebastian Martinez c757f8df8b Handle empty string in Markdown component
We expect the `Markdown` component to receive a `content: string`, but
we also check if `content` is truthy before rendering anything, and this
can get messy when `content` is an empty string.

Fixed by removing the truthy check for `content`.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-10-28 11:05:13 +02:00
Rūdolfs Ošiņš 87c1d0f6e2 Upgrade dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-26 15:29:07 +02:00
Rūdolfs Ošiņš b73462e1b0 Remove explicit happy-dom dependency
It's not used explicitly in our codebase and vitest already pulls it in
as a peer dependency.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-25 15:06:03 +02:00
Sebastian Martinez 4e0ffd8619 Handle possible template comment in patch comment body
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-10-21 13:05:00 +02:00
Sebastian Martinez e7a7baca5e Close Revision selector in PatchTabBar after select
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-10-21 12:20:20 +02:00
Rūdolfs Ošiņš ab59f11727 Clean up config
Move constants that are tightly coupled to the implementation of
features and unlikely to change or be user configurable out of `config.json`.
Decouple configuration from wallet state.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-21 09:08:10 +02:00
Rūdolfs Ošiņš d792c62c92 Inline global gradient
We only use it in one place anyway. And components should be
self-contained, so they're easier to reason about.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-20 15:19:11 +02:00
Rūdolfs Ošiņš ae49c6fc56 Extract global layout classes into own file
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 18:02:21 +02:00
Rūdolfs Ošiņš ce68b15ca1 Add hover state to network faucet button
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 18:02:21 +02:00
Rūdolfs Ošiņš cfb1c5acd1 Simplify global anchor styles
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 18:02:21 +02:00
Rūdolfs Ošiņš ba8522c8ca Get rid of .error and .error-message global CSS classes
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 17:22:11 +02:00
Rūdolfs Ošiņš 78c76981e8 Remove unused error notification code
The store was never written to.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 17:22:11 +02:00
Rūdolfs Ošiņš fcbea6dac3 Move .faded -> .txt-faded
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 17:22:11 +02:00
Rūdolfs Ošiņš 1d186d5328 Move .label, secondary, .highlight -> .txt-highlight
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 17:22:11 +02:00
Rūdolfs Ošiņš afbcf8a72e Upgrade dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 15:00:22 +02:00
Rūdolfs Ošiņš 299d4791da Disable color palette hotkey in production
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 11:20:46 +02:00
Rūdolfs Ošiņš 8733636d6e Revert "Upgrade dependencies"
This reverts commit 885811eb9a.
2022-10-17 15:40:13 +02:00
Rūdolfs Ošiņš 885811eb9a Upgrade dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-17 10:19:32 +02:00
Rūdolfs Ošiņš 92c4353ba7 Replace Rinkeby testnet with Goerli
Rinkeby has been sunsetted in favour of Goerli after the Ethereum merge.

Deployed `phase0` from radicle-contracts, some vesting contracts and the
faucet from `radicle-faucet` to the Goerli testnet and adjusted the
code.

The `reverseRegistrar` was obtained from:
https://app.ens.domains/name/addr.reverse/details

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-13 10:27:07 +02:00
Rūdolfs Ošiņš 71b5ce7de2 Remove unused polyfills
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-12 14:47:49 +02:00
Rūdolfs Ošiņš b97d96a208 Upgrade transitive dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-12 14:47:49 +02:00
Rūdolfs Ošiņš b69213f5de Upgrade dependencies
Note: We get the following warning in the dev console after upgrading
vite from 3.0.3 -> 3.1.7:

    Module "buffer" has been externalized for browser compatibility.
    Cannot access "buffer.Buffer" in client code.

It comes from the transitive dependency `bn.js`, only versions 4.11.x are
affected. The warning is harmless and can be ignored. It should go away
once the direct dependencies upgrade to a newer version.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-12 14:47:49 +02:00
Rūdolfs Ošiņš 3c29b1a44d Upgrade svelte from 3.50.1 -> 3.51.0
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-12 14:46:13 +02:00
Rūdolfs Ošiņš f6165978f8 Remove remaining Gnosis safe code
This should have been removed in
cb12d8eeab.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-11 17:36:07 +02:00
Rūdolfs Ošiņš 0b27e4bbfd Remove unused utility functions
This also lets us get rid of the deprecated multibase and multihashses
dependencies.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-11 15:36:01 +02:00
Rūdolfs Ošiņš cb12d8eeab Remove deprecated Gnosis org functionality
This functionality is deprecated and the dependencies prevent us from
upgrading our stack.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-11 15:36:01 +02:00
Rūdolfs Ošiņš 4bac3fcfdc Remove deprecated anchoring functionality
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-10 17:37:02 +02:00
Rūdolfs Ošiņš aae40b0b32 Remove deprecated the Graph queries
We have run out of funds on the Graph and the org functionality in its
current form is deprecated.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-10 17:26:59 +02:00
Rūdolfs Ošiņš b261734b0a Remove all ceramic functionality
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-10 15:59:34 +02:00
Rūdolfs Ošiņš 7d1f226798 Rename Error component to ErrorModal
`Error` is a built-in type in typescript, we don't want to have an
accidental clash.

Bumped into this when doing:

    try {
      // ...
    } catch (error: unknown) {
      if(error instanceof Error) {
        // ...
      }
    }

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-08 10:11:39 +02:00
Rūdolfs Ošiņš 3ce7aada0f Refactor forms
- add a link to the faucet page from `Rinkeby` badge in header
- refactor the `<TextInput>` component to include
  - a loading indicator
  - a keyboard shortcut to submit the input by pressing the `enter` key
  - add a keyboard shortcut hint <kbd>⏎</kbd> that shows up whenever the
    input is ready to be submitted
  - a validation message
- align all pages with a single input form to have a similar look and feel
- improve validation messages and error handling in all forms

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-08 10:00:19 +02:00
Rūdolfs Ošiņš f215f9f4fd Make sure svelte-check checks component specs
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-07 17:48:06 +02:00
Sebastian Martinez 698f222d61 Show fetch more button only when more projects are available
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-10-06 14:14:57 +02:00
Osama El Hariri 9cb3928481 Make file tree sticky
Signed-off-by: Osama El Hariri <osama.hariri.dev@gmail.com>
2022-10-05 11:49:41 +02:00
Sebastian Martinez 8a4b5b2a49 Don't remove padding-top from pre code blocks at the beginning
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-10-05 10:23:53 +02:00
Sebastian Martinez a016e98169 Add katex render to Markdown
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-10-04 11:50:49 +02:00
Rūdolfs Ošiņš 8e3789b799 Bump transitive dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-04 08:36:51 +02:00
Rūdolfs Ošiņš 414593c221 Remove unused dependencies
- eventemitter3
- ethereum-blockies
- eip1193-provider
- walletconnect
- eslint-plugin-radicle
- typescript-eslint/parser
- types/sanitize-html

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-04 08:36:51 +02:00
Rūdolfs Ošiņš 0eccd2969f Clean up .eslintignore
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-30 17:13:53 +02:00
Rūdolfs Ošiņš d86eb2ee28 Remove unused polyfills
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-30 17:13:53 +02:00
Rūdolfs Ošiņš df49db3ded Replace custom rewrite middleware with vite plugin
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-30 17:13:16 +02:00
Rūdolfs Ošiņš 89ffddf854 Remove code coverage and it's dependencies
We weren't really using any of it.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-30 10:59:44 +02:00
Rūdolfs Ošiņš 46ae7982a6 Remove unused caip dependency
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-29 18:03:35 +02:00
Rūdolfs Ošiņš e69987296c Upgrade patch, minor and major-level dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-29 18:03:28 +02:00
Rūdolfs Ošiņš e8f372fb81 Upgrade typescript 4.7.4 -> 4.8.3
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-29 16:30:20 +02:00
Rūdolfs Ošiņš a6dd423c99 Upgrade @tsconfig/svelte 1.0.13 -> 3.0.0
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-29 16:30:18 +02:00
Rūdolfs Ošiņš e98e72cf1b Use new clients.radicle.xyz domain for some pinned projects
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-29 15:41:20 +02:00
Rūdolfs Ošiņš dab1770a13 Retry a test twice before giving up
We have some flaky tests in the test suite. This should take care of it.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-29 15:23:20 +02:00
Rūdolfs Ošiņš f5c4d8141f Leave mobile search context menu open if search fails
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-29 15:03:29 +02:00
Rūdolfs Ošiņš d0edc52831 Refactor search logic
- type events that are handed between components
- simplify the `resolve` function interface
  - before we had return values and exceptions, now just a single union
    type as return value
  - move navigation to the Search component to reduce its
    responsibilities
  - flatten and simplify multi-level branching
- shuffle around code
  - move the `resolve` function to the `Search` component module,
    because it's only used there

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-29 14:50:13 +02:00