Skip to content

Conversation

@stephl3
Copy link
Collaborator

@stephl3 stephl3 commented Oct 7, 2025

✍️ Proposed changes

This PR improves the send button disabled state during loading. Key changes include:

  • Added onClickStop prop that fires when the stop button is clicked during loading state
  • When stop is triggered, the previous message body is automatically restored to the input field
  • Introduced shared restorePreviousMessage helper function used by both stop and error state handling
  • Fixed send button to remain enabled during loading state (even with empty message body) to allow users to stop the request. The disabled and disableSend props still take precedence and will disable the button regardless of loading state

🎟️ Jira ticket: LG-5600

✅ Checklist

  • I have added stories/tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have run pnpm changeset and documented my changes

🧪 How to test changes

  1. Test basic stop functionality:

    • Render an InputBar with state={State.Loading} and onClickStop handler
    • Verify the send button is enabled even with empty message
    • Click the button and verify onClickStop is called
  2. Test message restoration:

    • Type a message and submit it to trigger loading state
    • While loading, click the stop button
    • Verify the previous message is restored to the input field
  3. Test disabled state precedence:

    • Set disabled={true} or disableSend={true} with state={State.Loading}
    • Verify the button remains disabled
  4. Test error state behavior:

    • Submit a message and transition to error state
    • Verify the previous message is restored (existing behavior maintained)
  5. Run tests: pnpm test -- --testPathPattern=input-bar - all 28 tests should pass

  6. Visual testing: Check Storybook to verify no console warnings in compact variant

Copilot AI review requested due to automatic review settings October 7, 2025 23:05
@stephl3 stephl3 requested a review from a team as a code owner October 7, 2025 23:05
@stephl3 stephl3 requested review from shaneeza and removed request for a team October 7, 2025 23:06
@changeset-bot
Copy link

changeset-bot bot commented Oct 7, 2025

🦋 Changeset detected

Latest commit: ae49f3f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lg-chat/input-bar Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@stephl3 stephl3 changed the base branch from main to steph/chat-input-bar-props October 7, 2025 23:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the InputBar component to improve user experience during loading states by adding stop functionality and fixing button disabled logic. The main purpose is to allow users to stop ongoing requests and restore their previous message content.

Key changes:

  • Added onClickStop prop for handling stop actions during loading state
  • Modified send button disabled logic to remain enabled during loading (unless explicitly disabled)
  • Changed shouldRenderGradient default from true to false to prevent console warnings

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
chat/input-bar/src/InputBar/InputBar.types.ts Added onClickStop prop definition and reorganized prop documentation
chat/input-bar/src/InputBar/InputBar.tsx Implemented stop functionality, updated button disabled logic, and added message restoration helper
chat/input-bar/src/InputBar/InputBar.spec.tsx Added comprehensive test coverage for the new stop functionality
chat/input-bar/README.md Updated documentation with new example and prop descriptions
.changeset/real-ears-wait.md Documented breaking and minor changes for the release

@stephl3 stephl3 requested review from TheSonOfThomp and removed request for shaneeza October 7, 2025 23:06
@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2025

Size Change: +388 B (+0.02%)

Total Size: 1.59 MB

Filename Size Change
chat/input-bar/dist/esm/index.js 7.84 kB +104 B (+1.34%)
chat/input-bar/dist/umd/index.js 8.08 kB +99 B (+1.24%)
packages/icon/dist/umd/index.js 35.7 kB +185 B (+0.52%)
ℹ️ View Unchanged
Filename Size
charts/chart-card/dist/esm/index.js 2.78 kB
charts/chart-card/dist/umd/index.js 2.95 kB
charts/colors/dist/esm/index.js 530 B
charts/colors/dist/umd/index.js 657 B
charts/core/dist/esm/index.js 16.1 kB
charts/core/dist/umd/index.js 16.4 kB
charts/drag-provider/dist/esm/index.js 1.37 kB
charts/drag-provider/dist/umd/index.js 1.49 kB
charts/legend/dist/esm/index.js 1.52 kB
charts/legend/dist/umd/index.js 1.69 kB
charts/series-provider/dist/esm/index.js 1.28 kB
charts/series-provider/dist/umd/index.js 1.41 kB
chat/avatar/dist/esm/index.js 1.36 kB
chat/avatar/dist/umd/index.js 1.53 kB
chat/chat-window/dist/esm/index.js 1.67 kB
chat/chat-window/dist/umd/index.js 1.85 kB
chat/fixed-chat-window/dist/esm/index.js 2.4 kB
chat/fixed-chat-window/dist/umd/index.js 2.59 kB
chat/leafygreen-chat-provider/dist/esm/index.js 957 B
chat/leafygreen-chat-provider/dist/umd/index.js 1.11 kB
chat/lg-markdown/dist/esm/index.js 2.19 kB
chat/lg-markdown/dist/umd/index.js 2.33 kB
chat/message-feed/dist/esm/index.js 2.8 kB
chat/message-feed/dist/umd/index.js 3.03 kB
chat/message-feedback/dist/esm/index.js 4.5 kB
chat/message-feedback/dist/umd/index.js 4.72 kB
chat/message-prompts/dist/esm/index.js 1.78 kB
chat/message-prompts/dist/umd/index.js 1.93 kB
chat/message-rating/dist/esm/index.js 2.58 kB
chat/message-rating/dist/umd/index.js 2.77 kB
chat/message/dist/esm/index.js 8.27 kB
chat/message/dist/umd/index.js 8.53 kB
chat/rich-links/dist/esm/index.js 2.38 kB
chat/rich-links/dist/umd/index.js 2.58 kB
chat/suggestions/dist/esm/index.js 1.65 kB
chat/suggestions/dist/esm/testing/index.js 55 B
chat/suggestions/dist/umd/index.js 1.85 kB
chat/suggestions/dist/umd/testing/index.js 113 B
chat/title-bar/dist/esm/index.js 1.38 kB
chat/title-bar/dist/umd/index.js 1.6 kB
packages/a11y/dist/esm/index.js 1.71 kB
packages/a11y/dist/umd/index.js 1.83 kB
packages/avatar/dist/esm/index.js 3.4 kB
packages/avatar/dist/umd/index.js 3.58 kB
packages/badge/dist/esm/index.js 1.47 kB
packages/badge/dist/umd/index.js 1.67 kB
packages/banner/dist/esm/index.js 3.19 kB
packages/banner/dist/umd/index.js 3.5 kB
packages/button/dist/esm/constants.js 121 B
packages/button/dist/esm/index.js 4.8 kB
packages/button/dist/esm/testing/index.js 321 B
packages/button/dist/umd/constants.js 262 B
packages/button/dist/umd/index.js 4.99 kB
packages/button/dist/umd/testing/index.js 443 B
packages/callout/dist/esm/index.js 1.55 kB
packages/callout/dist/umd/index.js 1.74 kB
packages/card/dist/esm/index.js 1.52 kB
packages/card/dist/umd/index.js 1.71 kB
packages/checkbox/dist/esm/index.js 4.28 kB
packages/checkbox/dist/umd/index.js 4.48 kB
packages/chip/dist/esm/index.js 3.21 kB
packages/chip/dist/umd/index.js 3.42 kB
packages/code-editor/dist/esm/index.js 15.5 kB
packages/code-editor/dist/esm/testing/index.js 4.2 kB
packages/code-editor/dist/umd/index.js 15.7 kB
packages/code-editor/dist/umd/testing/index.js 4.34 kB
packages/code/dist/esm/index.js 10.5 kB
packages/code/dist/esm/testing/index.js 11.3 kB
packages/code/dist/umd/index.js 11.1 kB
packages/code/dist/umd/testing/index.js 11.9 kB
packages/combobox/dist/esm/index.js 11.5 kB
packages/combobox/dist/umd/index.js 11.8 kB
packages/confirmation-modal/dist/esm/index.js 2.62 kB
packages/confirmation-modal/dist/umd/index.js 2.84 kB
packages/context-drawer/dist/esm/index.js 3.12 kB
packages/context-drawer/dist/esm/testing/index.js 3.52 kB
packages/context-drawer/dist/umd/index.js 3.29 kB
packages/context-drawer/dist/umd/testing/index.js 3.68 kB
packages/copyable/dist/esm/index.js 2.78 kB
packages/copyable/dist/umd/index.js 2.99 kB
packages/date-picker/dist/esm/index.js 13.6 kB
packages/date-picker/dist/umd/index.js 14 kB
packages/date-utils/dist/esm/index.js 2.7 kB
packages/date-utils/dist/esm/testing/index.js 1.35 kB
packages/date-utils/dist/umd/index.js 2.8 kB
packages/date-utils/dist/umd/testing/index.js 1.49 kB
packages/descendants/dist/esm/index.js 2.81 kB
packages/descendants/dist/umd/index.js 2.93 kB
packages/drawer/dist/esm/index.js 7.94 kB
packages/drawer/dist/esm/testing/index.js 490 B
packages/drawer/dist/umd/index.js 8.13 kB
packages/drawer/dist/umd/testing/index.js 610 B
packages/emotion/dist/esm/index.js 357 B
packages/emotion/dist/umd/index.js 571 B
packages/empty-state/dist/esm/index.js 1.75 kB
packages/empty-state/dist/umd/index.js 1.94 kB
packages/expandable-card/dist/esm/index.js 2.95 kB
packages/expandable-card/dist/esm/testing/index.js 3.47 kB
packages/expandable-card/dist/umd/index.js 3.2 kB
packages/expandable-card/dist/umd/testing/index.js 3.68 kB
packages/form-field/dist/esm/index.js 4.37 kB
packages/form-field/dist/umd/index.js 4.53 kB
packages/form-footer/dist/esm/index.js 1.69 kB
packages/form-footer/dist/umd/index.js 1.92 kB
packages/gallery-indicator/dist/esm/index.js 1.39 kB
packages/gallery-indicator/dist/esm/testing/index.js 351 B
packages/gallery-indicator/dist/umd/index.js 1.55 kB
packages/gallery-indicator/dist/umd/testing/index.js 481 B
packages/guide-cue/dist/esm/index.js 5.17 kB
packages/guide-cue/dist/umd/index.js 5.38 kB
packages/hooks/dist/esm/index.js 3.61 kB
packages/hooks/dist/umd/index.js 3.75 kB
packages/icon-button/dist/esm/index.js 2.28 kB
packages/icon-button/dist/umd/index.js 2.49 kB
packages/icon/dist/esm/ActivityFeed.js 1.11 kB
packages/icon/dist/esm/AddFile.js 903 B
packages/icon/dist/esm/AIModel.js 772 B
packages/icon/dist/esm/AllProducts.js 995 B
packages/icon/dist/esm/AnalyticsNode.js 762 B
packages/icon/dist/esm/Apps.js 604 B
packages/icon/dist/esm/Array.js 718 B
packages/icon/dist/esm/ArrowDown.js 828 B
packages/icon/dist/esm/ArrowLeft.js 833 B
packages/icon/dist/esm/ArrowRight.js 828 B
packages/icon/dist/esm/ArrowUp.js 828 B
packages/icon/dist/esm/Award.js 1.24 kB
packages/icon/dist/esm/Beaker.js 1.24 kB
packages/icon/dist/esm/Bell.js 797 B
packages/icon/dist/esm/Biometric.js 1.33 kB
packages/icon/dist/esm/Boolean.js 648 B
packages/icon/dist/esm/Building.js 793 B
packages/icon/dist/esm/Bulb.js 828 B
packages/icon/dist/esm/Calendar.js 794 B
packages/icon/dist/esm/Camera.js 874 B
packages/icon/dist/esm/Cap.js 976 B
packages/icon/dist/esm/CaretDown.js 665 B
packages/icon/dist/esm/CaretLeft.js 662 B
packages/icon/dist/esm/CaretRight.js 657 B
packages/icon/dist/esm/CaretUp.js 664 B
packages/icon/dist/esm/ChartFilled.js 761 B
packages/icon/dist/esm/Charts.js 745 B
packages/icon/dist/esm/Checkmark.js 789 B
packages/icon/dist/esm/CheckmarkWithCircle.js 851 B
packages/icon/dist/esm/ChevronDown.js 763 B
packages/icon/dist/esm/ChevronLeft.js 763 B
packages/icon/dist/esm/ChevronRight.js 772 B
packages/icon/dist/esm/ChevronUp.js 754 B
packages/icon/dist/esm/Circle.js 545 B
packages/icon/dist/esm/Clock.js 816 B
packages/icon/dist/esm/ClockWithArrow.js 1.06 kB
packages/icon/dist/esm/Clone.js 700 B
packages/icon/dist/esm/Cloud.js 861 B
packages/icon/dist/esm/Code.js 1.05 kB
packages/icon/dist/esm/CodeBlock.js 997 B
packages/icon/dist/esm/Coin.js 1.1 kB
packages/icon/dist/esm/Colon.js 654 B
packages/icon/dist/esm/Config.js 946 B
packages/icon/dist/esm/Connect.js 1.09 kB
packages/icon/dist/esm/Copy.js 1.04 kB
packages/icon/dist/esm/CreditCard.js 626 B
packages/icon/dist/esm/CurlyBraces.js 1.2 kB
packages/icon/dist/esm/Cursor.js 747 B
packages/icon/dist/esm/Dashboard.js 767 B
packages/icon/dist/esm/Database.js 1.19 kB
packages/icon/dist/esm/Diagram.js 840 B
packages/icon/dist/esm/Diagram2.js 845 B
packages/icon/dist/esm/Diagram3.js 824 B
packages/icon/dist/esm/Disconnect.js 1.04 kB
packages/icon/dist/esm/Download.js 962 B
packages/icon/dist/esm/Drag.js 808 B
packages/icon/dist/esm/Edit.js 707 B
packages/icon/dist/esm/Ellipsis.js 699 B
packages/icon/dist/esm/Email.js 884 B
packages/icon/dist/esm/EmptyDatabase.js 3.36 kB
packages/icon/dist/esm/EmptyFolder.js 1.27 kB
packages/icon/dist/esm/Eraser.js 947 B
packages/icon/dist/esm/Escalation.js 846 B
packages/icon/dist/esm/Export.js 958 B
packages/icon/dist/esm/Favorite.js 907 B
packages/icon/dist/esm/Federation.js 1.21 kB
packages/icon/dist/esm/File.js 732 B
packages/icon/dist/esm/Filter.js 719 B
packages/icon/dist/esm/Folder.js 637 B
packages/icon/dist/esm/Format.js 1.04 kB
packages/icon/dist/esm/FullScreenEnter.js 884 B
packages/icon/dist/esm/FullScreenExit.js 890 B
packages/icon/dist/esm/Function.js 1.85 kB
packages/icon/dist/esm/Gauge.js 899 B
packages/icon/dist/esm/GlobeAmericas.js 831 B
packages/icon/dist/esm/glyphCommon-D-w_icbF.js 814 B
packages/icon/dist/esm/GovernmentBuilding.js 871 B
packages/icon/dist/esm/Guide.js 1.16 kB
packages/icon/dist/esm/Hash.js 1.01 kB
packages/icon/dist/esm/HiddenSecondaryNode.js 2.24 kB
packages/icon/dist/esm/Highlight.js 1.04 kB
packages/icon/dist/esm/Home.js 970 B
packages/icon/dist/esm/HorizontalDrag.js 816 B
packages/icon/dist/esm/Import.js 951 B
packages/icon/dist/esm/ImportantWithCircle.js 735 B
packages/icon/dist/esm/index.js 35.2 kB
packages/icon/dist/esm/InfoWithCircle.js 765 B
packages/icon/dist/esm/InternalEmployee.js 1.03 kB
packages/icon/dist/esm/InviteUser.js 1.05 kB
packages/icon/dist/esm/Key.js 866 B
packages/icon/dist/esm/Laptop.js 849 B
packages/icon/dist/esm/LightningBolt.js 729 B
packages/icon/dist/esm/Link.js 1.19 kB
packages/icon/dist/esm/List.js 875 B
packages/icon/dist/esm/Lock.js 818 B
packages/icon/dist/esm/LogIn.js 889 B
packages/icon/dist/esm/LogOut.js 946 B
packages/icon/dist/esm/MagnifyingGlass.js 798 B
packages/icon/dist/esm/Megaphone.js 771 B
packages/icon/dist/esm/Menu.js 690 B
packages/icon/dist/esm/Minus.js 641 B
packages/icon/dist/esm/Mobile.js 641 B
packages/icon/dist/esm/Moon.js 808 B
packages/icon/dist/esm/MultiDirectionArrow.js 844 B
packages/icon/dist/esm/MultiLayers.js 1.77 kB
packages/icon/dist/esm/NavCollapse.js 864 B
packages/icon/dist/esm/NavExpand.js 872 B
packages/icon/dist/esm/NoFilter.js 848 B
packages/icon/dist/esm/NotAllowed.js 749 B
packages/icon/dist/esm/Note.js 783 B
packages/icon/dist/esm/NumberedList.js 1.63 kB
packages/icon/dist/esm/OpenNewTab.js 1.03 kB
packages/icon/dist/esm/OutlineFavorite.js 1.17 kB
packages/icon/dist/esm/Package.js 1.02 kB
packages/icon/dist/esm/Pause.js 689 B
packages/icon/dist/esm/Pending.js 672 B
packages/icon/dist/esm/Person.js 845 B
packages/icon/dist/esm/PersonGroup.js 1.04 kB
packages/icon/dist/esm/PersonWithLock.js 1.04 kB
packages/icon/dist/esm/Pin.js 792 B
packages/icon/dist/esm/Play.js 675 B
packages/icon/dist/esm/Plus.js 698 B
packages/icon/dist/esm/PlusWithCircle.js 728 B
packages/icon/dist/esm/Primary.js 745 B
packages/icon/dist/esm/Project.js 784 B
packages/icon/dist/esm/QuestionMarkWithCircle.js 1.07 kB
packages/icon/dist/esm/Read.js 1.35 kB
packages/icon/dist/esm/Recommended.js 1.52 kB
packages/icon/dist/esm/Redo.js 1 kB
packages/icon/dist/esm/Refresh.js 1.07 kB
packages/icon/dist/esm/Relationship.js 791 B
packages/icon/dist/esm/ReplicaSet.js 936 B
packages/icon/dist/esm/Resize.js 764 B
packages/icon/dist/esm/Resource.js 1.07 kB
packages/icon/dist/esm/Return.js 849 B
packages/icon/dist/esm/Revert.js 881 B
packages/icon/dist/esm/Router.js 1.53 kB
packages/icon/dist/esm/Save.js 1.26 kB
packages/icon/dist/esm/SearchIndex.js 1.39 kB
packages/icon/dist/esm/Secondary.js 963 B
packages/icon/dist/esm/Serverless.js 913 B
packages/icon/dist/esm/Settings.js 1.33 kB
packages/icon/dist/esm/ShardedCluster.js 1.29 kB
packages/icon/dist/esm/Shell.js 839 B
packages/icon/dist/esm/Shield.js 1.24 kB
packages/icon/dist/esm/Shirt.js 792 B
packages/icon/dist/esm/Shortcut.js 1.33 kB
packages/icon/dist/esm/SMS.js 805 B
packages/icon/dist/esm/SortAscending.js 885 B
packages/icon/dist/esm/SortDescending.js 877 B
packages/icon/dist/esm/Sparkle.js 1.19 kB
packages/icon/dist/esm/SplitHorizontal.js 662 B
packages/icon/dist/esm/SplitVertical.js 658 B
packages/icon/dist/esm/Stitch.js 698 B
packages/icon/dist/esm/Stop.js 550 B
packages/icon/dist/esm/Streaming.js 1.63 kB
packages/icon/dist/esm/String.js 795 B
packages/icon/dist/esm/Sun.js 1.01 kB
packages/icon/dist/esm/Support.js 876 B
packages/icon/dist/esm/Sweep.js 905 B
packages/icon/dist/esm/Table.js 684 B
packages/icon/dist/esm/Tag.js 723 B
packages/icon/dist/esm/TemporaryTable.js 905 B
packages/icon/dist/esm/ThumbsDown.js 983 B
packages/icon/dist/esm/ThumbsUp.js 983 B
packages/icon/dist/esm/TimeSeries.js 1.02 kB
packages/icon/dist/esm/TimeSeriesCollection.js 1.15 kB
packages/icon/dist/esm/Trash.js 713 B
packages/icon/dist/esm/Undo.js 993 B
packages/icon/dist/esm/University.js 1.19 kB
packages/icon/dist/esm/Unlock.js 885 B
packages/icon/dist/esm/Unsorted.js 928 B
packages/icon/dist/esm/UpDownCarets.js 787 B
packages/icon/dist/esm/Upload.js 970 B
packages/icon/dist/esm/VerticalEllipsis.js 709 B
packages/icon/dist/esm/View.js 841 B
packages/icon/dist/esm/Visibility.js 995 B
packages/icon/dist/esm/VisibilityOff.js 1.37 kB
packages/icon/dist/esm/Warning.js 779 B
packages/icon/dist/esm/Wizard.js 1.09 kB
packages/icon/dist/esm/Wrench.js 1.09 kB
packages/icon/dist/esm/Write.js 1.36 kB
packages/icon/dist/esm/X.js 820 B
packages/icon/dist/esm/XWithCircle.js 766 B
packages/icon/dist/umd/ActivityFeed.js 1.96 kB
packages/icon/dist/umd/AddFile.js 1.73 kB
packages/icon/dist/umd/AIModel.js 1.57 kB
packages/icon/dist/umd/AllProducts.js 1.8 kB
packages/icon/dist/umd/AnalyticsNode.js 1.57 kB
packages/icon/dist/umd/Apps.js 1.41 kB
packages/icon/dist/umd/Array.js 1.52 kB
packages/icon/dist/umd/ArrowDown.js 1.65 kB
packages/icon/dist/umd/ArrowLeft.js 1.66 kB
packages/icon/dist/umd/ArrowRight.js 1.65 kB
packages/icon/dist/umd/ArrowUp.js 1.65 kB
packages/icon/dist/umd/Award.js 2.09 kB
packages/icon/dist/umd/Beaker.js 2.08 kB
packages/icon/dist/umd/Bell.js 1.61 kB
packages/icon/dist/umd/Biometric.js 2.18 kB
packages/icon/dist/umd/Boolean.js 1.45 kB
packages/icon/dist/umd/Building.js 1.6 kB
packages/icon/dist/umd/Bulb.js 1.65 kB
packages/icon/dist/umd/Calendar.js 1.6 kB
packages/icon/dist/umd/Camera.js 1.69 kB
packages/icon/dist/umd/Cap.js 1.81 kB
packages/icon/dist/umd/CaretDown.js 1.47 kB
packages/icon/dist/umd/CaretLeft.js 1.47 kB
packages/icon/dist/umd/CaretRight.js 1.46 kB
packages/icon/dist/umd/CaretUp.js 1.47 kB
packages/icon/dist/umd/ChartFilled.js 1.57 kB
packages/icon/dist/umd/Charts.js 1.54 kB
packages/icon/dist/umd/Checkmark.js 1.61 kB
packages/icon/dist/umd/CheckmarkWithCircle.js 1.68 kB
packages/icon/dist/umd/ChevronDown.js 1.57 kB
packages/icon/dist/umd/ChevronLeft.js 1.57 kB
packages/icon/dist/umd/ChevronRight.js 1.59 kB
packages/icon/dist/umd/ChevronUp.js 1.56 kB
packages/icon/dist/umd/Circle.js 1.34 kB
packages/icon/dist/umd/Clock.js 1.63 kB
packages/icon/dist/umd/ClockWithArrow.js 1.92 kB
packages/icon/dist/umd/Clone.js 1.5 kB
packages/icon/dist/umd/Cloud.js 1.68 kB
packages/icon/dist/umd/Code.js 1.89 kB
packages/icon/dist/umd/CodeBlock.js 1.83 kB
packages/icon/dist/umd/Coin.js 1.94 kB
packages/icon/dist/umd/Colon.js 1.45 kB
packages/icon/dist/umd/Config.js 1.77 kB
packages/icon/dist/umd/Connect.js 1.93 kB
packages/icon/dist/umd/Copy.js 1.88 kB
packages/icon/dist/umd/CreditCard.js 1.43 kB
packages/icon/dist/umd/CurlyBraces.js 2.03 kB
packages/icon/dist/umd/Cursor.js 1.56 kB
packages/icon/dist/umd/Dashboard.js 1.57 kB
packages/icon/dist/umd/Database.js 2.03 kB
packages/icon/dist/umd/Diagram.js 1.65 kB
packages/icon/dist/umd/Diagram2.js 1.66 kB
packages/icon/dist/umd/Diagram3.js 1.63 kB
packages/icon/dist/umd/Disconnect.js 1.86 kB
packages/icon/dist/umd/Download.js 1.98 kB
packages/icon/dist/umd/Drag.js 1.61 kB
packages/icon/dist/umd/Edit.js 1.52 kB
packages/icon/dist/umd/Ellipsis.js 1.5 kB
packages/icon/dist/umd/Email.js 1.71 kB
packages/icon/dist/umd/EmptyDatabase.js 4.3 kB
packages/icon/dist/umd/EmptyFolder.js 2.1 kB
packages/icon/dist/umd/Eraser.js 1.78 kB
packages/icon/dist/umd/Escalation.js 1.68 kB
packages/icon/dist/umd/Export.js 1.78 kB
packages/icon/dist/umd/Favorite.js 1.74 kB
packages/icon/dist/umd/Federation.js 2.06 kB
packages/icon/dist/umd/File.js 1.54 kB
packages/icon/dist/umd/Filter.js 1.53 kB
packages/icon/dist/umd/Folder.js 1.43 kB
packages/icon/dist/umd/Format.js 1.86 kB
packages/icon/dist/umd/FullScreenEnter.js 1.69 kB
packages/icon/dist/umd/FullScreenExit.js 1.7 kB
packages/icon/dist/umd/Function.js 2.75 kB
packages/icon/dist/umd/Gauge.js 1.73 kB
packages/icon/dist/umd/GlobeAmericas.js 1.65 kB
packages/icon/dist/umd/GovernmentBuilding.js 1.68 kB
packages/icon/dist/umd/Guide.js 2 kB
packages/icon/dist/umd/Hash.js 1.83 kB
packages/icon/dist/umd/HiddenSecondaryNode.js 3.11 kB
packages/icon/dist/umd/Highlight.js 1.88 kB
packages/icon/dist/umd/Home.js 1.8 kB
packages/icon/dist/umd/HorizontalDrag.js 1.62 kB
packages/icon/dist/umd/Import.js 1.78 kB
packages/icon/dist/umd/ImportantWithCircle.js 1.54 kB
packages/icon/dist/umd/InfoWithCircle.js 1.57 kB
packages/icon/dist/umd/InternalEmployee.js 1.87 kB
packages/icon/dist/umd/InviteUser.js 1.88 kB
packages/icon/dist/umd/Key.js 1.68 kB
packages/icon/dist/umd/Laptop.js 1.67 kB
packages/icon/dist/umd/LightningBolt.js 1.54 kB
packages/icon/dist/umd/Link.js 2.04 kB
packages/icon/dist/umd/List.js 1.68 kB
packages/icon/dist/umd/Lock.js 1.64 kB
packages/icon/dist/umd/LogIn.js 1.71 kB
packages/icon/dist/umd/LogOut.js 1.77 kB
packages/icon/dist/umd/MagnifyingGlass.js 1.6 kB
packages/icon/dist/umd/Megaphone.js 1.58 kB
packages/icon/dist/umd/Menu.js 1.49 kB
packages/icon/dist/umd/Minus.js 1.44 kB
packages/icon/dist/umd/Mobile.js 1.44 kB
packages/icon/dist/umd/Moon.js 1.63 kB
packages/icon/dist/umd/MultiDirectionArrow.js 1.66 kB
packages/icon/dist/umd/MultiLayers.js 2.63 kB
packages/icon/dist/umd/NavCollapse.js 1.68 kB
packages/icon/dist/umd/NavExpand.js 1.69 kB
packages/icon/dist/umd/NoFilter.js 1.67 kB
packages/icon/dist/umd/NotAllowed.js 1.55 kB
packages/icon/dist/umd/Note.js 1.59 kB
packages/icon/dist/umd/NumberedList.js 2.5 kB
packages/icon/dist/umd/OpenNewTab.js 1.88 kB
packages/icon/dist/umd/OutlineFavorite.js 2.01 kB
packages/icon/dist/umd/Package.js 1.85 kB
packages/icon/dist/umd/Pause.js 1.49 kB
packages/icon/dist/umd/Pending.js 1.47 kB
packages/icon/dist/umd/Person.js 1.67 kB
packages/icon/dist/umd/PersonGroup.js 1.87 kB
packages/icon/dist/umd/PersonWithLock.js 1.87 kB
packages/icon/dist/umd/Pin.js 1.61 kB
packages/icon/dist/umd/Play.js 1.48 kB
packages/icon/dist/umd/Plus.js 1.5 kB
packages/icon/dist/umd/PlusWithCircle.js 1.53 kB
packages/icon/dist/umd/Primary.js 1.55 kB
packages/icon/dist/umd/Project.js 1.59 kB
packages/icon/dist/umd/QuestionMarkWithCircle.js 1.91 kB
packages/icon/dist/umd/Read.js 2.2 kB
packages/icon/dist/umd/Recommended.js 2.38 kB
packages/icon/dist/umd/Redo.js 1.85 kB
packages/icon/dist/umd/Refresh.js 1.91 kB
packages/icon/dist/umd/Relationship.js 1.6 kB
packages/icon/dist/umd/ReplicaSet.js 1.76 kB
packages/icon/dist/umd/Resize.js 1.76 kB
packages/icon/dist/umd/Resource.js 1.9 kB
packages/icon/dist/umd/Return.js 1.67 kB
packages/icon/dist/umd/Revert.js 1.71 kB
packages/icon/dist/umd/Router.js 2.38 kB
packages/icon/dist/umd/Save.js 2.1 kB
packages/icon/dist/umd/SearchIndex.js 2.23 kB
packages/icon/dist/umd/Secondary.js 1.79 kB
packages/icon/dist/umd/Serverless.js 1.75 kB
packages/icon/dist/umd/Settings.js 2.17 kB
packages/icon/dist/umd/ShardedCluster.js 2.12 kB
packages/icon/dist/umd/Shell.js 1.67 kB
packages/icon/dist/umd/Shield.js 2.1 kB
packages/icon/dist/umd/Shirt.js 1.61 kB
packages/icon/dist/umd/Shortcut.js 2.18 kB
packages/icon/dist/umd/SMS.js 1.61 kB
packages/icon/dist/umd/SortAscending.js 1.7 kB
packages/icon/dist/umd/SortDescending.js 1.69 kB
packages/icon/dist/umd/Sparkle.js 2.03 kB
packages/icon/dist/umd/SplitHorizontal.js 1.47 kB
packages/icon/dist/umd/SplitVertical.js 1.46 kB
packages/icon/dist/umd/Stitch.js 1.5 kB
packages/icon/dist/umd/Stop.js 1.35 kB
packages/icon/dist/umd/Streaming.js 2.5 kB
packages/icon/dist/umd/String.js 1.61 kB
packages/icon/dist/umd/Sun.js 1.82 kB
packages/icon/dist/umd/Support.js 1.7 kB
packages/icon/dist/umd/Sweep.js 1.72 kB
packages/icon/dist/umd/Table.js 1.49 kB
packages/icon/dist/umd/Tag.js 1.53 kB
packages/icon/dist/umd/TemporaryTable.js 1.73 kB
packages/icon/dist/umd/ThumbsDown.js 1.82 kB
packages/icon/dist/umd/ThumbsUp.js 1.81 kB
packages/icon/dist/umd/TimeSeries.js 1.86 kB
packages/icon/dist/umd/TimeSeriesCollection.js 2 kB
packages/icon/dist/umd/Trash.js 1.52 kB
packages/icon/dist/umd/Undo.js 1.83 kB
packages/icon/dist/umd/University.js 2.03 kB
packages/icon/dist/umd/Unlock.js 1.71 kB
packages/icon/dist/umd/Unsorted.js 1.75 kB
packages/icon/dist/umd/UpDownCarets.js 1.59 kB
packages/icon/dist/umd/Upload.js 1.8 kB
packages/icon/dist/umd/VerticalEllipsis.js 1.51 kB
packages/icon/dist/umd/View.js 1.65 kB
packages/icon/dist/umd/Visibility.js 1.82 kB
packages/icon/dist/umd/VisibilityOff.js 2.23 kB
packages/icon/dist/umd/Warning.js 1.59 kB
packages/icon/dist/umd/Wizard.js 1.94 kB
packages/icon/dist/umd/Wrench.js 1.93 kB
packages/icon/dist/umd/Write.js 2.21 kB
packages/icon/dist/umd/X.js 1.63 kB
packages/icon/dist/umd/XWithCircle.js 1.57 kB
packages/info-sprinkle/dist/esm/index.js 1.83 kB
packages/info-sprinkle/dist/umd/index.js 2.04 kB
packages/inline-definition/dist/esm/index.js 1.71 kB
packages/inline-definition/dist/umd/index.js 1.9 kB
packages/input-option/dist/esm/index.js 2.67 kB
packages/input-option/dist/umd/index.js 2.82 kB
packages/leafygreen-provider/dist/esm/index.js 1.87 kB
packages/leafygreen-provider/dist/umd/index.js 2.03 kB
packages/lib/dist/esm/index.js 3.27 kB
packages/lib/dist/umd/index.js 3.42 kB
packages/loading-indicator/dist/esm/index.js 3.39 kB
packages/loading-indicator/dist/umd/index.js 3.56 kB
packages/logo/dist/esm/index.js 39 kB
packages/logo/dist/umd/index.js 39.4 kB
packages/marketing-modal/dist/esm/index.js 3.55 kB
packages/marketing-modal/dist/umd/index.js 3.75 kB
packages/menu/dist/esm/index.js 8.22 kB
packages/menu/dist/umd/index.js 8.48 kB
packages/modal/dist/esm/index.js 3.31 kB
packages/modal/dist/umd/index.js 3.47 kB
packages/number-input/dist/esm/index.js 5.68 kB
packages/number-input/dist/umd/index.js 5.87 kB
packages/ordered-list/dist/esm/index.js 1.33 kB
packages/ordered-list/dist/umd/index.js 1.5 kB
packages/pagination/dist/esm/index.js 1.69 kB
packages/pagination/dist/umd/index.js 1.94 kB
packages/palette/dist/esm/index.js 411 B
packages/palette/dist/umd/index.js 561 B
packages/password-input/dist/esm/index.js 4.54 kB
packages/password-input/dist/umd/index.js 4.76 kB
packages/pipeline/dist/esm/index.js 7.85 kB
packages/pipeline/dist/umd/index.js 8.12 kB
packages/polymorphic/dist/esm/index.js 1.27 kB
packages/polymorphic/dist/umd/index.js 1.41 kB
packages/popover/dist/esm/index.js 4.98 kB
packages/popover/dist/umd/index.js 5.15 kB
packages/portal/dist/esm/index.js 923 B
packages/portal/dist/umd/index.js 1.09 kB
packages/preview-card/dist/esm/index.js 2.35 kB
packages/preview-card/dist/esm/testing/index.js 2.67 kB
packages/preview-card/dist/umd/index.js 2.5 kB
packages/preview-card/dist/umd/testing/index.js 2.82 kB
packages/progress-bar/dist/esm/index.js 5.55 kB
packages/progress-bar/dist/esm/testing/index.js 507 B
packages/progress-bar/dist/umd/index.js 5.8 kB
packages/progress-bar/dist/umd/testing/index.js 635 B
packages/radio-box-group/dist/esm/index.js 2.87 kB
packages/radio-box-group/dist/umd/index.js 3 kB
packages/radio-group/dist/esm/index.js 3.25 kB
packages/radio-group/dist/umd/index.js 3.4 kB
packages/resizable/dist/esm/index.js 2.48 kB
packages/resizable/dist/umd/index.js 2.58 kB
packages/ripple/dist/esm/index.js 954 B
packages/ripple/dist/umd/index.js 1.05 kB
packages/search-input/dist/esm/index.js 5.9 kB
packages/search-input/dist/umd/index.js 6.12 kB
packages/section-nav/dist/esm/index.js 2.62 kB
packages/section-nav/dist/esm/testing/index.js 2.85 kB
packages/section-nav/dist/umd/index.js 2.76 kB
packages/section-nav/dist/umd/testing/index.js 3.03 kB
packages/segmented-control/dist/esm/index.js 5.44 kB
packages/segmented-control/dist/umd/index.js 5.59 kB
packages/select/dist/esm/index.js 8.69 kB
packages/select/dist/esm/testing/index.js 698 B
packages/select/dist/umd/index.js 8.9 kB
packages/select/dist/umd/testing/index.js 838 B
packages/side-nav/dist/esm/index.js 7.47 kB
packages/side-nav/dist/umd/index.js 7.73 kB
packages/skeleton-loader/dist/esm/index.js 3.19 kB
packages/skeleton-loader/dist/umd/index.js 3.4 kB
packages/split-button/dist/esm/index.js 3.56 kB
packages/split-button/dist/umd/index.js 3.72 kB
packages/stepper/dist/esm/index.js 3.48 kB
packages/stepper/dist/umd/index.js 3.69 kB
packages/table/dist/esm/index.js 8.14 kB
packages/table/dist/esm/testing/index.js 694 B
packages/table/dist/umd/index.js 8.41 kB
packages/table/dist/umd/testing/index.js 814 B
packages/tabs/dist/esm/index.js 5.14 kB
packages/tabs/dist/esm/testing/index.js 597 B
packages/tabs/dist/umd/index.js 5.29 kB
packages/tabs/dist/umd/testing/index.js 717 B
packages/testing-lib/dist/esm/index.js 3.34 kB
packages/testing-lib/dist/umd/index.js 3.56 kB
packages/testing-lib/dist/umd/renderHookServer17.js 385 B
packages/testing-lib/dist/umd/renderHookServer18.js 593 B
packages/text-area/dist/esm/index.js 2.2 kB
packages/text-area/dist/esm/testing/index.js 466 B
packages/text-area/dist/umd/index.js 2.36 kB
packages/text-area/dist/umd/testing/index.js 604 B
packages/text-input/dist/esm/index.js 2.5 kB
packages/text-input/dist/esm/testing/index.js 463 B
packages/text-input/dist/umd/index.js 2.68 kB
packages/text-input/dist/umd/testing/index.js 600 B
packages/toast/dist/esm/index.js 8.23 kB
packages/toast/dist/umd/index.js 8.53 kB
packages/toggle/dist/esm/index.js 3 kB
packages/toggle/dist/esm/testing/index.js 276 B
packages/toggle/dist/umd/index.js 3.19 kB
packages/toggle/dist/umd/testing/index.js 407 B
packages/tokens/dist/esm/index.js 2.83 kB
packages/tokens/dist/umd/index.js 2.94 kB
packages/toolbar/dist/esm/index.js 3.26 kB
packages/toolbar/dist/esm/testing/index.js 527 B
packages/toolbar/dist/umd/index.js 3.4 kB
packages/toolbar/dist/umd/testing/index.js 643 B
packages/tooltip/dist/esm/index.js 4.35 kB
packages/tooltip/dist/umd/index.js 4.63 kB
packages/typography/dist/esm/index.js 5.81 kB
packages/typography/dist/umd/index.js 5.96 kB
packages/vertical-stepper/dist/esm/index.js 3.19 kB
packages/vertical-stepper/dist/umd/index.js 3.39 kB
tools/build/dist/esm/index.js 6.3 kB
tools/build/dist/umd/cli.js 6.64 kB
tools/build/dist/umd/index.js 6.58 kB
tools/cli/dist/esm/index.js 2.33 kB
tools/cli/dist/umd/index.js 2.5 kB
tools/codemods/dist/_virtual/_rollupPluginBabelHelpers.js 936 B
tools/codemods/dist/codemods/modal-v20/transform.js 787 B
tools/codemods/dist/codemods/named-exports/transform.js 760 B
tools/codemods/dist/codemods/popover-v12/transform.js 1.1 kB
tools/codemods/dist/codemods/tabs-v17/transform.js 368 B
tools/codemods/dist/constants.js 148 B
tools/codemods/dist/esm/_virtual/_rollupPluginBabelHelpers.mjs 928 B
tools/codemods/dist/esm/codemods/modal-v20/transform.mjs 788 B
tools/codemods/dist/esm/codemods/named-exports/transform.mjs 747 B
tools/codemods/dist/esm/codemods/popover-v12/transform.mjs 1.09 kB
tools/codemods/dist/esm/codemods/tabs-v17/transform.mjs 366 B
tools/codemods/dist/esm/constants.mjs 148 B
tools/codemods/dist/esm/index.js 3.4 kB
tools/codemods/dist/esm/types.mjs 765 B
tools/codemods/dist/esm/utils/imports/getImportSpecifiersForDeclaration.mjs 280 B
tools/codemods/dist/esm/utils/imports/hasNamedImport.mjs 179 B
tools/codemods/dist/esm/utils/imports/mergeImportSpecifiers.mjs 261 B
tools/codemods/dist/esm/utils/jsx/getJSXAttributes.mjs 160 B
tools/codemods/dist/esm/utils/jsx/insertJSXComment/insertJSXComment.mjs 369 B
tools/codemods/dist/esm/utils/transformations/addJSXAttributes/addJSXAttributes.mjs 412 B
tools/codemods/dist/esm/utils/transformations/consolidateJSXAttributes/consolidateJSXAttributes.mjs 665 B
tools/codemods/dist/esm/utils/transformations/removeJSXAttributes/removeJSXAttributes.mjs 360 B
tools/codemods/dist/esm/utils/transformations/replaceJSXAttributes/replaceJSXAttributes.mjs 278 B
tools/codemods/dist/types.js 765 B
tools/codemods/dist/umd/index.js 3.64 kB
tools/codemods/dist/utils/imports/getImportSpecifiersForDeclaration.js 283 B
tools/codemods/dist/utils/imports/hasNamedImport.js 183 B
tools/codemods/dist/utils/imports/mergeImportSpecifiers.js 260 B
tools/codemods/dist/utils/jsx/getJSXAttributes.js 164 B
tools/codemods/dist/utils/jsx/insertJSXComment/insertJSXComment.js 371 B
tools/codemods/dist/utils/transformations/addJSXAttributes/addJSXAttributes.js 410 B
tools/codemods/dist/utils/transformations/consolidateJSXAttributes/consolidateJSXAttributes.js 664 B
tools/codemods/dist/utils/transformations/removeJSXAttributes/removeJSXAttributes.js 364 B
tools/codemods/dist/utils/transformations/replaceJSXAttributes/replaceJSXAttributes.js 282 B
tools/create/dist/esm/index.js 4.17 kB
tools/create/dist/umd/index.js 4.34 kB
tools/eslint-plugin/dist/esm/index.js 1.08 kB
tools/eslint-plugin/dist/umd/index.js 1.18 kB
tools/install/dist/esm/index.js 2.19 kB
tools/install/dist/umd/index.js 2.35 kB
tools/link/dist/esm/index.js 3.79 kB
tools/link/dist/umd/index.js 3.91 kB
tools/lint/dist/esm/index.js 4.11 kB
tools/lint/dist/umd/index.js 4.25 kB
tools/meta/dist/esm/index.js 1.71 kB
tools/meta/dist/umd/index.js 1.85 kB
tools/prompt-kit/dist/esm/index.js 2.27 kB
tools/prompt-kit/dist/umd/index.js 2.41 kB
tools/slackbot/dist/esm/index.js 4.8 kB
tools/slackbot/dist/umd/index.js 4.97 kB
tools/storybook-addon/dist/esm/index.js 2.22 kB
tools/storybook-addon/dist/esm/main.js 2.22 kB
tools/storybook-addon/dist/esm/manager.js 554 B
tools/storybook-addon/dist/esm/preview.js 1.69 kB
tools/storybook-addon/dist/umd/index.js 2.34 kB
tools/storybook-addon/dist/umd/main.js 2.34 kB
tools/storybook-addon/dist/umd/manager.js 691 B
tools/storybook-addon/dist/umd/preview.js 1.81 kB
tools/storybook-decorators/dist/esm/index.js 3.28 kB
tools/storybook-decorators/dist/umd/index.js 3.57 kB
tools/storybook-utils/dist/esm/index.js 2.77 kB
tools/storybook-utils/dist/umd/index.js 2.9 kB
tools/test-harnesses/dist/esm/index.js 1.78 kB
tools/test-harnesses/dist/umd/index.js 1.91 kB
tools/test/dist/esm/index.js 1.68 kB
tools/test/dist/umd/index.js 1.82 kB
tools/update/dist/esm/index.js 725 B
tools/update/dist/umd/index.js 893 B
tools/validate/dist/esm/index.js 5.75 kB
tools/validate/dist/umd/index.js 5.98 kB

compressed-size-action

* Callback fired when the stop button is clicked during a loading state.
* When triggered, the message input will be restored to the previous message body.
*/
onClickStop?: () => void;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onStopButtonClick?

onClickStop seems like something that fires if the click event is stopped

Suggested change
onClickStop?: () => void;
onStopButtonClick?: () => void;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to preserve a similar pattern used for MessageActions. what about onClickStopButton?

return;
}

if (isLoading && onClickStop) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would the submit handler be fired if isLoading is true? Shouldn't those be separate events?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, isLoading is a proxy for "submit event is actually a stop event"

IMO this feels brittle, and we should either have separate events for "submit" and "stop",
or inspect the event object for a payload to determine the intent of this click event

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will split up the buttons and handlers :)

return;
}

if (isLoading && onClickStop) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, isLoading is a proxy for "submit event is actually a stop event"

IMO this feels brittle, and we should either have separate events for "submit" and "stop",
or inspect the event object for a payload to determine the intent of this click event

expect(sendButton).not.toHaveAttribute('aria-disabled', 'true');
});

test('calls onClickStop when button is clicked during loading state', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have visual tests that assert the stop button icon & label?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have the generated stories showing different IconButton instances, but there is no visible label rendered with it

@stephl3 stephl3 force-pushed the steph/chat-input-bar-stop branch from 7637526 to ae49f3f Compare October 8, 2025 21:26
@stephl3 stephl3 requested a review from TheSonOfThomp October 8, 2025 21:26
shouldRenderButtonText={shouldRenderButtonText}
state={state}
/>
{isLoading && isCompact ? (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: not a huge deal, but maybe a more explicit shouldRenderStopButton?
Or even a utility component with a switch if this ever gets more complex

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to leave as-is. I don't foresee it getting more complicated than this, and it will be further simplified with this ticket to remove spacious variant code

@stephl3 stephl3 merged commit 2d31506 into steph/chat-input-bar-props Oct 9, 2025
13 checks passed
@stephl3 stephl3 deleted the steph/chat-input-bar-stop branch October 9, 2025 17:23
stephl3 added a commit that referenced this pull request Oct 9, 2025
* fix(input-bar): reverse default of shouldRenderGradient prop

* chore(input-bar): changeset

* refactor(input-bar): remove log for shouldRenderGradient prop to avoid major change

* [LG-5600] feat(input-bar): add onClickStop prop and update button disabled logic (#3195)

* feat(input-bar): add onClickStop prop and fix disabled state

* docs(input-bar): README

* refactor(input-bar): reorg buttons and rename prop
github-merge-queue bot pushed a commit that referenced this pull request Oct 20, 2025
…3243)

* fix(input-bar): reverse default of shouldRenderGradient prop

* chore(input-bar): changeset

* refactor(input-bar): remove log for shouldRenderGradient prop to avoid major change

* [LG-5600] feat(input-bar): add onClickStop prop and update button disabled logic (#3195)

* feat(input-bar): add onClickStop prop and fix disabled state

* docs(input-bar): README

* refactor(input-bar): reorg buttons and rename prop
TheSonOfThomp added a commit that referenced this pull request Oct 22, 2025
commit 4ac4fd2
Author: Adam Thompson <[email protected]>
Date:   Wed Oct 22 11:11:00 2025 -0400

    Update Popover.stories.tsx

commit c312739
Merge: 6a573d6 392b350
Author: Adam Thompson <[email protected]>
Date:   Tue Oct 21 17:26:37 2025 -0400

    Merge branch 'main' into LG-5627-popover-height

commit 392b350
Author: Adam Rasheed <[email protected]>
Date:   Tue Oct 21 12:36:10 2025 -0700

    [LG-2187] feat: Menu Prop Updates (#3240)

    * [LG-2187] feat: Menu Prop Updates

    * fixed contextMenu

    * cleanup

    * updated changeset

    * rm old changeset

    * updated ContextMenu implementation

commit c6b4d3f
Author: Adam Thompson <[email protected]>
Date:   Tue Oct 21 12:15:31 2025 -0400

    [LG-5635] chore: Fixes flaky icon builds (#3244)

    * create new node externals instance

    * rm debug script

    * add postbuild

    * Delete tsconfig.json

    * rm extra console.logs

    * Update index.ts

    * Create icon-build-process.md

    * Update index.ts

commit 2d50b59
Author: Terrence Keane <[email protected]>
Date:   Tue Oct 21 10:50:24 2025 -0400

    [LG-5098] feat(CodeEditor): adds custom search panel (#3186)

    * feat(SearchForm): add SearchForm component

    * feat(SearchForm): implement SearchForm component with toggle functionality and styling

    - Added the SearchForm component to the CodeEditor, featuring a toggle button for expanding and collapsing the search input.
    - Integrated LeafyGreen UI components for consistent styling and functionality.
    - Created a new story for SearchForm in Storybook to demonstrate its usage and appearance.
    - Updated CodeEditor to include the SearchForm, enhancing user interaction capabilities.

    * refactor(CodeEditor): add back in panel import

    * refactor(SearchForm): further correct styling

    * WIP

    * refactor(SearchForm): Further correct styling

    * make top row height more dynamic

    * fix top section height

    * WIP

    * Fix width styling

    * Fix box shadow

    * Add find functionality

    * Remove unnecessary space

    * Add find selected index rendering

    * Add replace functionality

    * Fix keyboard shortcuts

    * rename SearchForm to SearchPanel

    * fix top padding

    * Allow search panel to be disabled

    * fix dep array

    * only load search module when needed

    * fix darkmode and font size

    * fix deps

    * Fix focus and imports

    * prevent panel from overflowing editor

    * add filter menu

    * pull out all handler

    * add search panel tests

    * fix tests

    * changeset

    * remove unused styles

    * update changeset

    * ignore react client TS issue

    * add non-panel style

    * fix dep arr

    * Fix react 17 bug

    * Copilot feedback

    * Missed copilot feedback

    * CR first pass

    * Update search match background to match Code highlight

    * Fix R17 import

    * Revert "Update search match background to match Code highlight"

    This reverts commit 6bf2b88.

    * Fix darkmode implementation

    * Fix search panel sizing

    * Extract search logic into hook

    * Remove unused variables

    * Reapply "Update search match background to match Code highlight"

    This reverts commit ec510e5.

    * Possible color pallette for find

    * Remove 'all' option

    * Fix build?

    * Add require v import comment

    * Fix hook logic

    * refactor(SearchPanel): update selected index handling to use searchQuery parameter for improved accuracy

    * fix(SearchPanel): remove TypeScript error suppression for ref prop in TextInput component

    * fix(SearchPanel): adjust positioning and add right border to enhance layout

commit 090b547
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Tue Oct 21 09:39:53 2025 -0400

    Version Packages (#3231)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

commit 1d67179
Author: Nima Taheri <[email protected]>
Date:   Mon Oct 20 14:21:03 2025 -0700

    LG-5588 Add Bar series for charts (#3206)

    * feat: add Bar series

    * refactor: change makeLineData to makeSeriesData

    * docs: rename Basic to Line, then add a Bar to charts-core storybook

    * feat: add changeset

commit 71ff953
Author: Stephen Lee <[email protected]>
Date:   Mon Oct 20 13:45:30 2025 -0700

    fix(input-bar): change shouldRenderGradient default to false (#3194) (#3243)

    * fix(input-bar): reverse default of shouldRenderGradient prop

    * chore(input-bar): changeset

    * refactor(input-bar): remove log for shouldRenderGradient prop to avoid major change

    * [LG-5600] feat(input-bar): add onClickStop prop and update button disabled logic (#3195)

    * feat(input-bar): add onClickStop prop and fix disabled state

    * docs(input-bar): README

    * refactor(input-bar): reorg buttons and rename prop

commit 7fc3077
Author: Adam Rasheed <[email protected]>
Date:   Mon Oct 20 13:23:40 2025 -0700

    [LG-2163] chore: Select component removed readOnly prop (#3241)

commit 82c0efe
Author: Adam Thompson <[email protected]>
Date:   Mon Oct 20 14:20:20 2025 -0400

    chore: mv build command to package json (#3242)

    * mv build command to package json

    * Update package.json

commit 95a6cd3
Author: Adam Thompson <[email protected]>
Date:   Mon Oct 20 12:30:13 2025 -0400

    Update release.yml (#3239)

commit 1a9926f
Author: Stephen Lee <[email protected]>
Date:   Mon Oct 20 09:24:27 2025 -0700

    [LG-5579] feat(feature-walls): migrate package from private to public scope (#3229)

    * chore(feature-walls): move from @lg-private to @leafygreen-ui scope

    * docs: add feature-walls to root readme

    * docs(vertical-stepper): consistent docs

    * refactor(feature-walls): remove react-transition-group dep in favor of css transition

    * chore(feature-walls): changeset

    * fix(feature-walls): Accordion tests

    * fix(feature-walls): copilot feedback, cleanup, use only CSS for ExpandableGrid

    * fix(feature-walls): types

    * test(feature-walls): generated stories use LG provider

    * fix(feature-walls): dark mode propagation

commit 7f7c385
Author: Terrence Keane <[email protected]>
Date:   Fri Oct 17 16:31:56 2025 -0400

    fix(skeleton-loader): enhance accessibility for TableSkeleton component (#3233)

    * Add VisuallyHidden "Loading" text to table headers without column labels to improve screen reader support.
    * Update tests to verify accessibility compliance and ensure no violations are present.
    * Include '@leafygreen-ui/a11y' as a dependency in the skeleton-loader package.

commit 51c453b
Author: Terrence Keane <[email protected]>
Date:   Fri Oct 17 14:11:56 2025 -0400

    [LG-3993] fix(Select): VO properly announces value and label (#3218)

    * Correctly read label and value when label included

    * Add comment

    * changeset

    * Enhance `Select` component accessibility by adding `aria-current` attribute for screen readers and ensuring proper announcement of `aria-label` with selected values.

    * Refactor `aria-label` attributes in DatePickerMonth and DatePickerYear components for improved accessibility and consistency.

    * Remove aria-current logic from Select component

    * Remove aria-current attribute assertions from Select component tests

    ---------

    Co-authored-by: Adam Thompson <[email protected]>

commit bd83675
Author: Stephen Lee <[email protected]>
Date:   Fri Oct 17 10:12:27 2025 -0700

    feat(chat): style improvements (#3238)

    * fix(drawer): overflow shadow only renders when scrollable is true (#3210)

    * fix(drawer): overflow shadow only renders when scrollable is true

    * chore(drawer): changeset

    * fix(input-bar): center align disclaimer text (#3211)

    * fix(input-bar): center align disclaimer

    * chore(input-bar): changeset

    * feat(chat): update layout to use flexible height containers (#3212)

    * fix(leafygreen-chat-provider): set height to 100%

    * chore(leafygreen-chat-provider): changeset

    * feat(message-feed): remove fixed default height for MessageFeed component

    * chore(message-feed): changeset

    * fix(fixed-chat-window): add explicit height and fix stories

    * chore(fixed-chat-window): changeset

    * chore(chat-window): install @storybook/test and @leafygreen-ui/drawer dev deps

    * test(chat-window): add InDrawerLayout story and update baseMessages

    * feat(chat-window): add hidden spacer to fix vertical message flow and remove redundant container element

    * chore: changesets

    * fix(chat): stories

commit f3a8bdc
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 12:52:36 2025 -0400

    LG-5609 Emotion version script (#3221)

    * postversion

    * Create emotion-version.md

    * Revert "postversion"

    This reverts commit 12f41d0.

    * build pre version in ci

    * Update emotion-version.md

commit 6a573d6
Merge: 29c2c23 b2d6795
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 12:51:34 2025 -0400

    Merge branch 'main' into LG-5627-popover-height

commit 29c2c23
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 12:50:31 2025 -0400

    Update packages/popover/src/Popover/Popover.types.ts

    Co-authored-by: Stephen Lee <[email protected]>

commit 1ec9bf8
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 12:50:11 2025 -0400

    Update .changeset/popover-max-height.md

    Co-authored-by: Stephen Lee <[email protected]>

commit b2d6795
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 10:28:35 2025 -0400

    [LG-4735] Spinner codemod (#3228)

    * Creates loading spinner

    * creates story

    * lgids and test utils

    * Update README.md

    * deprecate Spinner from loading-indicator

    * changesets

    * Apply suggestion from @Copilot

    Co-authored-by: Copilot <[email protected]>

    * Apply suggestion from @Copilot

    Co-authored-by: Copilot <[email protected]>

    * Apply suggestion from @Copilot

    Co-authored-by: Copilot <[email protected]>

    * mv story

    * update animation timing

    * replace loading spinner

    * adds test harnesses

    * fix test references

    * adds named exports

    * changeset

    * Update loading-spinner.md

    * update rotation speed

    * Update README.md

    * Updates sizing to match Figma

    * fixes

    * Update loading-spinner.md

    * adds codemod

    * update description comment

    * Update loading-spinner.md

    * lint

    * fixes xl tests

    * adds tree shake tests

    * Update tools/codemods/src/codemods/loading-spinner-v5/transform.ts

    Co-authored-by: Copilot <[email protected]>

    * Update tools/codemods/README.md

    Co-authored-by: Copilot <[email protected]>

    * fix treeshake test

    ---------

    Co-authored-by: Copilot <[email protected]>

commit 2e06c1d
Author: Stephen Lee <[email protected]>
Date:   Fri Oct 17 07:24:42 2025 -0700

    fix(date-picker): flaky spec (#3235)
github-merge-queue bot pushed a commit that referenced this pull request Oct 24, 2025
* Updates Popover RefEl calculation hook

* adds documentation to useObjectDependency

* Adds maxHeight/maxWidth props to popover

* install faker

* Update Popover.types.ts

* Create popover-max-height.md

* Update Popover.styles.ts

* adds moving Popover story

* Update Popover.tsx

* Apply suggestion from @Copilot

Co-authored-by: Copilot <[email protected]>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <[email protected]>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <[email protected]>

* menu dev deps

* removes redundant useMemo from useMenuHeight

* Update Menu.tsx

* Refactors menu to use Popover max height

* fix css

* Squashed commit of the following:

commit ef96910
Author: Adam Thompson <[email protected]>
Date:   Thu Oct 16 18:48:12 2025 -0400

    adds moving Popover story

commit 17c0f61
Author: Adam Thompson <[email protected]>
Date:   Thu Oct 16 16:34:07 2025 -0400

    Update Popover.styles.ts

commit 71837b0
Author: Adam Thompson <[email protected]>
Date:   Thu Oct 16 16:02:02 2025 -0400

    Create popover-max-height.md

commit 764d15c
Author: Adam Thompson <[email protected]>
Date:   Thu Oct 16 15:56:12 2025 -0400

    Update Popover.types.ts

commit 6414ff2
Author: Adam Thompson <[email protected]>
Date:   Thu Oct 16 15:56:06 2025 -0400

    install faker

commit 9419b41
Author: Adam Thompson <[email protected]>
Date:   Thu Oct 16 15:12:35 2025 -0400

    Adds maxHeight/maxWidth props to popover

commit 175de17
Author: Adam Thompson <[email protected]>
Date:   Wed Oct 15 16:37:22 2025 -0400

    adds documentation to useObjectDependency

* Update Popover.tsx

* add MovingMenuTrigger story

* changesets

* Update .changeset/popover-max-height.md

Co-authored-by: Stephen Lee <[email protected]>

* Update packages/popover/src/Popover/Popover.types.ts

Co-authored-by: Stephen Lee <[email protected]>

* Update Popover.stories.tsx

* Squashed commit of the following:

commit 4ac4fd2
Author: Adam Thompson <[email protected]>
Date:   Wed Oct 22 11:11:00 2025 -0400

    Update Popover.stories.tsx

commit c312739
Merge: 6a573d6 392b350
Author: Adam Thompson <[email protected]>
Date:   Tue Oct 21 17:26:37 2025 -0400

    Merge branch 'main' into LG-5627-popover-height

commit 392b350
Author: Adam Rasheed <[email protected]>
Date:   Tue Oct 21 12:36:10 2025 -0700

    [LG-2187] feat: Menu Prop Updates (#3240)

    * [LG-2187] feat: Menu Prop Updates

    * fixed contextMenu

    * cleanup

    * updated changeset

    * rm old changeset

    * updated ContextMenu implementation

commit c6b4d3f
Author: Adam Thompson <[email protected]>
Date:   Tue Oct 21 12:15:31 2025 -0400

    [LG-5635] chore: Fixes flaky icon builds (#3244)

    * create new node externals instance

    * rm debug script

    * add postbuild

    * Delete tsconfig.json

    * rm extra console.logs

    * Update index.ts

    * Create icon-build-process.md

    * Update index.ts

commit 2d50b59
Author: Terrence Keane <[email protected]>
Date:   Tue Oct 21 10:50:24 2025 -0400

    [LG-5098] feat(CodeEditor): adds custom search panel (#3186)

    * feat(SearchForm): add SearchForm component

    * feat(SearchForm): implement SearchForm component with toggle functionality and styling

    - Added the SearchForm component to the CodeEditor, featuring a toggle button for expanding and collapsing the search input.
    - Integrated LeafyGreen UI components for consistent styling and functionality.
    - Created a new story for SearchForm in Storybook to demonstrate its usage and appearance.
    - Updated CodeEditor to include the SearchForm, enhancing user interaction capabilities.

    * refactor(CodeEditor): add back in panel import

    * refactor(SearchForm): further correct styling

    * WIP

    * refactor(SearchForm): Further correct styling

    * make top row height more dynamic

    * fix top section height

    * WIP

    * Fix width styling

    * Fix box shadow

    * Add find functionality

    * Remove unnecessary space

    * Add find selected index rendering

    * Add replace functionality

    * Fix keyboard shortcuts

    * rename SearchForm to SearchPanel

    * fix top padding

    * Allow search panel to be disabled

    * fix dep array

    * only load search module when needed

    * fix darkmode and font size

    * fix deps

    * Fix focus and imports

    * prevent panel from overflowing editor

    * add filter menu

    * pull out all handler

    * add search panel tests

    * fix tests

    * changeset

    * remove unused styles

    * update changeset

    * ignore react client TS issue

    * add non-panel style

    * fix dep arr

    * Fix react 17 bug

    * Copilot feedback

    * Missed copilot feedback

    * CR first pass

    * Update search match background to match Code highlight

    * Fix R17 import

    * Revert "Update search match background to match Code highlight"

    This reverts commit 6bf2b88.

    * Fix darkmode implementation

    * Fix search panel sizing

    * Extract search logic into hook

    * Remove unused variables

    * Reapply "Update search match background to match Code highlight"

    This reverts commit ec510e5.

    * Possible color pallette for find

    * Remove 'all' option

    * Fix build?

    * Add require v import comment

    * Fix hook logic

    * refactor(SearchPanel): update selected index handling to use searchQuery parameter for improved accuracy

    * fix(SearchPanel): remove TypeScript error suppression for ref prop in TextInput component

    * fix(SearchPanel): adjust positioning and add right border to enhance layout

commit 090b547
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Tue Oct 21 09:39:53 2025 -0400

    Version Packages (#3231)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

commit 1d67179
Author: Nima Taheri <[email protected]>
Date:   Mon Oct 20 14:21:03 2025 -0700

    LG-5588 Add Bar series for charts (#3206)

    * feat: add Bar series

    * refactor: change makeLineData to makeSeriesData

    * docs: rename Basic to Line, then add a Bar to charts-core storybook

    * feat: add changeset

commit 71ff953
Author: Stephen Lee <[email protected]>
Date:   Mon Oct 20 13:45:30 2025 -0700

    fix(input-bar): change shouldRenderGradient default to false (#3194) (#3243)

    * fix(input-bar): reverse default of shouldRenderGradient prop

    * chore(input-bar): changeset

    * refactor(input-bar): remove log for shouldRenderGradient prop to avoid major change

    * [LG-5600] feat(input-bar): add onClickStop prop and update button disabled logic (#3195)

    * feat(input-bar): add onClickStop prop and fix disabled state

    * docs(input-bar): README

    * refactor(input-bar): reorg buttons and rename prop

commit 7fc3077
Author: Adam Rasheed <[email protected]>
Date:   Mon Oct 20 13:23:40 2025 -0700

    [LG-2163] chore: Select component removed readOnly prop (#3241)

commit 82c0efe
Author: Adam Thompson <[email protected]>
Date:   Mon Oct 20 14:20:20 2025 -0400

    chore: mv build command to package json (#3242)

    * mv build command to package json

    * Update package.json

commit 95a6cd3
Author: Adam Thompson <[email protected]>
Date:   Mon Oct 20 12:30:13 2025 -0400

    Update release.yml (#3239)

commit 1a9926f
Author: Stephen Lee <[email protected]>
Date:   Mon Oct 20 09:24:27 2025 -0700

    [LG-5579] feat(feature-walls): migrate package from private to public scope (#3229)

    * chore(feature-walls): move from @lg-private to @leafygreen-ui scope

    * docs: add feature-walls to root readme

    * docs(vertical-stepper): consistent docs

    * refactor(feature-walls): remove react-transition-group dep in favor of css transition

    * chore(feature-walls): changeset

    * fix(feature-walls): Accordion tests

    * fix(feature-walls): copilot feedback, cleanup, use only CSS for ExpandableGrid

    * fix(feature-walls): types

    * test(feature-walls): generated stories use LG provider

    * fix(feature-walls): dark mode propagation

commit 7f7c385
Author: Terrence Keane <[email protected]>
Date:   Fri Oct 17 16:31:56 2025 -0400

    fix(skeleton-loader): enhance accessibility for TableSkeleton component (#3233)

    * Add VisuallyHidden "Loading" text to table headers without column labels to improve screen reader support.
    * Update tests to verify accessibility compliance and ensure no violations are present.
    * Include '@leafygreen-ui/a11y' as a dependency in the skeleton-loader package.

commit 51c453b
Author: Terrence Keane <[email protected]>
Date:   Fri Oct 17 14:11:56 2025 -0400

    [LG-3993] fix(Select): VO properly announces value and label (#3218)

    * Correctly read label and value when label included

    * Add comment

    * changeset

    * Enhance `Select` component accessibility by adding `aria-current` attribute for screen readers and ensuring proper announcement of `aria-label` with selected values.

    * Refactor `aria-label` attributes in DatePickerMonth and DatePickerYear components for improved accessibility and consistency.

    * Remove aria-current logic from Select component

    * Remove aria-current attribute assertions from Select component tests

    ---------

    Co-authored-by: Adam Thompson <[email protected]>

commit bd83675
Author: Stephen Lee <[email protected]>
Date:   Fri Oct 17 10:12:27 2025 -0700

    feat(chat): style improvements (#3238)

    * fix(drawer): overflow shadow only renders when scrollable is true (#3210)

    * fix(drawer): overflow shadow only renders when scrollable is true

    * chore(drawer): changeset

    * fix(input-bar): center align disclaimer text (#3211)

    * fix(input-bar): center align disclaimer

    * chore(input-bar): changeset

    * feat(chat): update layout to use flexible height containers (#3212)

    * fix(leafygreen-chat-provider): set height to 100%

    * chore(leafygreen-chat-provider): changeset

    * feat(message-feed): remove fixed default height for MessageFeed component

    * chore(message-feed): changeset

    * fix(fixed-chat-window): add explicit height and fix stories

    * chore(fixed-chat-window): changeset

    * chore(chat-window): install @storybook/test and @leafygreen-ui/drawer dev deps

    * test(chat-window): add InDrawerLayout story and update baseMessages

    * feat(chat-window): add hidden spacer to fix vertical message flow and remove redundant container element

    * chore: changesets

    * fix(chat): stories

commit f3a8bdc
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 12:52:36 2025 -0400

    LG-5609 Emotion version script (#3221)

    * postversion

    * Create emotion-version.md

    * Revert "postversion"

    This reverts commit 12f41d0.

    * build pre version in ci

    * Update emotion-version.md

commit 6a573d6
Merge: 29c2c23 b2d6795
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 12:51:34 2025 -0400

    Merge branch 'main' into LG-5627-popover-height

commit 29c2c23
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 12:50:31 2025 -0400

    Update packages/popover/src/Popover/Popover.types.ts

    Co-authored-by: Stephen Lee <[email protected]>

commit 1ec9bf8
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 12:50:11 2025 -0400

    Update .changeset/popover-max-height.md

    Co-authored-by: Stephen Lee <[email protected]>

commit b2d6795
Author: Adam Thompson <[email protected]>
Date:   Fri Oct 17 10:28:35 2025 -0400

    [LG-4735] Spinner codemod (#3228)

    * Creates loading spinner

    * creates story

    * lgids and test utils

    * Update README.md

    * deprecate Spinner from loading-indicator

    * changesets

    * Apply suggestion from @Copilot

    Co-authored-by: Copilot <[email protected]>

    * Apply suggestion from @Copilot

    Co-authored-by: Copilot <[email protected]>

    * Apply suggestion from @Copilot

    Co-authored-by: Copilot <[email protected]>

    * mv story

    * update animation timing

    * replace loading spinner

    * adds test harnesses

    * fix test references

    * adds named exports

    * changeset

    * Update loading-spinner.md

    * update rotation speed

    * Update README.md

    * Updates sizing to match Figma

    * fixes

    * Update loading-spinner.md

    * adds codemod

    * update description comment

    * Update loading-spinner.md

    * lint

    * fixes xl tests

    * adds tree shake tests

    * Update tools/codemods/src/codemods/loading-spinner-v5/transform.ts

    Co-authored-by: Copilot <[email protected]>

    * Update tools/codemods/README.md

    Co-authored-by: Copilot <[email protected]>

    * fix treeshake test

    ---------

    Co-authored-by: Copilot <[email protected]>

commit 2e06c1d
Author: Stephen Lee <[email protected]>
Date:   Fri Oct 17 07:24:42 2025 -0700

    fix(date-picker): flaky spec (#3235)

* add inline definition snapshot delay

* Update packages/menu/src/Menu.stories.tsx

Co-authored-by: Copilot <[email protected]>

* lint fix

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Stephen Lee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants