datajunction-ui 0.0.1-a86.dev3 → 0.0.1-a86.dev4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datajunction-ui",
3
- "version": "0.0.1-a86.dev3",
3
+ "version": "0.0.1-a86.dev4",
4
4
  "description": "DataJunction Metrics Platform UI",
5
5
  "module": "src/index.tsx",
6
6
  "repository": {
@@ -10,6 +10,7 @@ export const ColumnsSelect = ({
10
10
  defaultValue,
11
11
  fieldName,
12
12
  label,
13
+ labelStyle = {},
13
14
  isMulti = false,
14
15
  }) => {
15
16
  const djClient = useContext(DJClientContext).DataJunctionAPI;
@@ -54,7 +55,7 @@ export const ColumnsSelect = ({
54
55
  ) : (
55
56
  <div className="CubeCreationInput">
56
57
  <ErrorMessage name={fieldName} component="span" />
57
- <label htmlFor="react-select-3-input">{label}</label>
58
+ <label htmlFor={fieldName} style={labelStyle}>{label}</label>
58
59
  <span data-testid={`select-${fieldName}`}>
59
60
  <FormikSelect
60
61
  className={isMulti ? 'MultiSelectInput' : 'SelectInput'}
@@ -93,10 +93,10 @@ export function AddEditNodePage({ extensions = {} }) {
93
93
  const staticFieldsInEdit = node => (
94
94
  <>
95
95
  <div className="NodeNameInput NodeCreationInput">
96
- <label>Name</label> {name}
96
+ <label htmlFor="name">Name</label> {name}
97
97
  </div>
98
98
  <div className="NodeNameInput NodeCreationInput">
99
- <label>Type</label> {node.type}
99
+ <label htmlFor="name">Type</label> {node.type}
100
100
  </div>
101
101
  </>
102
102
  );
@@ -295,15 +295,13 @@ export function AddEditNodePage({ extensions = {} }) {
295
295
  isMulti={true}
296
296
  />,
297
297
  );
298
- if (data.required_dimensions) {
299
- setSelectRequiredDims(
300
- <RequiredDimensionsSelect
301
- defaultValue={data.required_dimensions.map(dim => {
302
- return { value: dim, label: dim };
303
- })}
304
- />,
305
- );
306
- }
298
+ setSelectRequiredDims(
299
+ <RequiredDimensionsSelect
300
+ defaultValue={data.required_dimensions.map(dim => {
301
+ return { value: dim, label: dim };
302
+ })}
303
+ />,
304
+ );
307
305
  setSelectUpstreamNode(
308
306
  <UpstreamNodeField
309
307
  defaultValue={{
@@ -149,10 +149,6 @@ export default function AddMaterializationPopover({ node, onSubmit }) {
149
149
  value={node?.name}
150
150
  readOnly={true}
151
151
  />
152
- {console.log(
153
- 'timePartitionColumns.length',
154
- timePartitionColumns.length,
155
- )}
156
152
  <span data-testid="edit-partition">
157
153
  <label htmlFor="strategy">Strategy</label>
158
154
  <Field as="select" name="strategy">