Commit Graph
227 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 91cfaf08b3 Add loading more commits in History component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-09 11:43:09 +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
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ņš 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ņš 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ņš 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
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ņš 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
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 3f373ff9d6 Add tooltips for Dropdowns
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-24 11:39:28 +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 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 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 38ba77c23b Add query string for issue state filtering
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-16 10:55:35 +02:00
Sebastian Martinez b4d8a5dc6f Add sorting of issues by timestamp
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-15 17:28:46 +02:00
Rūdolfs Ošiņš 65bf2ae386 Refactor project header modals
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-12 16:23:59 +02:00
Alexis Sellier 34698071c4 Styles fixes
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-08-11 20:27:45 +02:00
Brandon Oxendine 6edbd37c4c Unify border-radius
Signed-off-by: Brandon Oxendine <brandon.oxendine@gmail.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-08-08 18:31:49 +02:00
Alexis Sellier 2bc2b93e51 Fix <pre> tag visual bug
This was introduced by a svelte upgrade.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-08-08 17:42:03 +02:00
Sebastian Martinez 0c2fbe0e48 Fix spurious requests
* It uses the patches and issues count on ProjectInfo to reduce the
  amount of requests that are made to the seed nodes.
* It also adds the Delegate type used as a property in the Project class
  mirroring the radicle_common::project::Delegate enum, which currently
  was only represented as a string[].
* Removes also the maintainers property which isn't used anymore, and
  adds the remotes property.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-05 16:19:08 +02:00
Sebastian Martinez 7ae5317b54 Add placeholder for empty issue state
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-02 15:15:06 +02:00
Alexis Sellier 115934a38c Hide anchored widget behind a feature flag
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-08-01 16:26:08 +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
Alexis Sellier 46176bd46b Various patch improvements
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-08-01 15:51:12 +02:00
Sebastian Martinez 07d32f5cde Convert timestamp to relative format
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-01 13:06:35 +02:00
Sebastian Martinez 44193842fd Update Changeset
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-01 13:06:35 +02:00
Sebastian Martinez c5d5053f0c Add patches
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-01 13:06:30 +02:00
Sebastian Martinez cbbaadd330 Improve handling unresolved identities
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-07-13 14:25:42 +02:00
Brandon Oxendine b687d37b03 Unify button heights
Signed-off-by: Brandon Oxendine <brandon.oxendine@gmail.com>
2022-07-13 13:51:32 +02:00
Alexis Sellier 4f86bf13a2 Remove orgs listing until it is redesigned
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-07-12 18:08:42 +02:00
Sebastian Martinez 5d34f77bc3 Update author resolving to new API response
http-api has been updated to return a new type of Author e.g.

```json
"author": {
  "peer": "hyyg555wwkkutaysg6yr67qnu5d5ji54iur3n5uzzszndh8dp7ofue",
  "identity": {
    "urn": "rad:git:hnrk81wcokr48mkm544kh74kc9fqz84d3rfcy",
    "name": "sebastinez",
    "ens": {
      "name": "sebastinez.radicle.eth"
    }
  }
}
```

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-29 15:45:06 +02:00
Sebastian Martinez 638fecfc79 Update issue state to new serialization
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-22 13:49:11 +02:00
Sebastian Martinez b2c2aeea3c Fix issue fetching when not supported
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-09 09:27:11 +02:00
Alexis Sellier 3359d737fa Fix header widget border-radius
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-06-08 23:34:31 +02:00
Sebastian Martinez e6faced6f6 Change commit dates to formatTimestamp fn
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-08 23:34:31 +02:00
Sebastian Martinez aa62ef0bc1 Add issue listing and detail view
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-08 23:34:24 +02:00
Sebastian Martinez 82068580db Refactor button interaction classes into own class
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-03 16:56:40 +02:00
Sebastian Martinez 0d736ffdc9 Update component paths in project header
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-03 16:56:40 +02:00
Sebastian Martinez 5b11adc923 Refactor Project Metadata into own component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-03 16:56:40 +02:00
Sebastian Martinez ab7ba33182 Change Avatar address prop to title
We wont have always an address available to be passed as title for the Avatar
component, e.g. when working with URNs.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-03 16:56:40 +02:00