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

ACS-8227: remove internal mime type icon pipe #10142

Merged
merged 9 commits into from
Sep 10, 2024

Conversation

DenysVuika
Copy link
Contributor

@DenysVuika DenysVuika commented Aug 28, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)

What is the new behaviour?

  • improve Viewer code not to require extra pipes
  • refactor the Viewer to not require additional properties for mime type (use the original one)
  • fix Viewer mime type alt (should be text for screen readers, not the value)
  • remove the mime type pipe (internal one)

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:
https://hyland.atlassian.net/browse/ACS-8227

@DenysVuika DenysVuika force-pushed the chore/remove-mime-type-icon-pipe branch from 55766e8 to 6d84ded Compare August 28, 2024 15:20
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also remove the entry for originalMimeType from class properties section?

@swapnil-verma-gl swapnil-verma-gl dismissed their stale review August 30, 2024 05:25

New finding related to updates on mimeType input property


if (blobFile?.currentValue) {
this.mimeType = blobFile.currentValue.type;
this.mimeTypeIconUrl = this.thumbnailService.getMimeTypeIcon(mimeType.currentValue);
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it should use either blobFile.currentValue.type or this.mimeType, instead of mimeType, since we want to cover the case where only the blobFile property was changed. But other than that, everything looks good to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, updated the code, thanks

this.mimeTypeIconUrl = this.thumbnailService.getMimeTypeIcon(blobFile.currentValue.type);

@DenysVuika DenysVuika force-pushed the chore/remove-mime-type-icon-pipe branch 2 times, most recently from 18828c6 to 012adbc Compare September 10, 2024 13:18
@DenysVuika DenysVuika force-pushed the chore/remove-mime-type-icon-pipe branch from 012adbc to f99be15 Compare September 10, 2024 13:30
Copy link

@DenysVuika DenysVuika merged commit b1abe2c into develop Sep 10, 2024
17 checks passed
@DenysVuika DenysVuika deleted the chore/remove-mime-type-icon-pipe branch September 10, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants