Commit Graph
100 Commits
Author SHA1 Message Date
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
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
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
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ņš 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
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
Rūdolfs Ošiņš 955ec7f240 Add more eslint rules
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-11-04 15:10:26 +01:00
Rūdolfs Ošiņš 053af7a25c Upgrade dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-11-03 16:40:23 +01:00
Rūdolfs Ošiņš d885b4076d Correctly detect custom HTTP API ports
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-11-03 09:37:27 +01: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
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
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
Rūdolfs Ošiņš 47a9d2af71 Exit editable form state when pressing "Cancel"
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-27 15:00:10 +02: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ņš 7d651309b2 Change the seed on which "astrolabe" is hosted
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-22 11:27:37 +02:00
Rūdolfs Ošiņš 1548773d98 Show "No description" when project description missing
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-22 11:27:13 +02:00
Rūdolfs Ošiņš e7ff977abb Add more pinned projects
This replaces the one broken project that didn't load and adds 4 more
projects.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 17:56:22 +02:00
Rūdolfs Ošiņš 7f09f70c4c Fix style regression in clone button
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 15:10:21 +02:00
Rūdolfs Ošiņš 251f9681bc Fix mobile context menu
Refactor and inline the MobileNavbar component into Header. This fixes a
bug where it wasn't possible to close the context menu once it was open.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:39:01 +02:00
Rūdolfs Ošiņš 604d8f4f35 Show commit SHA below patch title
This fixes a visual regression.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:31:43 +02:00
Rūdolfs Ošiņš 163cbb4bb5 Style definition lists
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:25:39 +02:00
Rūdolfs Ošiņš db83df5a47 Add spacing around <hr /> tags
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:25:39 +02:00
Rūdolfs Ošiņš 1e3ca65ecb Format blockquotes
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:25:39 +02:00
Rūdolfs Ošiņš d8291bffb2 Style inline code blocks with a background
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:25:39 +02:00
Rūdolfs Ošiņš 37f6f7d15b Allow alt and title attributes for <img> tags in markdown
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:25:39 +02:00
Rūdolfs Ošiņš 7f3ca6afdb Adjust h6 styling
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:25:39 +02:00
Rūdolfs Ošiņš d32bad5b62 Get rid of <Input /> component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:19:30 +02:00
Rūdolfs Ošiņš b8e7239ba4 Extract <TextInput /> component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:19:30 +02:00
Rūdolfs Ošiņš 2f9c00ba4b Remove unused global styling
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:19:30 +02:00
Rūdolfs Ošiņš 91e3ed5c0b Get rid of <section> tag and global styling
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:19:30 +02:00
Rūdolfs Ošiņš e8d5c4c7bb Inline one-off global css class
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:19:30 +02:00
Rūdolfs Ošiņš 70b2368e47 Remove unused global button modifier class
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:19:30 +02:00
Rūdolfs Ošiņš fa4d528395 Align Edit button on registration form
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-19 12:46:37 +02:00
Rūdolfs Ošiņš 48b5c5bf07 Fix small alignment issues
- remove space between `path` and `filename` in Blob.svelte
- remove top margin from the first element in markdown docs
- fix Seed ID alignment on seed page

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-15 15:05:02 +02:00
Rūdolfs Ošiņš 5cb733e73b Use the ellipsis symbol consistently
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-15 12:52:13 +02:00
Rūdolfs OšiņšandBrandon Oxendine b35d46752f Add theme switching button
Co-authored-by: Brandon Oxendine <brandon.oxendine@gmail.com>
Signed-off-by: Brandon Oxendine <brandon.oxendine@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-15 12:45:56 +02:00
Rūdolfs Ošiņš 7a39306622 Undo markdown hard-wrapping
It breaks long hard-wrapped paragraphs in our RIPs.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-13 13:05:46 +02:00
Rūdolfs Ošiņš 538c6d90c1 Remove global table styling
Inline it where appropriate. Style markdown tables properly.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-13 10:30:50 +02:00
Rūdolfs Ošiņš 81b60ab229 Move register button to the right side in the header
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-13 10:28:59 +02:00
Rūdolfs Ošiņš 78362cc700 Fix relative markdown links
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-13 10:28:14 +02:00
Rūdolfs Ošiņš ca8e4dce31 Fix form field alignment
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-09 17:24:22 +02:00
Rūdolfs Ošiņš 591c19a256 Refactor typography styles
- Move all global typography styles to its own file. This makes it
  easier to find all the typography related definitions for newcomers.

- Prefix all typography related global CSS classes with a unique prefix
  `.txt-`. This allows us to grep the codebase and see exactly where
  they are applied. Another benefit of this convention is that it helps
  to avoid accidentally mixing global and local styles. Having global
  CSS classes that sometimes overlap with component CSS classes makes it
  very hard to reason about the resulting visuals and making changes
  unpredictable.

- Introduce CSS variables for standardised typography sizes and apply
  them to the whole codebase consistently. This way we can adjust the
  size in one place and it will be applied everywhere.

- Avoid using predefined HTML tags which might have differing styling
  from browser to browser, e.g. `<h1>`, `<strong>`. We should stick to
  applying styling either by adding a specific global CSS class or using
  the predefined CSS variables, this way we can be sure that the styles
  won't be overridden by browser defaults.

- Have a minimal set of modifiers `.txt-monospace` and `.txt-bold` and
  apply them consistently. Since `.txt-monospace` is defined via a CSS
  variable, we'll be able to switch out fonts via a user setting in the
  future.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-09 14:50:26 +02:00
Rūdolfs Ošiņš dc8a8f883c Extract Button component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-06 11:36:31 +02:00
Rūdolfs Ošiņš b9a2e9d954 Show loading indicators after a delay
This prevents from loading indicators flickering for a split second
during a page draw. For requests that take longer than 200ms we show the
loading animation.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-06 11:29:08 +02:00
Rūdolfs Ošiņš b3b3c06a03 Change import
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-02 15:13:06 +02:00
Rūdolfs Ošiņš dadd82d8e8 Improve CommitVerifiedBadge UX
- debounce hover events to prevent flickering when mousing over multiple badges
- keep the card visible while hovering over it
- show verified badge on the Commit page

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-01 16:40:44 +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
Rūdolfs Ošiņš 687174a8e0 Add prettier
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 11:26:42 +02:00
Rūdolfs Ošiņš 19d24340d9 Remove redundant .modal global styles
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 11:21:13 +02:00
Rūdolfs Ošiņš 3904ac30da Inline .dropdown, .popup
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 11:21:13 +02:00
Rūdolfs Ošiņš 0200fad482 Inline .notice
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 11:21:13 +02:00
Rūdolfs Ošiņš 6baf4b78ce Fix regression in Header component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 11:19:18 +02:00
Rūdolfs Ošiņš 3e76e55c6c Style created/deleted badges consistently
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 11:12:17 +02:00
Rūdolfs Ošiņš 0d6179d283 Fix badge alignment in dropdown
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 10:41:09 +02:00
Rūdolfs Ošiņš caac53a8f6 Extract ToggleButton component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 10:40:31 +02:00
Rūdolfs Ošiņš 93b7b6b2a0 Extract global .badge class into a component
By encapsulating the global `.badge` class into a component we make reasoning
about how badges look a bit easier, because now there's a single place
where it is defined. Otherwise it is not guaranteed that the class is
going to be applied to the correct html tag. This also makes combining
global CSS classes that don't make sense from a design perspective
impossible.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-30 12:12:19 +02:00