mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
feat(desktop): replace placeholder icon with actual app icon on welcome screen (#1527)
Signed-off-by: klopez4212 <klopez4212@gmail.com>
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
@@ -1,5 +1,4 @@
|
||||
import * as React from "react";
|
||||
import { Hexagon } from "lucide-react";
|
||||
import { flushSync } from "react-dom";
|
||||
|
||||
import {
|
||||
@@ -222,9 +221,12 @@ export function WelcomeSetup({
|
||||
effect={welcomeEffect}
|
||||
transitionKey={`welcome-${welcomeEffect}-${transitionDirection}`}
|
||||
>
|
||||
<div className="flex h-14 w-14 items-center justify-center rounded-lg border border-border bg-background text-foreground shadow-xs">
|
||||
<Hexagon className="h-7 w-7" aria-hidden="true" />
|
||||
</div>
|
||||
<img
|
||||
alt="Buzz"
|
||||
className="h-14 w-14 rounded-xl shadow-xs"
|
||||
src="/app-icon@2x.png"
|
||||
srcSet="/app-icon@2x.png 1x, /app-icon@3x.png 2x"
|
||||
/>
|
||||
|
||||
<h1 className="mt-6 text-3xl font-semibold tracking-tight">
|
||||
Welcome to Buzz
|
||||
|
||||
@@ -99,11 +99,15 @@ test("owner can edit their owned agent's message", async ({ page }) => {
|
||||
// Edit banner must appear confirming edit mode is active.
|
||||
await expect(page.getByTestId("edit-target")).toBeVisible({ timeout: 5_000 });
|
||||
|
||||
// Clear the composer and type the new content, then submit.
|
||||
// Wait for the editor to be populated with the original message content
|
||||
// (edit mode calls richText.setContent which is async in Tiptap's
|
||||
// transaction pipeline). Then select-all and type the replacement.
|
||||
const input = page.getByTestId("message-input");
|
||||
await input.clear();
|
||||
await input.fill(editedContent);
|
||||
await input.press("Enter");
|
||||
await expect(input).not.toBeEmpty({ timeout: 5_000 });
|
||||
await input.click();
|
||||
await page.keyboard.press("ControlOrMeta+A");
|
||||
await page.keyboard.type(editedContent);
|
||||
await page.keyboard.press("Enter");
|
||||
|
||||
// Edit mode must exit (banner gone) and the updated content must render.
|
||||
await expect(page.getByTestId("edit-target")).toBeHidden();
|
||||
|
||||
Reference in New Issue
Block a user