- Hello
- ,
-
- your identity has been created and stored on your machine.
-
-
- Your public key is
- {truncateDid(config.publicKey)}
-
- you can share this with anyone to find you on the network.
-
-
- {#if radicleInstalled()}
-
- Radicle CLI is setup
-
- {:else}
-
-
- Make sure to install
- Radicle CLI
-
-
- To be able to interact with repos on the Radicle network
- you'll need to install a node on your computer. This node
- will identify itself on the network with your keys to push
- and pull changes.
-
-
- To install the node and other Radicle CLI tooling, simply
- run the command below from your shell:
-
- {#if $nodeRunning}
- Your node is up and running, your changes will be synced
- automatically.
- {:else}
- Your node is not running, changes you make are safe but won't
- be announced.
- {/if}
-
-
- {/snippet}
-
+
+
+ import type { Config } from "@bindings/config/Config";
+
+ import { didFromPublicKey, truncateDid } from "@app/lib/utils";
+ import { radicleInstalled } from "@app/lib/checkRadicleCLI.svelte";
+
+ import Border from "@app/components/Border.svelte";
+ import Command from "@app/components/Command.svelte";
+ import CopyableId from "@app/components/CopyableId.svelte";
+ import Icon from "@app/components/Icon.svelte";
+ import NakedButton from "@app/components/NakedButton.svelte";
+ import NodeId from "@app/components/NodeId.svelte";
+ import Popover from "@app/components/Popover.svelte";
+ import RepoGuide from "@app/components/RepoGuide.svelte";
+
+ interface Props {
+ config: Config;
+ }
+ const { config }: Props = $props();
+
+
+
+
+
+ {#snippet toggle(onclick)}
+
+
+
+ {/snippet}
+ {#snippet popover()}
+
+
+
+ Getting started
+
+
+ Hello
+ ,
+
+ your identity has been created and stored on your machine.
+
+
+ Your public key is
+ {truncateDid(config.publicKey)}
+
+ you can share this with anyone to find you on the network.
+
+
+ {#if radicleInstalled()}
+
+ Radicle CLI is setup
+
+ {:else}
+
+
+ Make sure to install Radicle CLI
+
+
+ To be able to interact with repos on the Radicle network you'll
+ need to install a node on your computer. This node will identify
+ itself on the network with your keys to push and pull changes.
+
+
+ To install the node and other Radicle CLI tooling, simply run the
+ command below from your shell:
+
+ {#if $nodeRunning}
+ Your node is up and running, your changes will be synced
+ automatically.
+ {:else}
+ Your node is not running, changes you make are safe but won't be
+ announced.
+ {/if}
+
+ Clicking the buttons will create a blank review, add comments, a
+ summary, and your verdict after. Depending on your sync settings your
+ review might be published to the network right away. We are actively
+ working on draft reviews, stay tuned.
+
- Clicking the buttons will create a blank review, add comments, a
- summary, and your verdict after. Depending on your sync settings
- your review might be published to the network right away. We are
- actively working on draft reviews, stay tuned.
-
-
-
- {/snippet}
-
+
diff --git a/src/views/repo/Patch.svelte b/src/views/repo/Patch.svelte
index 9e91da011..f74225729 100644
--- a/src/views/repo/Patch.svelte
+++ b/src/views/repo/Patch.svelte
@@ -10,7 +10,6 @@
import type { Review } from "@bindings/cob/patch/Review";
import type { Revision } from "@bindings/cob/patch/Revision";
- import capitalize from "lodash/capitalize";
import fuzzysort from "fuzzysort";
import * as roles from "@app/lib/roles";
@@ -28,11 +27,8 @@
import AssigneeInput from "@app/components/AssigneeInput.svelte";
import Border from "@app/components/Border.svelte";
- import Button from "@app/components/Button.svelte";
- import Command from "@app/components/Command.svelte";
+ import CheckoutPatchButton from "@app/components/CheckoutPatchButton.svelte";
import CopyableId from "@app/components/CopyableId.svelte";
- import DropdownList from "@app/components/DropdownList.svelte";
- import DropdownListItem from "@app/components/DropdownListItem.svelte";
import EditableTitle from "@app/components/EditableTitle.svelte";
import Icon from "@app/components/Icon.svelte";
import LabelInput from "@app/components/LabelInput.svelte";
@@ -40,11 +36,10 @@
import Link from "@app/components/Link.svelte";
import NakedButton from "@app/components/NakedButton.svelte";
import NewPatchButton from "@app/components/NewPatchButton.svelte";
- import OutlineButton from "@app/components/OutlineButton.svelte";
import PatchStateButton from "@app/components/PatchStateButton.svelte";
+ import PatchStateFilterButton from "@app/components/PatchStateFilterButton.svelte";
import PatchTeaser from "@app/components/PatchTeaser.svelte";
import PatchTimeline from "@app/components/PatchTimeline.svelte";
- import Popover, { closeFocused } from "@app/components/Popover.svelte";
import ReviewComponent from "@app/components/Review.svelte";
import RevisionBadges from "@app/components/RevisionBadges.svelte";
import RevisionComponent from "@app/components/Revision.svelte";
@@ -104,13 +99,6 @@
more = patches.more;
});
- const checkoutCommand = $derived.by(() => {
- if (tab === "revisions" && selectedRevision.id !== patch.id) {
- return `rad patch checkout ${formatOid(patch.id)} --revision ${formatOid(selectedRevision.id)}`;
- } else {
- return `rad patch checkout ${formatOid(patch.id)}`;
- }
- });
const project = $derived(repo.payloads["xyz.radicle.project"]!);
async function updateTitle(newTitle: string) {
@@ -334,28 +322,6 @@
}
-{#snippet icons(status: PatchStatus | undefined)}
-