-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(screenshot): Loosen restrictions on Screenshot widget #93024
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
Conversation
…he attachments This expands the criteria to show the Screenshots component when at least one attachment ends with `screenshot.png` or `screenshot.jpg`.
| const screenshots = | ||
| attachments?.filter(({name}) => SCREENSHOT_NAMES.includes(name)) ?? []; | ||
| attachments?.filter( | ||
| ({name}) => name.endsWith('screenshot.jpg') || name.endsWith('screenshot.png') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we know if "screenshot-1" is still a case we want to cover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will expand the test case on Monday. There's no one with certainty as to what they want.
| const screenshots = | ||
| attachments?.filter(({name}) => SCREENSHOT_NAMES.includes(name)) ?? []; | ||
| attachments?.filter( | ||
| ({name}) => name.endsWith('screenshot.jpg') || name.endsWith('screenshot.png') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wont this possibly cause a regression? SCREENSHOT NAMES also includes:
'screenshot-1.jpg',
'screenshot-1.png',
'screenshot-2.jpg',
'screenshot-2.png',
which this wont pick up now right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm oops, yea same as what Richard said
a870ad4 to
6be73a6
Compare
This expands the criteria to show the Screenshots component when at least one attachment ends with `screenshot.png` or `screenshot.jpg`. This is a follow-up to #91602. This widget: <img width="164" alt="image" src="https://github.com/user-attachments/assets/37bafd95-0464-4604-b0f8-46e6479ce29a" />
This expands the criteria to show the Screenshots component when at least one attachment ends with
screenshot.pngorscreenshot.jpg.This is a follow-up to #91602.
This widget:
