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

SHS-5629: Editors can more easily edit a caption #1580

Merged
merged 18 commits into from
Aug 9, 2024

Conversation

codechefmarc
Copy link
Collaborator

@codechefmarc codechefmarc commented Jul 19, 2024

READY FOR REVIEW

Summary

Need Review By (Date)

7/22/2024

Urgency

low

Steps to Test

  1. Login to the site
  2. Edit the homepage or a page that has a "Banner image(s) with partial overlay and text

Screenshot 2024-07-19 at 3 48 55 PM

  1. Click "Edit" in the "Banner image(s) with partial overlay and text" paragraph

Screenshot 2024-07-19 at 3 49 07 PM

  1. Click "Edit" on one of the "Banner image with overlay and text" paragraphs

Screenshot 2024-07-19 at 3 49 16 PM

  1. Verify that there's now a pencil icon in addition to the "X" icon on top of the Image media

Screenshot 2024-07-19 at 3 49 22 PM

  1. Click the pencil icon
  2. Verify that a modal pops up that has the media edit form for that image

Screenshot 2024-07-19 at 3 49 29 PM

  1. Change the text in the "Caption/Credit" text area
  2. Save the media in the modal
  3. Save the page
  4. Verify that the caption text on the slide that was edited has now changed

PR Checklist


@codechefmarc codechefmarc requested a review from cienvaras July 19, 2024 23:51
@codechefmarc codechefmarc marked this pull request as ready for review July 19, 2024 23:52
codechefmarc and others added 3 commits July 24, 2024 12:35
* feat(SHS-5661): Remove paragraph field Overlay Color on banner image with text box

* feat(SHS-5661): Remove other references to the overlay field

* feat(SHS-5661): Add update hook to remove legacy field

* fix(SHS-5661): Fix linting error

* fix(shs-5661): remove hero-text-overlay variants and update viewmode config

---------

Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>
* feat(shs-4929): add new media view mode and update news default views

* feat(shs-4929):  update people default views

* feat(shs-4929):  update publications default views

---------

Co-authored-by: Mari Nez <mariannuar@gmail.com>
Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>
Copy link
Collaborator

@cienvaras cienvaras left a comment

Choose a reason for hiding this comment

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

@codechefmarc I can see the edit button and open the modal, but I found an issue with the modal position. It's not always centered, and sometimes the "Save" button cannot be accessed:
Screenshot 2024-07-24 at 9 45 49 PM

Not sure what's the cause of the issue, because every other time the modal is rendered in the right position.

Also, please check the other comment I left in the code. Thanks!

@codechefmarc
Copy link
Collaborator Author

@cienvaras - Ok, switched out the patch for a d.o. version and also added a patch that I think fixes the save button issue. It had to do with Gin, I believe. I had a hard time recreating as it worked for me without that patch, but once I put that patch in, it works all the time, I think? Please re-test. What browser were you using? I tested on Arc and Safari.

@codechefmarc codechefmarc requested a review from cienvaras July 25, 2024 22:10
codechefmarc and others added 2 commits July 26, 2024 09:16
…ngs) A11y warning (#1579)

* feat(SHS-5675): Add default table header rows to new tables in CKEditor

* fix(SHS-5675): Fix linting error

* docs(SHS-5675): Add comments describing change and source of change.

* feat(SHS-5675): Update table heading color in CKEditor

* fix(shs-5675): change color variable for table headings

---------

Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>
@cienvaras cienvaras changed the base branch from develop to fk-stnfd-sprint-55 July 26, 2024 15:41
@cienvaras
Copy link
Collaborator

@codechefmarc I initially tested in Arc in Mac. After applying the gin patch, I tested again in Arc, Chrome and Safari and I still have the issue in Arc and Chrome, Safari works well.

It seems that the issue is related to scrolling. In most cases, the dialog is initially shown in the right position, but if I close it, scroll the page and open it again it's displayed too low on the page.

I'll try to get someone else to test this and discard that the problem is happening only on my computer, but I'll hold on merging this until we're sure that the issue is solved.

@ahughes3
Copy link
Collaborator

It seems that the issue is related to scrolling. In most cases, the dialog is initially shown in the right position, but if I close it, scroll the page and open it again it's displayed too low on the page.

I'll try to get someone else to test this and discard that the problem is happening only on my computer, but I'll hold on merging this until we're sure that the issue is solved.

@codechefmarc @cienvaras I tested today using Chrome on a Mac and the issue is still there. I tested previously before the patch was added and experienced the same issue. The modal opens up but I can't scroll to access the save button

https://www.loom.com/share/cef1a182ef7745c1988cb31241851c8e?sid=ee07a8e6-f092-4577-812b-c98fefe0eee9

@codechefmarc
Copy link
Collaborator Author

@ahughes3 , @cienvaras - Thank you for testing, I'll get back on this ticket and research how we can fix that odd bug. I'm sure there is a way.

Base automatically changed from fk-stnfd-sprint-55 to 11.1.4-release July 29, 2024 16:11
@codechefmarc
Copy link
Collaborator Author

@ahughes3 and @cienvaras - I pushed some changes up and tested the dialog after scrolling and it appear to be working for me, please re-test. Thank you!
https://pr1580-lqaarerjbqqcvxksaxnggcqcjx0lz4qh.tugboatqa.com/

Base automatically changed from 11.1.4-release to develop August 7, 2024 15:48
@cienvaras cienvaras changed the base branch from develop to fk-stnfd-sprint-56 August 7, 2024 17:21
@cienvaras cienvaras merged commit ee7cd0b into fk-stnfd-sprint-56 Aug 9, 2024
14 of 15 checks passed
@cienvaras cienvaras deleted the SHS-5629--media-caption-edit branch August 9, 2024 21:27
joegl pushed a commit that referenced this pull request Aug 13, 2024
* SHS-5692: Implementation: New Spotlight design for Colorful and Traditional (#1589)
* SHS-5772: Regression: External Links on Postcards are wrong color (#1591)
* SHS-5629: Editors can more easily edit a caption (#1580)
* SHS-5661: Remove legacy fields (#1577)
* SHS-4929: Hide caption/credits on images in default views (#1578)
* SHS-5675: Helping users avoid 'Table cell missing context (e.g. headings) A11y warning (#1579)
cienvaras added a commit that referenced this pull request Aug 22, 2024
* SHS-5692: Implementation: New Spotlight design for Colorful and Traditional (#1589)

* feat(shs-5692): add new field for variantion style and start implementing new styles

* feat(shs-5692): styles for colorful

* feat(shs-5692): finish styles for colorful

* feat(shs-5692): finish styles for colorful

* feat(shs-5692): finish styles for traditional

* feat(shs-5692): finish styles for traditional

* fix(shs-5692): fix on colorful

* fix(shs-5692): image dimensions and height when spotlits are in sliders

* fix(shs-5692): refactor spotlight style field class assignation

---------

Co-authored-by: Mari Nez <mariannuar@gmail.com>
Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>

* SHS-5772 - Regression: External Links on Postcards are wrong color (#1591)

* fix(shs-5772): regression in external links in postcards

* fix(shs-5772): update card title link styles

---------

Co-authored-by: Mari Nez <mariannuar@gmail.com>
Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>

* SHS-5629: Editors can more easily edit a caption (#1580)

* feat(SHS-5629): Add patch to allow editing of media items in a modal from a node edit page

* fix(SHS-5629): Remove todo in patch file

* SHS-5661: Remove legacy fields (#1577)

* feat(SHS-5661): Remove paragraph field Overlay Color on banner image with text box

* feat(SHS-5661): Remove other references to the overlay field

* feat(SHS-5661): Add update hook to remove legacy field

* fix(SHS-5661): Fix linting error

* fix(shs-5661): remove hero-text-overlay variants and update viewmode config

---------

Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>

* SHS-4929: Hide caption/credits on images in default views (#1578)

* feat(shs-4929): add new media view mode and update news default views

* feat(shs-4929):  update people default views

* feat(shs-4929):  update publications default views

---------

Co-authored-by: Mari Nez <mariannuar@gmail.com>
Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>

* refactor(SHS-5629): Switch local patch for remote patch, add patch to fix missing save button on media modal

* SHS-5675: Helping users avoid 'Table cell missing context (e.g. headings) A11y warning (#1579)

* feat(SHS-5675): Add default table header rows to new tables in CKEditor

* fix(SHS-5675): Fix linting error

* docs(SHS-5675): Add comments describing change and source of change.

* feat(SHS-5675): Update table heading color in CKEditor

* fix(shs-5675): change color variable for table headings

---------

Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>

* fix(shs-5629): revert composer.lock changes

* fix(SHS-5629): Possible fix for dialog box too low on screen

* fix(SHS-5629): Fix dialog too low on screen issue (clear browser cache to fix)

* fix(shs-5629): remove unnecesary change

* fix(shs-5629): update patch

---------

Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>
Co-authored-by: Mariana Núñez <48533432+mariannuar@users.noreply.github.com>
Co-authored-by: Mari Nez <mariannuar@gmail.com>

* feat(shs-5691): add new color pallete-for-traditional

* feat(shs-5691): add new color palette-for-traditional

* fix(shs-5691): update secondary and secondary active colors

---------

Co-authored-by: Mari Nez <mariannuar@gmail.com>
Co-authored-by: Andrés Díaz Soto <andres.diaz.soto@gmail.com>
Co-authored-by: Marc Berger <107938318+codechefmarc@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants