Skip to content

[lab] Create lab package, add SpeedDial#10288

Merged
oliviertassinari merged 2 commits into
mui:v1-betafrom
mbrookes:lab
Feb 19, 2018
Merged

[lab] Create lab package, add SpeedDial#10288
oliviertassinari merged 2 commits into
mui:v1-betafrom
mbrookes:lab

Conversation

@mbrookes
Copy link
Copy Markdown
Member

@mbrookes mbrookes commented Feb 13, 2018

No description provided.

@oliviertassinari oliviertassinari added the package: lab Specific to the lab. label Feb 15, 2018
@mbrookes mbrookes changed the title [WIP][lab] Create lab package, add SpeedDial [lab] Create lab package, add SpeedDial Feb 17, 2018
@mbrookes mbrookes added the scope: speed dial Changes related to the speed dial. label Feb 17, 2018
Comment thread docs/scripts/buildApi.js Outdated
reactAPI.pagesMarkdown = pagesMarkdown;
reactAPI.src = src;

// if (reactAPI.name !== 'Backdrop') {
Copy link
Copy Markdown
Member

@oliviertassinari oliviertassinari Feb 17, 2018

Choose a reason for hiding this comment

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

This comment is very useful for debugging, more than useful.

Copy link
Copy Markdown
Member Author

@mbrookes mbrookes Feb 17, 2018

Choose a reason for hiding this comment

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

Comment? Looks like commented out dead code. Perhaps the "comment" needs a comment. 😄

Comment thread docs/src/modules/utils/helpers.js Outdated
const name = page.pathname.replace(/.*\//, '');

if (page.pathname.indexOf('/api') === 0) {
if (page.pathname.indexOf('/api') !== -1) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is less restrictive, why?

Copy link
Copy Markdown
Member Author

@mbrookes mbrookes Feb 17, 2018

Choose a reason for hiding this comment

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

To pick up /lab/api, but I can make it more verbose.

- **[Trigger](https://material.io/guidelines/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions) ✓**
- [Toolbar](https://material.io/guidelines/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions)
- [Speed dial](https://material.io/guidelines/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions)
- **[Speed dial](https://material.io/guidelines/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions) ✓**
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is a component in the lab makes it supported?
It doesn't even mean it will reach core. We might decide to kill one lab component for some reason.

Copy link
Copy Markdown
Member Author

@mbrookes mbrookes Feb 17, 2018

Choose a reason for hiding this comment

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

Is a component in the lab makes it supported?

Legacy change - don't forget SpeedDial was written before Lab.

We might decide to kill one lab component for some reason.

Sure. But not this one. 😉

Comment thread packages/lab/.gitignore Outdated
@@ -0,0 +1 @@
../../.gitignore No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need this file?

Copy link
Copy Markdown
Member Author

@mbrookes mbrookes Feb 17, 2018

Choose a reason for hiding this comment

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

Apparently not! (Can't repro whatever might have inspired having a package-local .gitignore before...)

Comment thread packages/lab/test/regressions/README.md Outdated
@@ -0,0 +1 @@
Note: Not active, just a placeholder for the SpeedDial regression test.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should the regression tests be shared between different packages?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SpeedDial was originally written to go into material-ui/src, so a regression test was written. Rather than throw that code away, I've put it here. Nothing more, nothing less.

Comment thread src/styles/zIndex.js Outdated
modal: 1300,
snackbar: 1400,
tooltip: 1500,
speedDial: 1100,
Copy link
Copy Markdown
Member

@oliviertassinari oliviertassinari Feb 17, 2018

Choose a reason for hiding this comment

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

This is replicated in the .md, to update.
It's a breaking change and a dangerous one as can have large impact without people noticing.

@mui mui deleted a comment from mbrookes Feb 17, 2018
@oliviertassinari oliviertassinari self-assigned this Feb 17, 2018
@oliviertassinari
Copy link
Copy Markdown
Member

I'm making the lab/core packages my priority for this weekend. Let's scale :).

Comment thread docs/src/modules/utils/find.js Outdated
let pathname = itemPath.replace(new RegExp(`\\${path.sep}`, 'g'), '/').replace(/^.*\/pages/, '').replace('.md', '');

if (pathname.indexOf('/demos') === 0) {
if (pathname.indexOf('/demos') === 0 || pathname.indexOf('/lab') === 0 || pathname.indexOf('/utils') === 0 ) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I will try to find a better approach than having to explicit the folders that follow a different structure in order to fix #10337.

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

Labels

package: lab Specific to the lab. scope: speed dial Changes related to the speed dial.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants