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

Transformed blocked messages not showing correctly #744

Closed
gsproston-scottlogic opened this issue Jan 5, 2024 · 2 comments
Closed

Transformed blocked messages not showing correctly #744

gsproston-scottlogic opened this issue Jan 5, 2024 · 2 comments
Labels
bug Something isn't working frontend Requires work on the frontend

Comments

@gsproston-scottlogic
Copy link
Contributor

gsproston-scottlogic commented Jan 5, 2024

Bug report

Description

If a user message is both transformed and blocked, then the transformed message will not show at all after a refresh or after switching levels.

Reproduction steps

Steps to reproduce the behaviour:

  1. Go to sandbox mode
  2. Activate XML tagging
  3. Activate character limit defence
  4. Send a long chat message which will trigger the character limit defence
  5. Wait for the reply
  6. See that there's the original user message, the transformed user message, and the bot blocked message
  7. Refresh the page OR switch levels
  8. No transformed message

Expected behaviour

The transformed message is still shown after the refresh or switching levels.

Screenshots

Before refreshing or switching levels:

image

After:

image

Software (please complete the following information):

  • Browser: Edge

Additional context

Could be related to #741

Acceptance criteria

GIVEN a message has been transformed (e.g. the user activates xml tagging and sends a message)
AND blocked
WHEN the page is refreshed
THEN the transformed message is still shown (below the original message)

GIVEN a message has been transformed (e.g. the user activates xml tagging and sends a message)
AND blocked
WHEN the user switches level and then back to the original level
THEN the transformed message is still shown (below the original message)

@gsproston-scottlogic gsproston-scottlogic added bug Something isn't working frontend Requires work on the frontend triage New tickets to be checked by the maintainers labels Jan 5, 2024
@chriswilty
Copy link
Member

Think this is still a problem after #705

@pmarsh-scottlogic
Copy link
Contributor

moving this to in review, because I've accidentally found and fixed it in #803

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Requires work on the frontend
Projects
None yet
Development

No branches or pull requests

3 participants