Skip to content

Implement field type config #16

@konstantinruge

Description

@konstantinruge

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions