Previously the theme was only loaded when the <ThemeSettings> component
was loaded in the footer. This stopped working since we removed the
layout around the loading spinner.
To make `CodeLocation` reusable across different components, require
that a commit's `Oid` is part of the struct.
An `Oid` is necessary since the `path` can refer to a path at any
point in time throughout the history of the repository. By pinning the
commit that is being referred to, the path will refer to the path
within the associated tree [of the commit].
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
`Infallible` is a more appropriate type in comparsion to `()` for
comments that do not require a `CodeLocation`.
That is because if the type for `location` is `Option<()>`, this means
that `Some(())` can be constructed, however, we never intend to
construct that variant. On the other hand, `Infallible` can never be
constructed, and so, only `None` can be used.
This requires updates to some functions to use the generic `T` and
also handle the different kinds of `Comment`s -- `Infallible` and
`CodeLocation`.
X-Co-Authored-By: Fintan Halpenny <fintan.halpenny@gmail.com>
Extracts the validation message out of the `TextInput` component.
For a nice and flexible layout we should render the validation message
outside of the `TextInput` component and just do text input.
- Add support for checking the tracking table from `radicle-httpd` to
get a more precise information if the project is being tracked by the
local node.
- If a user isn't authenticated with their local httpd instance, we
still show the Popover to explain how to do it on the CLI
Querying all the head commits for every project that is to be shown in a
nodes listing, can get compute intensive and only required for sorting,
which is now done by the `radicle-httpd`.
It is also error prone e.g. when a project has some issue with some of the
commits it can bring down the entire project listing.
This commit also introduces a small console.error for debugging and a
gracefull fallback to hide project activity if an error ocurrs.
We change the instructions to connect to a local node to use the
simplified authentication flow.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
Instead of `rad-web` just creating a session for an already running HTTP
API the command now starts the HTTP API, creates a session and opens the
authentication link.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
If a comment or an issue had at least one additional edit, we show a `edited` label,
which on hover shows the standard tooltip with more information on
who edited it and when.