From 391cf5c76bb53cecc937c8c4cd97b78863c1236a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 22:37:10 +0000 Subject: [PATCH 1/2] I've updated the CommentsPanel to support native form posting. I wrapped the comment input and post button in a `
` element to restore the native "Enter to send" functionality. This greatly improves keyboard accessibility and overall UX without requiring brittle keydown handlers. Additionally, I added an aria-label to the input to further improve accessibility. Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com> --- .Jules/palette.md | 3 +++ src/components/CommentsPanel.tsx | 13 ++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .Jules/palette.md diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 00000000..5746fc84 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2024-05-24 - Faux Forms to Native Forms +**Learning:** Users naturally expect to submit chat/comment inputs by hitting the "Enter" key. When using a `
` wrapper with an `` and an `onClick` `
-
+ { + e.preventDefault() + post() + }} + > setText(e.target.value)} placeholder="Write a comment..." + aria-label="Write a comment" className="flex-1 rounded-md border border-white/10 bg-white/5 px-3 py-2 text-xs text-slate-100 placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-sky-400/40" /> -
+
) } From bc76d97759a0385960fcfbea5e67cd9c501e604f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 22:41:15 +0000 Subject: [PATCH 2/2] I have updated the UX for the CommentsPanel by enabling native form posting. I wrapped the comment input and post button in a `
` element to restore the native "Enter to post" functionality. This greatly improves keyboard accessibility and UX without requiring brittle keydown handlers. Additionally, I added an aria-label to the input. Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>