Closed Bug 976794 Opened 10 years ago Closed 10 years ago

Build news datatype and display on dashboard

Categories

(Firefox Affiliates Graveyard :: affiliates.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: hoosteeno, Assigned: osmose)

References

Details

(Whiteboard: [kb=1284209][qa-] )

Attachments

(2 files)

Reference the file "dashboard-desktop" in bug 972909 and the dashboard design in bug 945866. 

Specs:
    * News items have a headline and a body, and perhaps other fields (see discussion below)
    * News body field accepts markdown with whitelist of tags
    * News headline and body text can be in any language

Mozillians has an implementation of whitelisted markdown: https://github.com/mozilla/mozillians/commit/945bb92d764b074300b5c783227d499856d8a6a7
Questions about news items:

        * will there always or almost always be an image?
        * will the image always be the same size?
        * do we really need a button for the CTA, or would a regular old link do? 
        * if we need a button will there always be a button?
        * what other kinds of markup might be required? strong, emphasis, links, paragraph tags ... ?
Flags: needinfo?(cnovak)
Whiteboard: [kb=1284209]
(In reply to Justin Crawford [:hoosteeno] from comment #1)
> Questions about news items:
> 
>         * will there always or almost always be an image?
Ideally, but it shouldn't be a blocker on content. 
>         * will the image always be the same size?
There should be a size limit or an ideal size for the layout. 
>         * do we really need a button for the CTA, or would a regular old
> link do? 
It doesn't have to be a button. A link should be okay. If we can embed an image we could add a button for really important CTAs. 
>         * if we need a button will there always be a button?
There will almost always be a CTA of some kind and a link to more info. 
>         * what other kinds of markup might be required? strong, emphasis,
> links, paragraph tags ... ?
All of the above. Strong, emphasis, italic, href, paragraph, maybe a table from time to time. So long as it covers basic html we should be good.
Flags: needinfo?(cnovak)
Just a note, chelsea agreed that we don't need to bother with markdown and can just do straight HTML for the input.
This bug is incorporated in the Affiliates 2.0 release currently live in dev: https://affiliates-dev.allizom.org/
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Marking as [qa-] - since this is an admin facing feature I would suggest that a team member who will be using this feature regularly be the one to verify that it meets their needs.
Whiteboard: [kb=1284209] → [kb=1284209][qa-]
Verified.

1. News item: https://affiliates-dev.allizom.org/admin/base/newsitem/2/

2. Displayed in dashboard with HTML intact (see attached)
3. A localized version of the news is shown at a locale URL (https://affiliates-dev.allizom.org/es/dashboard/)
Status: RESOLVED → VERIFIED
Product: Firefox Affiliates → Firefox Affiliates Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: