Commit Graph
2316 Commits
Author SHA1 Message Date
dnlklmn 3c6c5ece1f Tweak issue list 2024-01-17 13:58:05 +00:00
Sebastian Martinez 25160bb39c Capitalize cob state badge 2024-01-16 12:16:54 +01:00
Sebastian Martinez a7c0aea1b3 Move patch and issue icons into state badge 2024-01-16 12:11:05 +01:00
dnlklmn f038827231 Move RID to project header 2024-01-15 18:28:22 +00:00
dnlklmn 4e3de0f378 Remove Local Device from breadcrumbs 2024-01-15 18:28:22 +00:00
dnlklmn 1e712344a0 Rename Home to Source 2024-01-15 18:28:22 +00:00
dnlklmn 2915226524 Make buttons regular size - 32px tall 2024-01-15 18:28:22 +00:00
dnlklmn 2dc57689fa Fix button colors 2024-01-15 18:28:22 +00:00
dnlklmn 0d82d53289 Make peer and branch selectors bigger 2024-01-15 18:28:22 +00:00
dnlklmn 68cff4625d Tweak file tree
Change file tree icons and text to small. Align icons with Files tab icon.
2024-01-15 18:28:22 +00:00
Rūdolfs Ošiņš 8e580385f0 Tweak tab visuals
Make selected tabs not change on hover. Change unselected tabs to use regular
font weight and foreground-contrast.
2024-01-15 18:28:22 +00:00
Sebastian Martinez 87afc6204c Add embeds also to revisions 2024-01-15 15:43:24 +00:00
Sebastian Martinez cc08490eeb Add --no-announce to patch comment creation for stdout 2024-01-15 15:43:24 +00:00
Sebastian Martinez aed8538218 Add embeds to patch descriptions
Also adds an array of edits to a new `edits` field which we can show to
show edits to the patch description
2024-01-15 15:43:23 +00:00
Sebastian Martinez 28598e65cd Shrink source blob elements on overflow 2024-01-15 15:15:33 +00:00
Sebastian Martinez d5c91f707e Add listen property to node schema 2024-01-15 13:16:11 +00:00
cloudhead b80e6d479d cli: Output explore URLs on push 2024-01-12 13:24:11 +01:00
Sebastian Martinez 2410aa1bc9 Allow patch descriptions to be empty 2024-01-09 14:54:50 +01:00
Sebastian Martinez 0a4d224253 httpd: Change node id in / and add version to /node 2024-01-09 13:59:23 +01:00
Sebastian Martinez 81f7d5640b httpd: Add /api/v1/profile route to get entire profile
That route is limited for requests that come from a loopback IP.
2024-01-09 13:59:23 +01:00
cloudhead 2d88a1241b httpd: rad web --connect takes an argument
To be able to connect to any running httpd, have `--connect` take the
address of the running daemon.
2024-01-09 13:33:26 +01:00
Rūdolfs Ošiņš a7bf9208ff Remove old mobile theme background color
It's enough to just fall back on the default background color.
2024-01-05 18:33:12 +00:00
Rūdolfs Ošiņš a73ad66e06 Tweak app header and footer
Adds a border bottom to the header and makes sure footer sticks to the
bottom.
2024-01-05 18:32:16 +00:00
Rūdolfs Ošiņš 5684b8ef42 Refactor visual tests
We use built in devices for testing instead of our own custom ones.
Split up desktop and mobile visual tests for better separation.
2024-01-05 17:45:20 +00:00
Rūdolfs Ošiņš e194de4218 Two column layout refactor
We use a grid layout and let the browser calculate everything instead of
relying on JavaScript.
2024-01-05 15:22:56 +00:00
Rūdolfs Ošiņš b3e212ff5b Load theme in top-level App.svelte
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.
2024-01-02 14:25:59 +00:00
Rūdolfs Ošiņš d4ca379245 Remove source file tree top and bottom borders 2024-01-02 11:48:19 +00:00
Rūdolfs Ošiņš 08d16dbbeb Implement two column layout 2024-01-02 11:48:19 +00:00
Sebastian Martinez 60af912661 httpd: Add edits field to revision json 2023-12-22 15:17:25 +01:00
Sebastian Martinez b074090104 httpd: Allow edit revision embeds 2023-12-22 15:09:20 +01:00
Sebastian Martinez f0edd11e58 radicle: Move DataUri to common::DataUri 2023-12-22 15:09:20 +01:00
Fintan Halpenny 2cbfb6dd53 cob: mandatory Oid in CodeLocation
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
2023-12-22 15:00:42 +01:00
Sebastian Martinez 1a63024a58 cob: improve Comment generics
`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>
2023-12-22 14:09:02 +01:00
Sebastian Martinez 56eefb86fa Check that the rad binary used is the same as added to PATH
We weren't checking that the binary that we want to use for the test
suite, is the one we end up using.
2023-12-22 12:52:21 +00:00
Sebastian Martinez 4912d85198 Add editing of revisions 2023-12-21 20:35:11 +01:00
Sebastian Martinez ecba243526 Remove process.exit in killAllProcesses 2023-12-21 14:48:09 +00:00
Sebastian Martinez 2472938bf1 Simplify TextInput
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.
2023-12-21 14:05:17 +00:00
Sebastian Martinez 851a444b5d Fix failing e2e tests
We had e2e tests failing for the new Assignee and LabelInput components,
and due to the changes to the SeedButton.
2023-12-21 14:25:15 +01:00
Sebastian Martinez a9eefd1645 Fix authenticatedPeer fixture 2023-12-21 12:47:23 +00:00
Rūdolfs Ošiņš 5141f3e340 Show Connect button only when not connected and authenticated 2023-12-21 11:53:58 +00:00
dnlklmn 99a0d8d6f2 Fix gray colors 2023-12-19 17:00:09 +00:00
Sebastian Martinez 8152cda2ac Allow track and untrack of a project through the TrackButton
- 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
2023-12-19 16:47:08 +01:00
Sebastian Martinez 5f116cff95 Remove latestCommitHeader and sorting by head from loadProjects
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.
2023-12-19 15:21:52 +00:00
Sebastian Martinez 55f8f4ba87 Improve assignee and label input 2023-12-19 14:52:23 +00:00
Thomas Scholtes 2b03aec645 Implement simplified authentication flow
We change the instructions to connect to a local node to use the
simplified authentication flow.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-12-19 13:49:53 +00:00
Thomas Scholtes 5bd4e171e4 rad-web runs HTTP API and connects web app
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>
2023-12-19 13:14:07 +01:00
Sebastian Martinez 4c16c2724f httpd: Update axum and hyper dependency 2023-12-15 12:08:43 +01:00
Sebastian Martinez 448c762831 Show edited label on edited comments and issues
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.
2023-12-15 07:10:14 +01:00
Sebastian Martinez 10c54ace67 Remove disableEdit from Comment 2023-12-14 19:10:23 +01:00
Sebastian Martinez 66369f98d9 httpd: Cleaning up api::json and review comments 2023-12-13 12:37:10 +01:00