Skip to content

[DQT] Improve "Query Loaded" dialog message and button text#10304

Open
arnav-makkar wants to merge 4 commits intoaces:mainfrom
arnav-makkar:fix/10128-query-loaded-message
Open

[DQT] Improve "Query Loaded" dialog message and button text#10304
arnav-makkar wants to merge 4 commits intoaces:mainfrom
arnav-makkar:fix/10128-query-loaded-message

Conversation

@arnav-makkar
Copy link
Copy Markdown
Contributor

Brief summary of changes

Updates the "Query Loaded" success dialog to provide clearer navigation instructions to the user.

  • Message: Changed from "Successfully loaded query." to "Return to the previous page to run or modify your query."
  • Button: Changed from "OK" to "Return".

Screen Recording 2026-01-25 at 16 40 51

Link(s) to related issue(s)

@github-actions github-actions Bot added the Module: dataquery PR or issue related to (new) dataquery module label Jan 25, 2026
@adamdaudrich
Copy link
Copy Markdown
Contributor

Great job. Syntax is excellent. LGTM

Copy link
Copy Markdown
Contributor

@adamdaudrich adamdaudrich left a comment

Choose a reason for hiding this comment

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

LGTM

text: t('Successfully loaded query.', {ns: 'dataquery'}),
text: t('Return to the previous page to run or modify your query.',
{ns: 'dataquery'}),
confirmButtonText: t('Return', {ns: 'dataquery'}),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This doesn't seem to be in the .pot file or in any translations, so won't be translated.

type: 'success',
title: t('Query Loaded', {ns: 'dataquery'}),
text: t('Successfully loaded query.', {ns: 'dataquery'}),
text: t('Return to the previous page to run or modify your query.',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This also isn't in any translations.

I find the wording more confusing than the previous wording. It sounds like an instruction to the user to press the back button on their browser.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes I agree now that I'm taking a second look, this does add unnecessary cognitive overhead for the user. When I originally worked on this, I was just following the fix suggested in the issue and assumed that was the intended direction.

I can either close this PR and keep the the current message, or I could add the required translations.

What do you suggest?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'll see if anyone has any suggestions for the wording at tomorrow's weekly LORIS meeting.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @driusan, just following up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module: dataquery PR or issue related to (new) dataquery module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dataquery] swalfire wording

3 participants