Skip to content

dcc: refactor input #3398

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

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from
Draft

dcc: refactor input #3398

wants to merge 5 commits into from

Conversation

KoolADE85
Copy link
Contributor

@KoolADE85 KoolADE85 commented Aug 8, 2025

This PR add scaffolding to write dcc components in Typescript.
It refactors the Input dcc component to be a function-component written in Typescript and with new CSS rules applied.

Contributor Checklist

  • I have broken down my PR scope into the following TODO tasks
    • task 1
    • task 2
  • I have run the tests locally and they passed. (refer to testing section in contributing)
  • I have added tests, or extended existing tests, to cover any new features or bugs fixed in this PR

optionals

  • I have added entry in the CHANGELOG.md
  • If this PR needs a follow-up in dash docs, community thread, I have mentioned the relevant URLS as follows
    • this GitHub #PR number updates the dash docs
    • here is the show and tell thread in Plotly Dash community

@@ -68,7 +68,7 @@ def generate_any(*_):


def generate_enum(prop_info):
values = str([v["value"] for v in prop_info["value"]])
values = str([v.get("value") for v in prop_info["value"]])
Copy link
Contributor Author

@KoolADE85 KoolADE85 Aug 8, 2025

Choose a reason for hiding this comment

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

These component generation changes fix an Exception raised when Typescript enums contain undefined as a possible option.

@KoolADE85 KoolADE85 force-pushed the feature/dcc-refactor-input branch from 2b47c08 to 5a49f13 Compare August 8, 2025 23:22
@KoolADE85 KoolADE85 changed the title Feature/dcc refactor input dcc: refactor input Aug 8, 2025
@KoolADE85 KoolADE85 force-pushed the feature/dcc-refactor-input branch 2 times, most recently from d7fa1ac to 01dac37 Compare August 11, 2025 16:36
@KoolADE85 KoolADE85 force-pushed the feature/dcc-refactor-input branch from 01dac37 to 1653281 Compare August 11, 2025 17:01
@gvwilson gvwilson added P1 needed for current cycle fix fixes something broken labels Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix fixes something broken P1 needed for current cycle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants