Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

feat(Chat): add Control messages prototype#1687

Closed
mnajdova wants to merge 17 commits intomasterfrom
proto/control-messages
Closed

feat(Chat): add Control messages prototype#1687
mnajdova wants to merge 17 commits intomasterfrom
proto/control-messages

Conversation

@mnajdova
Copy link
Contributor

@mnajdova mnajdova commented Jul 19, 2019

This PR adds prototype for the Control messages that can be used in the Chat. They are based on the Tree* components, with some custom overrides on the behaviors. The styling is not done currently, we want to focus on the accessibility first and test all scenarios.

@DustyTheBot
Copy link
Collaborator

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

Generated by 🚫 dangerJS

@codecov
Copy link

codecov bot commented Jul 19, 2019

Codecov Report

Merging #1687 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1687      +/-   ##
==========================================
- Coverage   69.99%   69.97%   -0.02%     
==========================================
  Files         868      868              
  Lines        7323     7325       +2     
  Branches     2117     2117              
==========================================
  Hits         5126     5126              
- Misses       2191     2193       +2     
  Partials        6        6
Impacted Files Coverage Δ
packages/react/src/components/Tree/TreeItem.tsx 71.73% <0%> (-3.27%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b82746...191cb0d. Read the comment docs.

-extracted behaviors
@mnajdova mnajdova changed the title [WIP] Control messages prototype feat(Chat): add Control messages prototype Jul 19, 2019
}
},
content: (
<Tree
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at the chat example, it was not clear to me that this is actually an expansible tree.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The styling are not implemented for this prototype, we are focusing only on the behavior and whether everything works as expected

},
}

const treeItems = [
Copy link
Contributor

Choose a reason for hiding this comment

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

These two items are almost identical. How about extracting the code into a function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will refactor it once we decide on the final implementation

@vercel vercel bot temporarily deployed to staging August 5, 2019 15:29 Inactive
@jdhuntington
Copy link
Contributor

Closing as this has seen no activity for awhile. Please reopen if still relevant. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants