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

Configurable components #8145

Merged
merged 87 commits into from
Sep 28, 2022
Merged

Configurable components #8145

merged 87 commits into from
Sep 28, 2022

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Sep 6, 2022

Problem

It's too expensive to ask developers to program a simple change in a web app

Solution

Let end-users do some of the changes via a UI.

Enter no-code.

SimpleListConfigurable

Todo

  • Add context to store the inspector state
  • Add generic Inspector component
  • Add Configurable component to wrap existing components
  • Add lightweight client-side templating engine (lodash.template) Use useTranslate as templating engine
  • Update default i18nProvider to make it capable of doing substitutions
  • Add ability to remove all store settings starting with a given string (useRemoveItemsFromStore)
  • Let SimpleList accept template strings as primaryText, secondaryText, and tertiaryText props
  • Make SimpleList configurable
  • Make Page title configurable
  • Add English translations
  • Add French translations
  • Add tests
  • Add documentation

@WiXSL
Copy link
Contributor

WiXSL commented Sep 6, 2022

Impressive! 🤯

packages/ra-core/src/i18n/I18nContext.ts Outdated Show resolved Hide resolved
@@ -171,8 +173,4 @@ const StyledDialog = styled(Dialog, {
},
},
},

[`& .${ConfirmClasses.iconPaddingStyle}`]: {
Copy link
Contributor

Choose a reason for hiding this comment

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

did you take this into account?

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

3 participants