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

Implement field type config #16

Open
konstantinmuenster opened this issue Dec 21, 2023 · 0 comments
Open

Implement field type config #16

konstantinmuenster opened this issue Dec 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@konstantinmuenster
Copy link
Contributor

konstantinmuenster commented Dec 21, 2023

We have various field types in keeep:

enum AttributeType {
  TEXT
  NUMBER
  DATE
  CHECKBOX
  SELECT
  MULTISELECT
  URL
  EMAIL
  PHONE
  TAGS
  FILE
  SOCIAL

  @@schema("public")
}

While some of them are simple, some others hold a config JSON object that contains information on valid configurations.

For example, a select field might store the available options as config:

  {
    system: false,
    required: false,
    label: 'Status',
    type: 'SELECT',
    config: {
      options: [
        {
          label: 'New',
          value: 'new',
          color: 'gray',
        },
        {
          label: 'Contacted',
          value: 'contacted',
          color: 'blue',
        },
      ],
    },

We need to handle this properly in the backend and frontend. How? TBD

@konstantinmuenster konstantinmuenster added this to the v1.0 milestone Dec 21, 2023
@konstantinmuenster konstantinmuenster added the enhancement New feature or request label Dec 21, 2023
@marvin-splitt marvin-splitt self-assigned this Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants