-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Reader Lists: list followed tags #777
Conversation
Could we get screenshots, pretty please? :) |
Just the one :) Added to the main description. |
f362b9c
to
94723b4
Compare
b5a1996
to
791da6e
Compare
Todo:
We probably want to hit the single list endpoint here ( |
6c444a3
to
931fead
Compare
Also: use smartSetState, and only display 'no results' message when last page has been fetched
Yep! That should be addressed when #1535 gets merged.
Good call. I'll change that now. |
ea175fa
to
e7c2710
Compare
// External Dependencies | ||
const keyMirror = require( 'key-mirror' ); | ||
|
||
module.exports.action = keyMirror( { |
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.
we're trying to avoid keyMirror now, just export const strings
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.
👍
import { requestInflight, requestTracker } from 'lib/inflight'; | ||
import { action } from './constants'; | ||
|
||
const TAGS_PER_PAGE = 10; |
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.
can probably jump that count up. 10 is pretty small for tag objects. Maybe 50?
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.
👍
}; | ||
|
||
function getListTags( state, listId ) { | ||
return state.get( 'tags' ).get( parseInt( listId ), List() ); // eslint-disable-line new-cap |
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.
Does this make a new list instance on every call? Might want to stash the default somewhere and reuse it.
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.
👍
Looks good other than the one thing with possible List garbage. Ship it. |
Reader Lists: list followed tags
This PR adds a scrollable list of a Reader list's existing followed tags.
Fixes #637.
To test
Choose an existing Reader list that you own, and click 'Manage' in the sidebar.
Navigate to the 'Tags' tab, and ensure that any tags you've previously set up appear in the list.