docbrown/app
Daniel Uber 2fbfd68172
Render social previews for tags with one of the two custom colors set (#16557)
* Initialize compare hex once in controller, fallback if color missing

This PR adds a fallback color choice when there are missing
bg_color_hex or text_color_hex (this is likely going to become more
common as we only show the bg_color_hex in the form).

The choices (black and white) may not be correct - this "custom, or
default" value choice should likely be made in a decorator or on the
model instead.

Addresses an error reported in
https://app.honeybadger.io/projects/66984/faults/83671065

* typo: Attribute name is text_color_hex
2022-02-15 09:56:57 -06:00
..
assets Fix tall aspect-ratio images getting squashed (#16554) 2022-02-15 15:04:06 +00:00
controllers Render social previews for tags with one of the two custom colors set (#16557) 2022-02-15 09:56:57 -06:00
decorators app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
errors A suspended user returns 403 instead of 500 (#16408) 2022-02-04 09:42:23 -05:00
forms Using a Form Object that will persist for the Creator Settings Form (#15684) 2021-12-10 17:07:40 +02:00
helpers Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
javascript Now the credit amount max toggles when switching between adding/removing credits. (#16568) 2022-02-15 07:18:22 -05:00
lib Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
liquid_tags Rework user subscription liquid tag to avoid errors (#16460) 2022-02-15 09:14:03 +00:00
mailers app/mailers i18n (#16191) 2022-01-20 07:33:29 -07:00
models Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
policies Removing Articles::Builder making policy decision (#16536) 2022-02-14 11:39:22 -05:00
queries small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Extracting container for allowed tags & attrs (#15338) 2021-12-16 12:24:45 -05:00
serializers Added "Tags" category to search results (#16265) 2022-01-26 20:51:15 +03:00
services Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
uploaders small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
validators Remove the "Getting Started" Section from the Config (#16033) 2022-01-20 07:31:35 -07:00
view_objects Patching ERB rendering of the data-info JSON (#16067) 2022-01-14 08:30:49 -05:00
views Render social previews for tags with one of the two custom colors set (#16557) 2022-02-15 09:56:57 -06:00
workers Use perform_bulk in Podcasts::EnqueueGetEpisodesWorker (#16325) 2022-01-28 11:32:25 +07:00