Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Update stale Action typings
Open rudolfs opened 1 year ago

We forgot to update them when we changed it in the backend. This also fixes a bug in the front-end.

check check-e2e

👉 Workflow runs 👉 Branch on GitHub

2 files changed +2 -2 31b2d9a9 83554dc4
modified crates/radicle-types/bindings/cob/patch/Action.ts
@@ -29,7 +29,7 @@ export type Action =
    review: string;
    body: string;
    location?: CodeLocation;
-
    reply_to?: string;
+
    replyTo?: string;
    embeds?: Array<Embed>;
  }
  | {
modified src/components/PatchTimeline.svelte
@@ -311,7 +311,7 @@
        </div>
        <div class="wrapper">
          <NodeId {...authorForNodeId(op.author)} />
-
          {op.reply_to ? "replied to a comment" : "commented"} on review <Id
+
          {op.replyTo ? "replied to a comment" : "commented"} on review <Id
            id={op.review}
            variant="oid" />
          <div title={absoluteTimestamp(op.timestamp)}>