Skip to content

Feature/reference set#4

Open
McDoyen wants to merge 95 commits into
masterfrom
feature/reference-set
Open

Feature/reference set#4
McDoyen wants to merge 95 commits into
masterfrom
feature/reference-set

Conversation

@McDoyen

@McDoyen McDoyen commented Nov 26, 2018

Copy link
Copy Markdown
  • Dropdown type ahead

@codecov-io

codecov-io commented Nov 27, 2018

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@c308cff). Click here to learn what that means.
The diff coverage is 48.2%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master      #4   +/-   ##
========================================
  Coverage          ?   48.2%           
========================================
  Files             ?       4           
  Lines             ?     139           
  Branches          ?      40           
========================================
  Hits              ?      67           
  Misses            ?      72           
  Partials          ?       0
Impacted Files Coverage Δ
src/SharedResources/components/Label.ts 100% <100%> (ø)
src/SharedResources/components/Alert.ts 100% <100%> (ø)
src/SharedResources/utils/ContainerUtils.ts 11.32% <11.32%> (ø)
.../DropdownReference/components/DropdownReference.ts 62.68% <62.68%> (ø)

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 c308cff...7349ba7. Read the comment docs.

@McDoyen McDoyen force-pushed the feature/reference-set branch 2 times, most recently from 14a6ff9 to 55b9f0b Compare November 30, 2018 12:09
@McDoyen McDoyen force-pushed the feature/reference-set branch from 55b9f0b to 4e28a45 Compare December 3, 2018 13:07
Comment thread package.json Outdated
"copyright": "Mendix BV",
"scripts": {
"start": "webpack-dev-server --hot --open",
"emit": "tsc",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

"typeCheck": "tsc --noEmit",

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

Comment thread package.json Outdated
"copyright": "Mendix BV",
"scripts": {
"start": "webpack-dev-server --hot --open",
"emit": "tsc",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
"emit": "tsc",
"typeCheck": "tsc --noEmit",

no need to create files, it just pre-commit

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated

Comment thread package.json Outdated
"developmentPort": 3000
},
"pre-commit": [
"emit",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
"emit",
"typeCheck",

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated

Comment thread README.md Outdated
![badge](https://img.shields.io/badge/mendix-7.14.1-green.svg)

# Dropdown
An input widget used to display and edit associations

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
An input widget used to display and edit associations
An input widget used to display and edit associations for reference and reference sets

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done


if (valueMap.selectType !== "asynchronous") {
visibilityMap.searchAttribute = false;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

single line

visibilityMap.searchAttribute = valueMap.selectType !== "asynchronous" || valueMap.source === "xpath";

Comment thread src/SharedResources/components/Alert.ts Outdated

export const Alert: FunctionComponent<AlertProps> = ({ bootstrapStyle, className, children }) =>
children
? createElement("div", { className: classNames(`alert alert-${bootstrapStyle}`, className) }, children)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
? createElement("div", { className: classNames(`alert alert-${bootstrapStyle}`, className) }, children)
? createElement("div", { className: classNames("alert", `alert-${bootstrapStyle}`, className) }, children)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

Comment thread src/SharedResources/components/Label.ts Outdated
orientation?: "horizontal" | "vertical";
}

export const Label: FunctionComponent<LabelProps> = ({ children, className, label, style, weight, orientation }) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we change it a HOC? handling both labeled and not labeled?

Comment thread src/SharedResources/utils/Data.ts Outdated
sortAttributes.map(optionObject => {
const { name, sort } = optionObject;
combined.push([ name, sort ]);
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can this be simplified to

    return sortAttributes.map(optionObject => [ optionObject.name, optionObject.sort ]);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Great. Fixed

Comment thread typings/Dropdown.d.ts
@@ -0,0 +1,2 @@
import * as WebdriverIO from "webdriverio";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

rename to WebdriveIO.d.ts

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

Comment thread webpack.config.js Outdated
`!/widgets/com/mendix/widget/custom/dropdown/DropdownReferenceSet.js`
],
target: mxHost,
ws: true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove ws: true,, is cause console error.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

@McDoyen McDoyen force-pushed the feature/reference-set branch from 6af20b8 to 6cea6bd Compare December 6, 2018 14:28
@McDoyen McDoyen force-pushed the feature/reference-set branch from 6cea6bd to 79448b0 Compare December 6, 2018 14:34
@McDoyen McDoyen force-pushed the feature/reference-set branch from cabca2e to 7b487f0 Compare December 7, 2018 14:18
@McDoyen McDoyen force-pushed the feature/reference-set branch 3 times, most recently from b0eccb5 to a38e3e2 Compare December 14, 2018 06:11
@McDoyen McDoyen force-pushed the feature/reference-set branch from a38e3e2 to a8299ed Compare December 14, 2018 07:00
@McDoyen McDoyen force-pushed the feature/reference-set branch 4 times, most recently from 35e5747 to 61f3673 Compare December 19, 2018 09:09
@McDoyen McDoyen force-pushed the feature/reference-set branch 2 times, most recently from 6f325a7 to 650c76f Compare December 21, 2018 12:44
@McDoyen McDoyen force-pushed the feature/reference-set branch from 650c76f to 7349ba7 Compare December 21, 2018 14:52
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.

6 participants