Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fluent theme] Add Fluent SendBox #5122

Merged
merged 92 commits into from Apr 11, 2024
Merged

[Fluent theme] Add Fluent SendBox #5122

merged 92 commits into from Apr 11, 2024

Conversation

OEvgeny
Copy link
Collaborator

@OEvgeny OEvgeny commented Apr 4, 2024

Changelog Entry

Breaking changes

  • useSuggestedActions type is updated to align with its actual implementation, by @OEvgeny, in PR #5122

Added

  • (Experimental) Added botframework-webchat-fluent-theme package for applying Fluent UI theme to Web Chat, by @compulim and @OEvgeny, in PR #5120
    • Inherits Fluent CSS palette if available, in PR #5122
    • New send box with Fluent look-and-feel, in PR #5122
      • styleOptions.maxMessageLength to specify maximum length of the outgoing message
    • Drag-and-drop file support, in PR #5122
    • Added telephone keypad (DTMF keypad), in PR #5122
  • Added useMakeThumbnail hook option to create a thumbnail from the file given, by @compulim, in PR #5123 and #5122

Description

Added the SendBox, DropZone, SuggestedActions and TelephoneKeypad components into botframework-fluent-theme package. The package now includes initial implementation of the new sedbox experience.

Design

Specific Changes

  • Added the following localization keys
    • TEXT_INPUT_DROP_ZONE
    • TEXT_INPUT_LENGTH_EXCEEDED_ALT
    • TEXT_INPUT_ATTACHMENTS_FEW
    • TEXT_INPUT_ATTACHMENTS_MANY
    • TEXT_INPUT_ATTACHMENTS_ONE
    • TEXT_INPUT_ATTACHMENTS_OTHER
    • TEXT_INPUT_ATTACHMENTS_TWO
  • Exposed useMakeThumbnail hook
  • Implemented DropZone, SendBox, SuggestedActions and TelephoneKeypad components for the new WebChat Fluent experience
  • Added fluent-theme package bundle containing Fluent related WebChat adjustments
  • Added testIds for the new components to make testing webchat easier
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@compulim
Copy link
Contributor

This is experimental and work-in-progress. We will continue to work on the Fluent theme pack until it is ready for broader consumption.

@compulim compulim merged commit ff34969 into main Apr 11, 2024
26 checks passed
@compulim compulim deleted the feature/fluent-theme-pkg branch April 11, 2024 09:51
@cwhitten cwhitten changed the title Add Fluent SendBox [Fluent theme] Add Fluent SendBox Apr 15, 2024
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.

None yet

2 participants