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

Me image input preview #1104

Merged
merged 3 commits into from
Feb 6, 2025
Merged

Me image input preview #1104

merged 3 commits into from
Feb 6, 2025

Conversation

LHBruneton-C2C
Copy link
Collaborator

@LHBruneton-C2C LHBruneton-C2C commented Jan 30, 2025

Description

This PR changes the image input component, to use the same image preview as in the datahub (thumbnail + fullscreen). This way, the user can view the full image, and gets an idea of the final display in the datahub.

Also, the alternative text input is disabled, as changing it breaks the overview link.

Architectural changes

The image-input component has been moved to the ui-elements lib, to allow the use of the image-overlay-preview component.

Screenshots

image
image

Quality Assurance Checklist

  • Commit history is devoid of any merge commits and readable to facilitate reviews
  • If new logic ⚙️ is introduced: unit tests were added
  • If new user stories 🤏 are introduced: E2E tests were added
  • If new UI components 🕹️ are introduced: corresponding stories in Storybook were created
  • If breaking changes 🪚 are introduced: add the breaking change label
  • If bugs 🐞 are fixed: add the backport <release branch> label
  • The documentation website 📚 has received the love it deserves

Copy link
Contributor

github-actions bot commented Jan 30, 2025

Affected libs: feature-editor,
Affected apps: demo,

  • 🚀 Build and deploy storybook and demo on GitHub Pages
  • 📦 Build and push affected docker images

Copy link
Contributor

github-actions bot commented Jan 30, 2025

📷 Screenshots are here!

@LHBruneton-C2C LHBruneton-C2C marked this pull request as ready for review February 5, 2025 13:22
@coveralls
Copy link

coveralls commented Feb 5, 2025

Coverage Status

coverage: 81.754% (-2.8%) from 84.514%
when pulling 9b472bc on ME-image-input-preview
into 7a0dc5e on main.

<gn-ui-text-input
*ngIf="showAltTextInput"
[placeholder]="'input.image.altTextPlaceholder' | translate"
[value]="altText ?? ''"
(valueChange)="handleAltTextChange($event)"
extraClass="gn-ui-editor-textarea"
[disabled]="disabled"
[disabled]="true"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am wondering why we show the alt text and the button add alt text if we cannot modify it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I have read the comments in the ticket, it looks like we are going to fix in another PR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because we should be able to modify it, it was initially developed that way. But now it's broken, and we need to release a version really soon.

Copy link
Collaborator

@AlitaBernachot AlitaBernachot left a comment

Choose a reason for hiding this comment

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

Thanks you for the PR, nice rendering! I don't know if an e2e test is worth here adding here, maybe?

This is not related to your work but:

  • I can select any type of file (it won't upload but there is no error nor warning)
  • when entering an url i cant click on Select image anymore, i am stuck with the url (also there are no error nor warning when the url is not working)
  • regarding accessibility: when clicking on the full size button, there is no close button on the overlay, also i cannot escape/close the overview with the keyboard
  • "Overviews" title is plural but i cannot add multiple images?

@LHBruneton-C2C
Copy link
Collaborator Author

@AlitaBernachot Thanks for your thorough testing and your feedback. I'll put it in the dedicated Confluence page, so we keep it in mind.

@LHBruneton-C2C LHBruneton-C2C merged commit 4e8752d into main Feb 6, 2025
14 checks passed
@LHBruneton-C2C LHBruneton-C2C deleted the ME-image-input-preview branch February 6, 2025 10:23
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.

3 participants