fecgov / fec-cms

The content management system (CMS) for the new Federal Election Commission website.
https://www.fec.gov
Other
92 stars 38 forks source link

Info or alert banner above intro on ResourcePage #6225

Closed johnnyporkchops closed 2 months ago

johnnyporkchops commented 2 months ago

Summary (required)

Possible future work:

Register a new snippet model for info/alert banner and one for a more generic snippet that could be used for the Cont limits footnotes, for example. Currently content team is storing the html for Cont limits footnotes in snippets and pasting it into html blocks on pages instead of using a snippet chooser because of the default styling of the embed snippet template. New snippet patterns would also make the snippets listed separately in the admin, which content team has complained is currently hard to browse and find what your looking for..

Required reviewers

One Content Optional: One Dev or UX

Impacted areas of the application

General components of the application that this PR will affect:

Screenshots

Info:

Screenshot 2024-04-25 at 1 21 59 AM

Alert:

Screenshot 2024-04-25 at 1 21 21 AM

How to test

-[ ] Remove stage deploy task before merge

Content/UX tem: This is on stage for testing

Developers/UX team:

dorothyyeager commented 2 months ago

@johnnyporkchops Whenever you're ready to push into a testing space, happy to look at it!

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.02%. Comparing base (c09bf89) to head (48d8b48). Report is 20 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #6225 +/- ## ======================================== Coverage 78.01% 78.02% ======================================== Files 289 290 +1 Lines 9347 9355 +8 Branches 681 681 ======================================== + Hits 7292 7299 +7 - Misses 2055 2056 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

johnnyporkchops commented 2 months ago

@

@johnnyporkchops Whenever you're ready to push into a testing space, happy to look at it!

@dorothyyeager , this is on https://stage.fec.gov for testing

johnnyporkchops commented 2 months ago

The one thing is that we wanted to link a Record article, but I don't see a way to insert a link into the text. Is there a way to do that?

@dorothyyeager You would add the link the same way you add it to any of the other snippets...with html