bcgov / lcfs

An online application for fuel suppliers to manage their compliance obligations under the Low Carbon Fuels Act
Apache License 2.0
5 stars 3 forks source link

LCFS - Create Ag Grid variation that allows input rows / data entry #479

Closed justin-lepitzki closed 2 months ago

justin-lepitzki commented 4 months ago

Describe the task This card is to create a variation of AG grid that allows input rows, including:

Wireframe: https://preview.uxpin.com/59145260c7d8cc48969ac79401cc03d84843c3d9#/pages/165712417/simulate/no-panels

Purpose This component will be used in many features within the LCFS portal to facilitate data entry and the completion of forms, including fuel codes, compliance reporting, etc. This task will ensure that AG Grid has the functionality required for use within these features. If it does not, we will have to explore other options.

Acceptance Criteria

  1. Data Entry Capabilities:

    • Users must be able to enter data into individual cells and rows within the AG Grid.
    • The grid should support text input, numeric values, date entries, and dropdown options.
  2. Custom Field Types:

    • Certain fields must be configurable as dropdown menus, allowing users to select from predefined options.
    • Some fields should employ a calendar picker for date selection.
    • Other fields must offer a pill selection mechanism, enabling users to choose one or more predefined options in a tag-like fashion.
  3. Validation:

    • Each field must have simple validation rules applied (e.g., required fields, numeric constraints, date formats).
    • Validation errors should be displayed in a user-friendly manner, prompting the user for correction.
  4. Dynamic Row Addition and Calculations:

    • Users must be able to add new rows to the grid dynamically.
    • Automatic calculations across fields within a row must be supported (e.g., a field's value being the product of two other fields).
  5. Editable/Non-Editable Fields:

    • The grid must allow certain fields to be marked as non-editable, preventing users from modifying their contents.
  6. Integration and Usability:

    • The custom AG Grid variation must integrate seamlessly with the LCFS portal, supporting the required functionalities for fuel codes, compliance reporting, etc.
    • The component must perform efficiently, with no significant impact on the overall performance of the portal.

Development Checklist

justin-lepitzki commented 4 months ago

The team estimates this card as an 8 if Prashanth is the one to complete it. This is because he has been our lead on AG Grid related work. If another dev were to take this card, the team believes the estimate should be a 13.