icknpcyaf: Redesign the composer with toolbar, emoji popover, attachment row and flip Post

This commit is contained in:
2026-10-19 22:19:57 -06:00
parent 7321acdde6
commit f250cdf09c
10 changed files with 671 additions and 62 deletions
+2 -1
View File
@@ -158,7 +158,8 @@ describe("Composer", () => {
const html = renderToStaticMarkup(createElement(Composer, { ...base, file: f, onFile: () => {} }));
expect(html).toContain("Add image");
expect(html).toContain("photo.jpg");
expect(html).not.toMatch(/<button[^>]*class="composer-post"[^>]*disabled/);
expect(html).toMatch(/<button[^>]*type="submit"[^>]*class="[^"]*composer-post/);
expect(html).not.toMatch(/<button[^>]*class="[^"]*composer-post[^"]*"[^>]*disabled/);
});
it("keeps the text and the image name on a publish failure", () => {
const f = new File(["x"], "sunset.png", { type: "image/png" });