Commit Graph
751 Commits
Author SHA1 Message Date
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
Sebastian Martinez 01e0116029 Add shake animation to search component when no results
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-29 14:50:13 +02:00
Sebastian Martinez 124dd75ac6 Add delegate badge to CommitAuthorship
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-28 14:47:15 +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
Sebastian Martinez ff267620a6 Fix project nav buttons height
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-26 15:55:02 +02:00
Sebastian Martinez c57bafb78d Lowercase ENS name search query
Since ENS names go through a UTS46 normalisation process
case-folds labels before hashing them.
So we shouldn't be ENS querying uppercase names.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-26 14:14:36 +02:00
Sebastian Martinez a47bffdddf Fix isSafe util function
We were calling `return query?.safe !== null ? true : false` but since
`query` can become `undefined` through the optional chaining operator,
    we were returning `true` if the query wasn't able to retrieve
    anything.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-23 18:13:40 +02:00
l2ig 21ae1210cc Stop TextInput keydown event propagation
Signed-off-by: grayliquid <l@l5d.li>
2022-09-23 16:41:32 +02:00
Sebastian Martinez c81e2862ab Move seeds.pinned out of network scope
Instead of defining the seeds in relation to the current network we
should be able to query them agnostic to the current connected network

This fixes issues with different search results depending on the
connected network

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-23 16:27:29 +02:00
Sebastian Martinez b65399f9b4 Handle subgraph API quota exhaustion
We had to improve the logic when the subgraph API quota has been exhausted.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-23 15:10:28 +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ņš 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
Sebastian Martinez 228c2b259f Add activity graph to compact project widget
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-21 10:49:17 +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
Alexis Sellier d690b0bda6 Fix styling of 'More' button
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-15 13:42:37 +02:00
Sebastian Martinez 138603ffd9 Improve search
Improve search heuristic and refactor search results to modal.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-15 13:06:34 +02:00
Sebastian Martinez 47e90aae70 Add getSeedEmoji util fn
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-15 12:55:46 +02:00
Sebastian Martinez 549140aab9 Add resolveMultiLabel util fn
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-15 12:55:46 +02:00
Sebastian Martinez 4ebf073c5b Refactor isFulfilled check into a utils function
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-15 12:55:46 +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
Sebastian Martinez c687c8d575 Use Metamask as provider before trying to use Alchemy
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-15 12:51:25 +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
Sebastian Martinez 271fcde43f Remove deprecated org parts
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-13 10:31:28 +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
Sebastian Martinez ff657efa93 Add local modifier to button transition in List
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-09 14:14:25 +02:00
Sebastian Martinez fa112e88d8 Remove project count on Card component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-09 11:43:29 +02:00
Sebastian Martinez 91cfaf08b3 Add loading more commits in History component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-09 11:43:09 +02:00
Sebastian Martinez b1e0c7a1b5 Add loading more projects
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-09 11:42:41 +02:00
Sebastian Martinez 733f5c6c8a Add List component for more generic List creation
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-09 11:40:56 +02:00