Commit Graph
47 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
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ņš 6baf4b78ce Fix regression in Header component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 11:19:18 +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ņš 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ņš 65bf2ae386 Refactor project header modals
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-12 16:23:59 +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
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
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
Sebastian Martinez c5d5053f0c Add patches
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-01 13:06:30 +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 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 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
Alexis Sellier ebeac8d9b4 Default default branch not being found
We default to the first branch.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-30 14:05:58 +02:00
Alexis Sellier a84b5d0ec0 Mobile fixes for project view
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-27 11:57:41 +02:00
Sebastian Martinez 286cb1cd21 Improve testing suite
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-03-24 15:05:15 +01:00
Alexis Sellier dc7989b1ca Show peer selector in profile context
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-02 17:29:25 +01:00
Alexis Sellier 582ca41e5e Add Radicle CLI link
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-28 13:54:53 +01:00
Alexis Sellier 75b2fb672e Add rad-cli to clone dropdown
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-28 13:51:09 +01:00
Alexis Sellier 000e15c48a Add clipboard button to clone input
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-25 10:56:07 +01:00
Sebastian Martinez 856b53dae8 Add delegate info to peer selector
This commit also adds a highlight to the currently selected peer and
branch.

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-23 15:09:21 +01:00
Sebastian Martinez ee507215fb Refactor projects
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-21 22:42:52 -03:00
Alexis Sellier c58db9d278 Implement more simplifications
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-12 00:37:00 +01:00
Alexis Sellier 7e9e407382 Fix more reactivity issues
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-11 23:07:31 +01:00
Alexis Sellier b9c4cda4cf Refactor project reactivity
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-11 16:21:03 +01:00
Alexis Sellier e6f4441be7 Revise seed config
No longer use `Config` to store the seed config.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-09 13:27:12 +01:00
Alexis Sellier b26192f933 Start re-imagining anchors
* Anchors are loaded alongside projects, but project listings always
  come from seeds now
* Removing project info loading from `Widget`
* Start unifying anchor handling
* Rename "Project*" to "Anchor*" when appropriate
* Move to new project api with embedded metadata

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-09 10:36:03 +01:00
Sebastian Martinez 82a2ac6f64 Allow users to pass project names into URL
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-07 12:20:25 +01:00
Alexis Sellier 4b1e192b1f Add .git to clone URL
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-05 21:22:43 +01:00
Alexis Sellier 3a94e215ba Work on styles and visuals
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-05 21:09:37 +01:00
Sebastian Martinez 9a91e53619 Toggle peer and branch dropdown
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-04 21:54:59 +01:00
Sebastian Martinez 7ba5ce0f60 Refactor source params into separate object
We had a lot variables that we had to pass down from the project view,
and only very few where important to the reactivity of the components.

By using the resolved Promise from `getProject` as transport we can use
now the `source` variable and get the required params by destructuring
it.

In short we can pack now the following params:
```
urn, org, user, seed, peer, project, branches, peers, config, anchors
```

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-26 10:03:26 +01:00
Sebastian Martinez 34673adf4d Show project with anchor when no commit hash passed
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-18 20:47:22 +01:00
Alexis Sellier 2836397883 Make seed stat link to seed page
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-18 11:01:58 +01:00
Alexis Sellier 22437fcf4f Make small improvements to seed page
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-18 11:01:58 +01:00
Sebastian Martinez 83373ca507 Add peer selector
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-17 13:08:36 +01:00
Sebastian Martinez 3bced1f486 Improve display of project dropdowns
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-13 17:23:50 +01:00
Alexis Sellier 5ec1654676 Fix reactivity when browsing source
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-13 12:42:22 +01:00
Sebastian Martinez ddf7b27f55 Add branch browsing and selector
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-13 10:37:01 +01:00
Alexis Sellier b88d6c9c65 Fix border radius on commit
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-22 10:38:19 +01:00
Alexis Sellier a473c04467 Improve commit history styling
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-21 15:51:10 +01:00
Sebastian Martinez 02eb4463c1 Add commits listing
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-20 13:39:05 +01:00
Sebastian Martinez 4b2c14e42e Refactor project browser
Extracts the header part of the project browser into a separate
component, some props and functions not necessary anymore in `Browser`
are passed into `Header` or into the superior project `View` and the
clickable parts of the header part are managed by Svelte Events.

This prepares the stage for commit listing and commit details.

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-17 22:42:30 +01:00