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

Extraneous strings on the Edit details page when editing HTML5 apps #4789

Closed
radinamatic opened this issue Oct 21, 2024 · 9 comments
Closed
Assignees
Labels
bug DEV: frontend P0 - critical Priority: Release blocker or regression TAG: user strings

Comments

@radinamatic
Copy link
Member

radinamatic commented Oct 21, 2024

Observed behavior

For the HTML5 apps there's an extraneous (or I'm forgetting what it was supposed to be) link with ConstantStrings.imscp_zip string πŸ€”

Image

Errors and logs

…

Expected behavior

There should be no extraneous strings.

User-facing consequences

Incomplete resource file information

Steps to reproduce

…

Usage Details

  • OS: Windows
  • Browser: Firefox & Chrome
  • tested with Kolibri QA channel (nakav-mafak) and other manually curated channels

@marcellamaki suggested that it might be related to #4205

@akolson
Copy link
Member

akolson commented Nov 12, 2024

@radinamatic It looks like the ConstantStrings.imscp_zip doesn't exist in

export const constantStrings = createTranslator('ConstantStrings', {
.

For the HTML5 apps there's also an extraneous (or I'm forgetting what it was supposed to be) link with ConstantStrings.imscp_zip string

It would be good to establish what its intended purpose was before we remove it although I suspect this is just another file that was uploaded. In that case adding the String would suffice. Anyone recall anything? cc @rtibbles @bjester

@akolson
Copy link
Member

akolson commented Nov 12, 2024

Also @radinamatic, I am not able to replicate the "Unknown filename" link issue. I seem to consistently get the file name

@radinamatic
Copy link
Member Author

Both @pcenov and I are currently replicating the "Unknown filename" link in Kolibri QA channel in ASB books and Flexbooks at least (Firefox and Chrome)

@akolson
Copy link
Member

akolson commented Nov 12, 2024

Thanks replicated.

@akolson
Copy link
Member

akolson commented Nov 12, 2024

It turns out that the these particular resources have "file" as their name. Any resource with "file" is defaulted to Unknown filename, which is a little misleading, maybe setting the string to something else would make more sense to the user. Happy to hear thoughts here.

formattedFileDisplay() {
const fileName = this.fileDisplay.original_filename;
if (fileName === 'file' || !fileName) {
return this.$tr('unknownFile');
}
return fileName;
},

@bjester
Copy link
Member

bjester commented Nov 12, 2024

I don't think Unknown filename is a bug, in regards to what was fixed previously #3602 because the prior reported issue was that this was untranslated. We simply don't have any more information to provide to the user.

I think addressing the extraneous option for HTML5 apps is higher priority.

@akolson
Copy link
Member

akolson commented Nov 12, 2024

I have update and split the issue so they can be handled separately.

@akolson akolson changed the title Strings missmatch/missing on the Edit details page Extraneous strings on the Edit details page when editing HTML5 apps Nov 12, 2024
@akolson
Copy link
Member

akolson commented Nov 12, 2024

Because we already have a file in the IMSCP format in the database, removal isn't the best option since this would break the UI for the user. As such, this issue will be fixed by adding a new strings and shipped in a later release, as we would need to do translations.

@bjester
Copy link
Member

bjester commented Nov 14, 2024

Verified as fixed #4818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug DEV: frontend P0 - critical Priority: Release blocker or regression TAG: user strings
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants