CUSTOM REACT: support column-group properties in the projection

Open
#1,676 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript, react
Domain
frontend

Research direction

Start by tracing the React projection and custom view data handling described in the issue, using the Matrix example as the entry point. Check how values, presentation, and optimistic updates are keyed for row objects, then extend the investigation to column-group cells. Done means React custom views can render and edit each property using both its row object and column object.

Written by the indexing model from the issue text.

Description

Part of #1666 (CUSTOM custom views — phase 4).

Description

A property drawn across a column object group (a property repeated per column object) is not handled by the React projection: values and presentation are keyed by row only, so column-group cells do not project or optimistically update correctly. (Editing such cells from a React custom view is also affected.)

Add column-group support so a React custom view can render and edit a property that spans a column group — addressing each cell by both its row object and its column object.

FORM sales 'Sales by month'
    OBJECTS p = Product
    OBJECTS m = Month                 // the column object group
    PROPERTIES sold(p, m) COLUMNS (m)  // one value per (product, month)
    DESIGN sales { salesBox { custom = 'Matrix'; } }
;
// illustrative: a cell is addressed by row (product) + column (month)
function Matrix({ data, controller }) {
  return data.p.list.map(row =>
    <tr key={row.value}>{/* render row.sold per column object m */}</tr>);
}
Reason

Column-group (cross-tab / matrix) layouts cannot be rendered by a React custom view today. Supporting them — keyed by row and column object — lets React components cover the same forms the native grid does.

Dominant language
Java
Stars
214
Forks
46
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lsfusion/platform

All issues in lsfusion/platform

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.