sif-soknad-modify-step

Modify existing SIF Soknad steps by adding form fields and updating TypeScript types.

2|Updated Jun 3, 2022
One-click install
npx skills add https://github.com/navikt/sif-brukerdialog --skill sif-soknad-modify-step
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sif-soknad-modify-step
Source: https://github.com/navikt/sif-brukerdialog/tree/main/.github/skills/sif-soknad-modify-step
Command: npx skills add https://github.com/navikt/sif-brukerdialog --skill sif-soknad-modify-step

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This capability helps developers extend an existing step in a SIF Soknad application by adding new questions or fields, enabling richer data capture without restructuring the entire form flow.

Core Features & Use Cases

  • Extend an existing step with new inputs such as checkboxes, radio groups, text fields, or date pickers.
  • Ensure compatibility with @sif/soknad and @sif/rhf, including updated types, form components, and validation.
  • Update i18n entries and Soknadsdata mappings to reflect the new fields in the user interface and data model.

Quick Start

Modify an existing step by adding a new field type and mapping it through Soknadsdata and i18n.

Frequently Asked Questions about sif-soknad-modify-step

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add new form fields to an existing step in a SIF Soknad app?

To add new form fields to an existing step in a SIF Soknad app, you modify the step by integrating new inputs like checkboxes or text fields using @sif/soknad and @sif/rhf. This requires updating TypeScript types, form components, and Soknadsdata mappings to ensure correct validation and data flow.

What do I need to update when extending a SIF Soknad step with conditional questions?

Extending a SIF Soknad step with conditional questions requires updating TypeScript types, form components, step utilities, i18n entries, and Soknadsdata mappings. These updates ensure the new conditional fields render correctly in the interface and validate properly within the data model.

Does adding a date picker to a SIF Soknad step require updating i18n entries?

Yes, adding a date picker to a SIF Soknad step requires updating i18n entries. Alongside TypeScript types and Soknadsdata mappings, i18n updates are necessary to ensure the new date picker field displays correctly in the user interface and integrates seamlessly with the existing form validation.

Can I use @sif/rhf to add a radio group to an existing form step?

Yes, you can use @sif/rhf to add a radio group to an existing form step. The skill supports extending steps with various input types, including radio groups, by updating the necessary form components and TypeScript types to maintain compatibility and validation within the SIF Soknad application.

Why does my new SIF Soknad form field fail validation after modifying a step?

A new SIF Soknad form field may fail validation if TypeScript types, step utilities, or Soknadsdata mappings are not fully updated. Ensuring correct data flow and validation requires mapping the new field through Soknadsdata and verifying all form components are correctly integrated.

What is the best way to capture richer data without restructuring a SIF Soknad form flow?

The best way to capture richer data without restructuring a SIF Soknad form flow is to extend an existing step with new questions. By adding inputs like checkbox lists or text fields and updating the corresponding types and mappings, you can enrich data capture seamlessly.