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

ra-no-code - Introduce Resource Configuration #6217

Merged
merged 14 commits into from
May 6, 2021

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Apr 27, 2021

  • Introduce Configuration Screen
  • Implement basic resource configuration
  • Implement basic field configuration
  • Allow to select on which views a field is displayed

ra-no-code-configuration

@djhi djhi added the WIP Work In Progress label Apr 27, 2021
@djhi djhi added RFR Ready For Review and removed WIP Work In Progress labels May 3, 2021
@fzaninotto fzaninotto changed the base branch from master to next May 5, 2021 06:36
packages/ra-core/package.json Outdated Show resolved Hide resolved
packages/ra-core/src/inference/inferTypeFromValues.ts Outdated Show resolved Hide resolved
return (
<CardContent>
<TextInput
source={`fields[${index}].props.source`}
Copy link
Member

Choose a reason for hiding this comment

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

As $index can contain a dot, you should use lodash's get

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't get this comment

Copy link
Contributor Author

@djhi djhi May 5, 2021

Choose a reason for hiding this comment

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

It does not because fields is the array of fields in the resource configuration object

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll make it clearer though

.create(resource, {
data: record,
})
.catch(error => console.error(error));
Copy link
Member

Choose a reason for hiding this comment

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

why did you remove error catching?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I only used it for debug. A proper error catching should be added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now I'd rather have the whole thing explode than the error being hidden like before

@fzaninotto fzaninotto merged commit f983396 into next May 6, 2021
@fzaninotto fzaninotto deleted the ra-no-code-configuration branch May 6, 2021 13:07
@fzaninotto fzaninotto added this to the 3.16.0 milestone May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants