Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Drop revisions sidebar from patch view
Brandon Oxendine committed 1 month ago
commit 667cbf79e458133b27d59fca2252482b98d0eeeb
parent fc62ee9941b77df971c8e330f283cc9eebd67cf2
1 file changed +1 -51
modified src/views/repo/Patch.svelte
@@ -1,5 +1,4 @@
<script lang="ts">
-
  import type { PatchStatus } from "./router";
  import type { Operation } from "@bindings/cob/Operation";
  import type { Action } from "@bindings/cob/patch/Action";
  import type { Patch } from "@bindings/cob/patch/Patch";
@@ -33,7 +32,6 @@
  import PatchTimeline from "@app/components/PatchTimeline.svelte";
  import ReviewComponent from "@app/components/Review.svelte";
  import RevisionComponent from "@app/components/Revision.svelte";
-
  import Revisions from "@app/components/Revisions.svelte";
  import ScrollArea from "@app/components/ScrollArea.svelte";

  import Layout from "./Layout.svelte";
@@ -44,23 +42,13 @@
    revisions: Revision[];
    config: Config;
    activity: Operation<Action>[];
-
    status: PatchStatus | undefined;
    review: Review | DraftReview | undefined;
  }

  /* eslint-disable prefer-const */
-
  let {
-
    repo,
-
    patch,
-
    revisions,
-
    config,
-
    status: initialStatus,
-
    activity,
-
    review,
-
  }: Props = $props();
+
  let { repo, patch, revisions, config, activity, review }: Props = $props();
  /* eslint-enable prefer-const */

-
  const status = initialStatus;
  let tab: "patch" | "revisions" | "timeline" = $state(
    revisions.length > 1 ? "revisions" : "patch",
  );
@@ -363,25 +351,6 @@
                {repo}
                {saveState}
                horizontal />
-
              <div style:padding="0.5rem" style:margin-bottom="1rem">
-
                <div
-
                  class="txt-body-m-regular"
-
                  style:margin-bottom="1rem"
-
                  style:color="var(--color-text-secondary)">
-
                  Revisions
-
                </div>
-
                <Revisions
-
                  {config}
-
                  rid={repo.rid}
-
                  selectRevision={rev => {
-
                    selectedRevision = rev;
-
                    tab = "revisions";
-
                  }}
-
                  {patch}
-
                  {revisions}
-
                  {selectedRevision}
-
                  {status} />
-
              </div>
            </div>

            <RevisionComponent
@@ -428,25 +397,6 @@

          <div class="sidebar">
            <PatchMetadata {config} {loadPatch} {patch} {repo} {saveState} />
-
            <div style:padding="0.5rem" style:margin-top="0.5rem">
-
              <div
-
                class="txt-body-m-regular"
-
                style:margin-bottom="1rem"
-
                style:color="var(--color-text-secondary)">
-
                Revisions
-
              </div>
-
              <Revisions
-
                {config}
-
                rid={repo.rid}
-
                selectRevision={rev => {
-
                  selectedRevision = rev;
-
                  tab = "revisions";
-
                }}
-
                {patch}
-
                {revisions}
-
                {selectedRevision}
-
                {status} />
-
            </div>
          </div>
        </div>
      </ScrollArea>