Commit Graph
707 Commits
Author SHA1 Message Date
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
Sebastian Martinez 4cd702e412 Fix emoji parser
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-07 13:04:54 +02:00
Alexis Sellier 771ed2aea7 Improve README reading experience
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-07 12:37:55 +02:00
Sebastian Martinez 4650721c6c Convert colon-delimited string emojis to unicode emojis
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-07 12:20:40 +02:00
Alexis Sellier 43837d1506 Fix button gap regression
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-09-06 11:49:08 +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ņš 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
Sebastian Martinez e5f9317436 Improve UX on issue and patches stats
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-31 10:42:38 +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
Sebastian Martinez c5eddde23f Add a name validation for dots at registration
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-30 20:41: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
Rūdolfs Ošiņš 94329d612f Require === and !== comparisons
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-30 12:09:27 +02:00
Rūdolfs Ošiņš 795d6c43f8 Require let or const instead of var
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-30 12:09:27 +02:00
Rūdolfs Ošiņš 853ed5c053 Require using const for variables that are never modified
And disallow modifying variables that are declared using `const`.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-30 12:09:27 +02:00
Rūdolfs Ošiņš 7c07baf35b Require using arrow functions as callbacks
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-30 12:09:27 +02:00
Rūdolfs Ošiņš 51808b13b4 Add missing max attribute to cache call
This gets rid of the UnboundedCacheWarning.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-25 14:44:17 +02:00
Sebastian Martinez 3a5527208b Implements activity endpoint for project graph
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 12:07:02 +02:00
Sebastian Martinez 7481808014 Add small explainer to the name registration form
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 11:48:30 +02:00
Sebastian Martinez 7304d1f429 Make a missing reverse record error less critical
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 11:41:09 +02:00
Sebastian Martinez 3f373ff9d6 Add tooltips for Dropdowns
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 11:39:28 +02:00
Sebastian Martinez 71c47a2046 Skip absolute image URLs for getImage in Markdown.svelte
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 11:38:12 +02:00
Sebastian Martinez a16814d9c3 Rename radicle.network to radicle.xyz
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 11:13:03 +02:00
Alexis Sellier 3d00fc39bb Style fixes
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-08-24 10:35:52 +02:00
Alexis Sellier dbfa9862dd Only have projects on home page
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-08-24 10:06:13 +02:00
Rūdolfs Ošiņš c4769c8127 Refactor icon component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-24 09:17:11 +02:00
Sebastian Martinez 8021f6396d Close clone popover when Clipboard icon clicked
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 09:13:55 +02:00
Rūdolfs Ošiņš 8bc659aff2 Remove unused component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-24 08:41:00 +02:00
Alexis Sellier 06d085bb1f Fix gradient banding issues
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-08-24 08:40:06 +02:00
Sebastian Martinez 513e487600 Update ethers to v5.7.0 and siwe to v2.0.5
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 08:40:06 +02:00
Sebastian Martinez 78e1cd1d93 Use ethers defaultProvider when in development mode
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 08:40:06 +02:00
Sebastian Martinez 0ba0feedf1 Improve Profile Edit and Transfer buttons
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 08:40:06 +02:00
Sebastian Martinez 34f575ad98 Add View File label to commit browse
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 08:40:06 +02:00
Sebastian Martinez e675e91638 Add Loader to project view
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 08:40:06 +02:00
Sebastian Martinez 694bb38b8a Add caching
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-18 16:31:09 +02:00
Sebastian Martinez 37ff143683 Add Loader to project count in Card
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-18 16:30:15 +02:00
Rūdolfs Ošiņš 63e18571a0 Hide debug logs
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-16 18:52:35 +02:00
Sebastian Martinez 38ba77c23b Add query string for issue state filtering
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-16 10:55:35 +02:00