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

feat: Add table entries to properties panel #912

Merged
merged 8 commits into from
Nov 29, 2023

Conversation

vsgoulart
Copy link
Contributor

Closes #890

  • This PR adds a new form-js element or visually changes an existing component.

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Nov 23, 2023
@github-actions github-actions bot temporarily deployed to demo-890-table-properties November 23, 2023 15:22 Destroyed
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The logic of the the static column headers is sort of similar with the static options in the select, but I think they're not that related to be worth it to create a common reusable component

switch (value) {
case OPTIONS.static.value:
editField(field, {
columnsExpression: undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

For values we have a modeling behavior that removes the other properties. The advantage of that approach is that it also does the clean ups when using the modeling API directly, and not only in the properties panel entry. It's also pluggable as an extension can simply remove that behavior (for whatever reason).

Wdyt, should we do the same for columnsExpression and columns or only once it becomes more complex with more possibilities do define the source?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was waiting for you to raise this topic. I'll take a look into this tomorrow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pinussilvestrus Should be done now

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the follow up, looks good to me 👍

@github-actions github-actions bot temporarily deployed to demo-890-table-properties November 23, 2023 15:43 Destroyed
@Skaiir
Copy link
Contributor

Skaiir commented Nov 24, 2023

Had a look over, agreeing with Niklas's points but that's about all I saw at a glance. Will have a serious long review on the complete PR.

vsgoulart and others added 5 commits November 24, 2023 18:23
* chore: Bump schemaVersion to 13

* chore: Fix formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* fix: Fix schema version range on docs

* chore: Remove newline

* feat: Make columns and columnsExpression mutually exclusive

* feat: Add custom error message

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
* feat: Add table component to editor

* chore: Replace key with id

* chore: Fix typo

* feat: Add dataSource to schema

* fix: Rework initialDemoData and add test

* chore: Update formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
@github-actions github-actions bot temporarily deployed to demo-890-table-properties November 24, 2023 16:35 Destroyed
@github-actions github-actions bot temporarily deployed to demo-890-table-properties November 24, 2023 16:39 Destroyed
@github-actions github-actions bot temporarily deployed to demo-890-table-properties November 24, 2023 17:47 Destroyed
Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
@github-actions github-actions bot temporarily deployed to demo-890-table-properties November 28, 2023 12:04 Destroyed
@vsgoulart vsgoulart merged commit ec33b55 into 888-table-component Nov 29, 2023
10 of 11 checks passed
@vsgoulart vsgoulart deleted the 890-table-properties branch November 29, 2023 13:16
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Nov 29, 2023
vsgoulart added a commit that referenced this pull request Dec 1, 2023
* chore: Bump `schemaVersion` to 13 (#896)

* chore: Bump schemaVersion to 13

* chore: Fix formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* fix: Fix schema version range on docs

* chore: Remove newline

* feat: Make columns and columnsExpression mutually exclusive

* feat: Add custom error message

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* feat: Add table component to editor (#905)

* feat: Add table component to editor

* chore: Replace key with id

* chore: Fix typo

* feat: Add dataSource to schema

* fix: Rework initialDemoData and add test

* chore: Update formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Remove commented code

* feat: Add table entries to properties panel

* fix: Fix tooltip

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Rename id

* feat: Use behavior to manage column headers

* chore: Fix test description

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
vsgoulart added a commit that referenced this pull request Dec 4, 2023
* chore: Bump `schemaVersion` to 13 (#896)

* chore: Bump schemaVersion to 13

* chore: Fix formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* fix: Fix schema version range on docs

* chore: Remove newline

* feat: Make columns and columnsExpression mutually exclusive

* feat: Add custom error message

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* feat: Add table component to editor (#905)

* feat: Add table component to editor

* chore: Replace key with id

* chore: Fix typo

* feat: Add dataSource to schema

* fix: Rework initialDemoData and add test

* chore: Update formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Remove commented code

* feat: Add table entries to properties panel

* fix: Fix tooltip

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Rename id

* feat: Use behavior to manage column headers

* chore: Fix test description

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
vsgoulart added a commit that referenced this pull request Dec 4, 2023
* chore: Bump `schemaVersion` to 13 (#896)

* chore: Bump schemaVersion to 13

* chore: Fix formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* fix: Fix schema version range on docs

* chore: Remove newline

* feat: Make columns and columnsExpression mutually exclusive

* feat: Add custom error message

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* feat: Add table component to editor (#905)

* feat: Add table component to editor

* chore: Replace key with id

* chore: Fix typo

* feat: Add dataSource to schema

* fix: Rework initialDemoData and add test

* chore: Update formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Remove commented code

* feat: Add table entries to properties panel

* fix: Fix tooltip

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Rename id

* feat: Use behavior to manage column headers

* chore: Fix test description

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
vsgoulart added a commit that referenced this pull request Dec 8, 2023
* chore: Bump `schemaVersion` to 13 (#896)

* chore: Bump schemaVersion to 13

* chore: Fix formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* fix: Fix schema version range on docs

* chore: Remove newline

* feat: Make columns and columnsExpression mutually exclusive

* feat: Add custom error message

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* feat: Add table component to editor (#905)

* feat: Add table component to editor

* chore: Replace key with id

* chore: Fix typo

* feat: Add dataSource to schema

* fix: Rework initialDemoData and add test

* chore: Update formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Remove commented code

* feat: Add table entries to properties panel

* fix: Fix tooltip

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Rename id

* feat: Use behavior to manage column headers

* chore: Fix test description

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
vsgoulart added a commit that referenced this pull request Dec 11, 2023
* chore: Bump `schemaVersion` to 13 (#896)

* chore: Bump schemaVersion to 13

* chore: Fix formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* fix: Fix schema version range on docs

* chore: Remove newline

* feat: Make columns and columnsExpression mutually exclusive

* feat: Add custom error message

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* feat: Add table component to editor (#905)

* feat: Add table component to editor

* chore: Replace key with id

* chore: Fix typo

* feat: Add dataSource to schema

* fix: Rework initialDemoData and add test

* chore: Update formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Remove commented code

* feat: Add table entries to properties panel

* fix: Fix tooltip

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Rename id

* feat: Use behavior to manage column headers

* chore: Fix test description

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
vsgoulart added a commit that referenced this pull request Dec 13, 2023
* chore: Bump `schemaVersion` to 13 (#896)

* chore: Bump schemaVersion to 13

* chore: Fix formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* fix: Fix schema version range on docs

* chore: Remove newline

* feat: Make columns and columnsExpression mutually exclusive

* feat: Add custom error message

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* feat: Add table component to editor (#905)

* feat: Add table component to editor

* chore: Replace key with id

* chore: Fix typo

* feat: Add dataSource to schema

* fix: Rework initialDemoData and add test

* chore: Update formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Remove commented code

* feat: Add table entries to properties panel

* fix: Fix tooltip

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Rename id

* feat: Use behavior to manage column headers

* chore: Fix test description

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
vsgoulart added a commit that referenced this pull request Dec 14, 2023
* chore: update dependency lerna to v8 (#914)

* chore: update dependency lerna to v8

* deps: remove legacy lerna scripts

Cf. https://lerna.js.org/docs/legacy-package-management

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
Co-authored-by: Vinícius Goulart <vinicius.goulart@camunda.com>

* chore(CI): updated snapshots [skip ci]

* deps: update dependency didi to v10 (#909)

* deps: update dependency didi to v10

* chore: Bump to didi@10.0.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vinicius Goulart <vinicius.goulart@camunda.com>

* chore(CI): updated snapshots [skip ci]

* chore: Bump to diagram-js@13.0.0 (#927)

* deps: update dependency feelin to v3 (#941)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: Bump `schemaVersion` to 13 (#896)

* chore: Bump schemaVersion to 13

* chore: Fix formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* fix: Fix schema version range on docs

* chore: Remove newline

* feat: Make columns and columnsExpression mutually exclusive

* feat: Add custom error message

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Fix typos in comments

* feat: Add table component to editor (#905)

* feat: Add table component to editor

* chore: Replace key with id

* chore: Fix typo

* feat: Add dataSource to schema

* fix: Rework initialDemoData and add test

* chore: Update formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* feat: Add table entries to properties panel (#912)

* chore: Bump `schemaVersion` to 13 (#896)

* chore: Bump schemaVersion to 13

* chore: Fix formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* fix: Fix schema version range on docs

* chore: Remove newline

* feat: Make columns and columnsExpression mutually exclusive

* feat: Add custom error message

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* feat: Add table component to editor (#905)

* feat: Add table component to editor

* chore: Replace key with id

* chore: Fix typo

* feat: Add dataSource to schema

* fix: Rework initialDemoData and add test

* chore: Update formatting

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Remove commented code

* feat: Add table entries to properties panel

* fix: Fix tooltip

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* chore: Rename id

* feat: Use behavior to manage column headers

* chore: Fix test description

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>

* feat: Add table component to viewer (#920)

* feat: Add table component to viewer

* fix: Fix default rowCount

* feat: Add generic data on editor view

* fix: Refactor form field table styles

* test: Add tests

* fix: Turn data source into FEEL only

* chore: Remove unnecessary new line

* chore: Remove FEEL check on dataSource

* chore: Sort by asc first

* chore: Remove unnecessary label check

* chore: Use const instead of let

* fix: Create EditorTable

* chore: Fix formatting

* chore: Make label id optional

* fix: Add row gap

* fix: Add missing leftovers from table component (#938)

* feat: Add Carbon compatibility styles (#937)

* feat: Add Carbon compatibility styles

* test: Add Carbon tests

* feat: Add dynamic lists component (#808)

* chore: rename expression-language folder

* wip: implemented protoype repeatRenderManager

* feat: `subform` component

* feat: integrated prototype repeatRenderModule

* feat: hooked up indexing to update cycle

Related to #796

* feat: subform properties panel configuration

Related to #796

* feat: added group styles to subform

* feat: form initializer works with repeatable

Related to #796

* chore: display key and path from config

Related to #796

* feat: enforce path for repeatable groups

Related to #796

* feat: adjusted getSubmitData for repeatable

Related to #796

* feat: repeat render manager

Closes #796

* chore: renamed subform to dynamic list

Related to #796

* chore: adjusted path tooltip for repeating

Related to #796

* feat: repeated element validation

Related to #796

* wip: custom editor list renderer (missing icon)

Related to #796

* wip: collapse / expand dynamic lists

Related to #796

* feat: implement group/list alignment

Related to #796

* chore: added empty states to group and list

Related to #796

* feat: brought in new icons and matched visuals

Related to #796

* fix: form root outline never shows

* fix: editor no longer refreshes on element hover

Closes #807
Related to #796

* feat: add/remove items in dynamic lists

Related to #796

* feat: local expression contexts

Related to #796

* feat: add/remove styles

Related to #796

* feat: automatically scroll when adding item

Related to #796

* feat: refine add/remove UX

Related to #796

* chore: use karma-spec reporter for tests

* chore: refactored viewer and editor tests

Related to #808

* chore: large rebase test cleanups

Related to #808

* fix(submit): only modify error object when needed

Related to #808

* fix: final repeated subforms test adjustments

Related to #808

* chore: fixed minor tabs and naming issues

Related to #808

* feat: added carbon styles for dynamic list

Related to #907

* fix: improved dynamic list button outlines

Related to #808

* chore: rebase changes on `develop`

* chore: reduced nesting and improved docs in Form.js core functions

Related to #808

* chore: removed pointless useMemo

Related to #808

* chore: cleanup remnants of ai generation

Related to #808

* chore: switch from hardcoded to computed componentCount test
Related to #808

* fix(performance): centralize variable filtering

Related to https://github.com/camunda/tasklist/issues/3758

* chore: optimize svgs

Related to #808

* feat: implemented proper path management for repeatable fields

Related to #808

* fix: always expand when uncollapsible

Related to #808

* fix: proper key change handling and repeatable filtering

Related to #808

* feat: implement proper variable hiding within repeated field

Related to #808

* chore: adjust table/iframe tests following rebase

Related to #808

* fix: adjust numerical configs of dynamic list to prevent crashes

Related to #808

* fix: properly split path replacements in pathEntry

Related to #808

* fix: ensure dynamic list buttons don't submit

Related to #808

* feat: Carbonise dynamic list

* fix: show proper default uncollapsed items in propspan

Related to #808

* feat(schema): added dynamic list component

Related to #808

* chore(schema): adjust test indexes

Related to #808

---------

Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
Co-authored-by: Vinicius Goulart <vinicius.goulart@camunda.com>

* chore: update actions/setup-node digest to 7247617

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Niklas Kiefer <niklas.kiefer@camunda.com>
Co-authored-by: Vinícius Goulart <vinicius.goulart@camunda.com>
Co-authored-by: bpmn-io-bot <bpmnio@camunda.com>
Co-authored-by: Valentin Serra <valentin.serra@camunda.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants