Skip to content

Conversation

StuCM
Copy link
Contributor

@StuCM StuCM commented Sep 11, 2025

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description of Change

This PR adds the ability to provide configuration for individual widgets within a workflow by passing config options for the workflow directly in the workflow file.
This allows for different options to be applied to a node/widget in a workflow without editing the graph and affecting various workflows that may not need the applied config. For example disabling input or making adjustments to the label or placeholder string.
It modifies the card-component.js to take the input config and process this to overwrite the matching params that are passed to the widget on render.
This is done through a series of handlers to create the correct data type depending on the param that is being overwritten.

Issues Solved

This is a new feature that we have been using to allow us to use the same node and apply different configurations to the widget dependent upon the workflow being used.

Checklist

  • I targeted one of these branches:
    • dev/8.1.x (under development): features, bugfixes not covered below
    • dev/8.0.x (main support): regressions, crashing bugs, security issues, major bugs in new features
    • dev/7.6.x (extended support): major security issues, data loss issues
  • I added a changelog in arches/releases
  • I submitted a PR to arches-docs (if appropriate)
  • Unit tests pass locally with my changes
  • I added tests that prove my fix is effective or that my feature works
  • My test fails on the target branch

Accessibility Checklist

Developer Guide

Topic Changed Retested
Color contrast
Form fields
Headings
Links
Keyboard
Responsive Design
HTML validation
Screen reader

Ticket Background

  • Sponsored by:
  • Found by: @
  • Tested by: @
  • Designed by: @

Further comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant