From 3ac5b10dec4686c3e02faaf1bacf4f005c9f212d Mon Sep 17 00:00:00 2001 From: Echo Date: Thu, 19 Feb 2026 14:53:29 +0100 Subject: [PATCH] [Glitch] Profile editing: Name and bio Port ed4787c1b1de1d7491719be0f45b7a7f16af8c0d to glitch-soc Signed-off-by: Claire --- .../glitch/components/account_bio.tsx | 2 +- .../form_fields/text_area_field.stories.tsx | 7 ++ .../form_fields/text_area_field.tsx | 91 ++++++++------ .../account_edit/components/bio_modal.tsx | 94 ++++++++++++++ .../account_edit/components/char_counter.tsx | 27 ++++ .../account_edit/components/emoji_picker.tsx | 27 ++++ .../account_edit/components/name_modal.tsx | 87 +++++++++++++ .../account_edit/components/section.tsx | 62 ++++++++++ .../glitch/features/account_edit/index.tsx | 117 +++++++++++++++++- .../features/account_edit/styles.module.scss | 106 ++++++++++++++-- .../account_timeline/modals/note_modal.tsx | 2 +- .../flavours/glitch/features/emoji/utils.ts | 18 +++ .../confirmation_modal.tsx | 16 ++- .../components/confirmation_modals/index.ts | 1 + .../quiet_post_quote_info.tsx | 4 +- .../features/ui/components/modal_root.jsx | 2 + 16 files changed, 602 insertions(+), 61 deletions(-) create mode 100644 app/javascript/flavours/glitch/features/account_edit/components/bio_modal.tsx create mode 100644 app/javascript/flavours/glitch/features/account_edit/components/char_counter.tsx create mode 100644 app/javascript/flavours/glitch/features/account_edit/components/emoji_picker.tsx create mode 100644 app/javascript/flavours/glitch/features/account_edit/components/name_modal.tsx create mode 100644 app/javascript/flavours/glitch/features/account_edit/components/section.tsx diff --git a/app/javascript/flavours/glitch/components/account_bio.tsx b/app/javascript/flavours/glitch/components/account_bio.tsx index 6d4ab1ddd4..75067530c9 100644 --- a/app/javascript/flavours/glitch/components/account_bio.tsx +++ b/app/javascript/flavours/glitch/components/account_bio.tsx @@ -6,7 +6,7 @@ import { EmojiHTML } from './emoji/html'; import { useElementHandledLink } from './status/handled_link'; interface AccountBioProps { - className: string; + className?: string; accountId: string; showDropdown?: boolean; } diff --git a/app/javascript/flavours/glitch/components/form_fields/text_area_field.stories.tsx b/app/javascript/flavours/glitch/components/form_fields/text_area_field.stories.tsx index 448af8a28e..190239aee2 100644 --- a/app/javascript/flavours/glitch/components/form_fields/text_area_field.stories.tsx +++ b/app/javascript/flavours/glitch/components/form_fields/text_area_field.stories.tsx @@ -42,6 +42,13 @@ export const WithError: Story = { }, }; +export const AutoSize: Story = { + args: { + autoSize: true, + defaultValue: 'This textarea will grow as you type more lines.', + }, +}; + export const Plain: Story = { render(args) { return