Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Add a shortcut button for going for inbox
Open rudolfs opened 1 year ago

As a first step we just add a shortcut that is visible on any page so we don’t need to click twice to get to the inbox.

Moving the inbox to a popover and adding the counter can be done in a follow-up later.

check check-e2e

πŸ‘‰ Workflow runs πŸ‘‰ Branch on GitHub

1 file changed +8 -4 0338e96d β†’ e99e5b17
modified src/components/Header.svelte
@@ -4,17 +4,16 @@
  import * as router from "@app/lib/router";
  import { nodeRunning } from "@app/lib/events";

+
  import Avatar from "./Avatar.svelte";
  import Icon from "./Icon.svelte";
  import NakedButton from "./NakedButton.svelte";
-
  import Avatar from "./Avatar.svelte";

  interface Props {
    publicKey: string;
    center?: Snippet;
-
    settingsButton?: Snippet;
  }

-
  const { center, settingsButton, publicKey }: Props = $props();
+
  const { center, publicKey }: Props = $props();
</script>

<style>
@@ -92,7 +91,12 @@
            Offline
          {/if}
        </div>
-
        {@render settingsButton?.()}
+
        <NakedButton
+
          variant="ghost"
+
          stylePadding="0 4px"
+
          onclick={() => router.push({ resource: "inbox" })}>
+
          <Icon name="inbox" />
+
        </NakedButton>
      </div>
    </div>
  </div>