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

Update image formatter to use dynamic thumbnailer #998

Merged
merged 5 commits into from
Nov 9, 2021

Conversation

nmanu1
Copy link
Contributor

@nmanu1 nmanu1 commented Nov 8, 2021

Change the image formatter to use dynamic thumbnailer instead of expecting an array of thumbnails. A thumbnail array will no longer be provided after the streams migration. Dynamic thumbnailer uses the host dynl for images at least as large as the specified size (the smallest image with at least one dimension greater than or equal to the specified values). The host dynm gives the largest image that is smaller than the specified values in both dimensions.

Note: for dynl, desired size values of 1 or smaller are a special case which indicates that dimension should be ignored and the returned thumbnail should be larger than the other dimension.

J=SLAP-1670
TEST=auto, manual

Check that the current profile images still appear as before and those in the streams test account now appear as well.

@coveralls
Copy link

coveralls commented Nov 8, 2021

Coverage Status

Coverage decreased (-0.4%) to 8.812% when pulling d180df8 on dev/image-formatter into 26f5579 on develop.

@nmanu1 nmanu1 requested a review from yen-tt November 8, 2021 21:12
static/js/formatters-internal.js Outdated Show resolved Hide resolved
static/js/formatters-internal.js Show resolved Hide resolved
@nmanu1 nmanu1 merged commit a89f096 into develop Nov 9, 2021
oshi97 pushed a commit that referenced this pull request Nov 15, 2021
Change the image formatter to use dynamic thumbnailer instead of expecting an array of thumbnails. A thumbnail array will no longer be provided after the streams migration. Dynamic thumbnailer uses the host `dynl` for images at least as large as the specified size (the smallest image with at least one dimension greater than or equal to the specified values). The host `dynm` gives the largest image that is smaller than the specified values in both dimensions.

Note: for `dynl`, desired size values of 1 or smaller are a special case which indicates that dimension should be ignored and the returned thumbnail should be larger than the other dimension.

J=SLAP-1670
TEST=auto, manual

Check that the current profile images still appear as before and those in the streams test account now appear as well.
@tmeyer2115 tmeyer2115 mentioned this pull request Dec 14, 2021
tmeyer2115 added a commit that referenced this pull request Dec 14, 2021
### Features
- Consumer Authentication support was added for the Sandbox environment. (#996)
- The existing `image` formatter was updated to support photos sent from the Streams API. (#998)
- Support for Direct Answers on Vertical was added to the `vertical-standard` template. It is commented out by default. (#994)

### Changes
- To better support Consumer Authentication, the `AnswersExperience.init()` method can be called on `Document` load. (#995)
- The default `universalLimit` for all Vertical page configs was updated to 4. (#1010, #1021)

### Bugfixes
- Ensured that in all page templates, the `SpellCheck` appears above the `ResultsCount`. (#1011, #1017)
- In the `highlightedField` formatter, any HTML tag that appears in the text, that is not `<mark>` or `</mark>`, is now escaped. (#1012)
- Font pre-loads on Multi-lang sites now work correctly. (#1018)
- A new CSS variable was added: `--yxt-filter-options-option-label-line-height`. This variable, when kept in proper proportion to `--yxt-filters-and-sorts-font-size`, will ensure the scroll bar does not erroneously appear for filter options. (#1015, #1019)
@tmeyer2115 tmeyer2115 mentioned this pull request Jan 11, 2022
tmeyer2115 added a commit that referenced this pull request Jan 11, 2022
### Features
- Consumer Authentication support was added for the Sandbox environment. (#996)
- The existing `image` formatter was updated to support photos sent from the Streams API. (#998)
- Support for Direct Answers on Vertical was added to the `vertical-standard` template. It is commented out by default. (#994)

### Changes
- To better support Consumer Authentication, the `AnswersExperience.init()` method can be called on `Document` load. (#995)
- The default `universalLimit` for all Vertical page configs was updated to 4. (#1010, #1021)

### Bugfixes
- Ensured that in all page templates, the `SpellCheck` appears above the `ResultsCount`. (#1011, #1017)
- In the `highlightedField` formatter, any HTML tag that appears in the text, that is not `<mark>` or `</mark>`, is now escaped. (#1012)
- Font pre-loads on Multi-lang sites now work correctly. (#1018)
- A new CSS variable was added: `--yxt-filter-options-option-label-line-height`. This variable, when kept in proper proportion to `--yxt-filters-and-sorts-font-size`, will ensure the scroll bar does not erroneously appear for filter options. (#1015, #1019)
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