Skip to content
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

TBI - Prompts: reset for answers loses selection of auto selected single entries #2505

Open
2 of 3 tasks
AlinaGovoruhina opened this issue Oct 28, 2024 · 0 comments
Open
2 of 3 tasks
Assignees
Labels
bug Something isn't working fe-fpm-writer @sap-ux/fe-fpm-writer ui-prompting

Comments

@AlinaGovoruhina
Copy link
Contributor

AlinaGovoruhina commented Oct 28, 2024

Related Feature

Feature request: issue number

Description

  1. If on first time opening a prompts step there are answers for list prompts with 1 option available - it is initially selected as an answer (eg you have a single view/fragment file in project);
  2. When clicking reset - this answer gets removed (wrong)

Steps to Reproduce

Steps to reproduce the behavior:

  1. Open storybook for https://github.com/SAP/open-ux-tools/tree/main/examples/ui-prompting-examples
  2. Open Chart building block - entry for fragment file is auto selected because only 1 fragment available;
  3. Press reset

Problem - entry for fragment file is not selected

Expected results

Entry for fragment file is auto selected because there is only single entry

Actual results

entry for fragment file is not selected

Screenshots

If applicable, add screenshots to help explain the problem.

Version/Components/Environment

Add any other context about the problem here
OS:

  • Mac OS
  • Windows
  • Other

Root Cause Analysis

Problem

{describe the problem}

Fix

{describe the fix}

Why was it missed

{Some explanation why this issue might have been missed during normal development/testing cycle}

How can we avoid this

{if we don’t want to see this type of issues anymore what we should do to prevent}

@AlinaGovoruhina AlinaGovoruhina added the fe-fpm-writer @sap-ux/fe-fpm-writer label Oct 28, 2024
@815are 815are changed the title TBI - Prompts: provide default question values and list questions with single choice default answers with initial building block answers TBI - Prompts: reset for answers loses selection of auto selected single entries Nov 4, 2024
@815are 815are added the bug Something isn't working label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fe-fpm-writer @sap-ux/fe-fpm-writer ui-prompting
Projects
None yet
Development

No branches or pull requests

2 participants