-
Notifications
You must be signed in to change notification settings - Fork 40
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
Latest Updates landing page #478
Latest Updates landing page #478
Conversation
I pushed some capitalization changes here! Very small! Not trying to be a grammar bully ❤️ |
Current coverage is 86.02% (diff: 49.24%)@@ develop #478 diff @@
==========================================
Files 50 55 +5
Lines 1224 1345 +121
Methods 42 42
Messages 0 0
Branches 54 69 +15
==========================================
+ Hits 1103 1157 +54
- Misses 117 183 +66
- Partials 4 5 +1
|
- Query update types and categories based on request params - Combine all update types into a single list - Add pagination - Add basic navigation and categories
Nice! This is a great start. I can take it from here. |
Ok, I have the visual designs from https://github.com/18F/fec-cms/issues/454 implemented, with a couple suggested variations purely for the sake of getting an MVP version out the door. The feed of items is as designed (minus the "read more" links in the blurbs, which would take more work, but can happen later).
Where I'm diverging from the mocks is in the filters:
I'd like to start getting a code review on this now that it just works because it's pretty big. We can discuss interaction specifics here though. I'm totally open to changes, but would like to try to minimize dev time. |
Probably I'm reading this wrong, and I don't reallllly know what i'm talking about here, but I don't think we need to support selection of multiple values in the content type selection. Users can pick:
|
Digest is part of the name, so I moved it to caps
No more lorem ipsum! Yay!
I'm very fond of this subversive colon. If others disagree, we can discuss! :)
This is looking great! I made some style changes and added some content, so you don't have to work in lorem ipsum on the There's still some content needed for the Press landing page, but I want to work with Judy to develop it— she's a fantastic writer, and I want her to feel excited about this. I'll ask Amy what the best path forward is tomorrow a.m. |
+1 to please no checkboxes. @onezerojeremy / @nickykrause Are we intending to have validation happening with these dropdown & year entry fields? cc @nickykrause just for visibility (I only found this pull request by chance when @emileighoutlaw mentioned she put a content note in here, and there are interaction things being discussed.) |
So, not doing checkboxes means that only one option can be selected at time. But I did figure out a way to have options (like "for media professionals") that the server can use to render multiple update types: So selecting "for media professionals" returns a list of press releases and digests, and shows the press release category. Selecting "For committees" or "FEC Record" does the same thing. |
that looks great to me! Thanks for the fancy footwork, @noahmanger ! |
@jenniferthibault ? @nickykrause ? what do you think? |
This looks good to me, although I do wonder whether or not users will realize that "For media professionals:" is selectable (rather than just a label). But, either way, I do like what you've done with that option to enable users to select both press releases and digests, if they desire. Seems good for now, at least, I think! |
+1 to what the smart people above said 😺 |
@@ -172,6 +170,10 @@ class RecordPage(ContentPage): | |||
def content_section(self): | |||
return '' | |||
|
|||
@property | |||
def get_update_type(self): | |||
return 'FEC Record' |
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.
Should this be referring to the update_types
OrderedDict
defined above instead?
…updates Conflicts: fec/home/models.py
Updated this to be against the release branch. |
Awesome, thanks @noahmanger! |
Latest Updates
This sets up a simple view to show Press Releases, News Digests, and Records on one landing page for #474.