- 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>
* 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>
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>
* 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>
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>
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>