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

feat(ui-shared): shared component library #2954

Merged
merged 35 commits into from Feb 21, 2020

Conversation

MaxCloutier
Copy link
Contributor

No description provided.

Copy link
Member

@allardy allardy left a comment

Choose a reason for hiding this comment

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

Finally we'll have a shared UI library :) Good job !

build/gulp.core.js Outdated Show resolved Hide resolved
src/bp/react-botpress-components/package.json Outdated Show resolved Hide resolved
src/bp/react-botpress-components/src/ConfirmDialog.tsx Outdated Show resolved Hide resolved
src/bp/react-botpress-components/tsconfig.json Outdated Show resolved Hide resolved
src/bp/ui-admin/src/Pages/Bot/Details.jsx Outdated Show resolved Hide resolved
build/gulp.shared.js Outdated Show resolved Hide resolved
@MaxCloutier MaxCloutier changed the title WIP: For local shared components between core, studio, modules and admin For local shared components between core, studio, modules and admin Feb 19, 2020
src/bp/ui-admin/src/index.tsx Show resolved Hide resolved
src/bp/ui-shared/.editorconfig Outdated Show resolved Hide resolved
src/bp/ui-shared/.travis.yml Outdated Show resolved Hide resolved
src/bp/ui-shared/rollup.config.js Outdated Show resolved Hide resolved
src/bp/ui-shared/src/ConfirmDialog/ConfirmDialog.tsx Outdated Show resolved Hide resolved
@@ -93,6 +86,7 @@ function addDialog(props, resolve) {
const div = document.createElement('div')

div.setAttribute('id', 'confirmDialog-container')
div.setAttribute('class', styles.ConfirmDialogContainer)
body.appendChild(div)

ReactDOM.render(<ConfirmDialogComponent {...props} resolve={resolve} />, div)
Copy link
Member

Choose a reason for hiding this comment

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

I have a good candidate for the next shared component: https://github.com/botpress/botpress/blob/master/src/bp/ui-admin/src/Pages/Components/BaseDialog.tsx

Since we always use the same boilerplate for dialogs, we have a base component with our preferred default props

src/bp/ui-shared/src/index.tsx Show resolved Hide resolved
src/bp/ui-shared/webpack.config.js Outdated Show resolved Hide resolved
src/bp/ui-studio/src/web/lite.jsx Outdated Show resolved Hide resolved
@allardy allardy changed the base branch from master to minor/12-6-0 February 21, 2020 02:26
@allardy allardy changed the title For local shared components between core, studio, modules and admin feat(ui-shared): shared component library Feb 21, 2020
Copy link
Member

@allardy allardy left a comment

Choose a reason for hiding this comment

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

Excellent, we're good to go !

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