Skip to content
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

Merged
merged 17 commits into from
Dec 20, 2015
Merged

Conversation

bluefuton
Copy link
Contributor

This PR adds a scrollable list of a Reader list's existing followed tags.

Fixes #637.

screen shot 2015-11-25 at 16 01 54

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.

screen shot 2015-12-14 at 09 15 40

@bluefuton bluefuton added [Status] In Progress [Feature] Reader The reader site on Calypso. labels Nov 25, 2015
@bluefuton bluefuton self-assigned this Nov 25, 2015
@bluefuton bluefuton added this to the Reader: List Management milestone Nov 25, 2015
@blowery
Copy link
Contributor

blowery commented Nov 25, 2015

Could we get screenshots, pretty please? :)

@bluefuton
Copy link
Contributor Author

Could we get screenshots, pretty please? :)

Just the one :) Added to the main description.

@bluefuton bluefuton force-pushed the add/reader-lists-show-contents branch from f362b9c to 94723b4 Compare December 7, 2015 23:16
@bluefuton bluefuton changed the title Reader Lists: list followed sites and tags Reader Lists: list followed tags Dec 8, 2015
@bluefuton bluefuton force-pushed the add/reader-lists-show-contents branch from b5a1996 to 791da6e Compare December 13, 2015 22:17
@bluefuton
Copy link
Contributor Author

Todo:

  • handle a missing or invalid list

We probably want to hit the single list endpoint here (/read/lists/:owner/:slug) rather than read/lists, so we can handle any 400 or 500 errors appropriately.

@bluefuton bluefuton force-pushed the add/reader-lists-show-contents branch from 6c444a3 to 931fead Compare December 14, 2015 00:03
@bluefuton bluefuton added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Dec 14, 2015
@shaunandrews
Copy link
Contributor

Cool. When clicking the Manage button in the sidebar, the SectionNav defaults to Description. When I click to the Tags item, the sidebar goes back to the list selection:

screen shot 2015-12-14 at 4 39 04 pm

The button should stay highlighted like it does in Description.

Maybe unrelated, but should we change "Feeds" to "Sites"?
screen shot 2015-12-14 at 4 40 20 pm

@bluefuton
Copy link
Contributor Author

The button should stay highlighted like it does in Description.

Yep! That should be addressed when #1535 gets merged.

should we change "Feeds" to "Sites"?

Good call. I'll change that now.

@bluefuton bluefuton force-pushed the add/reader-lists-show-contents branch from ea175fa to e7c2710 Compare December 15, 2015 03:14
// External Dependencies
const keyMirror = require( 'key-mirror' );

module.exports.action = keyMirror( {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bluefuton bluefuton added [Status] Needs Author Reply and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 15, 2015
@bluefuton bluefuton added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] Needs Author Reply labels Dec 16, 2015
import { requestInflight, requestTracker } from 'lib/inflight';
import { action } from './constants';

const TAGS_PER_PAGE = 10;
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bluefuton bluefuton added [Status] Needs Author Reply and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 16, 2015
@bluefuton bluefuton added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Type] Task and removed [Status] Needs Author Reply labels Dec 17, 2015
};

function getListTags( state, listId ) {
return state.get( 'tags' ).get( parseInt( listId ), List() ); // eslint-disable-line new-cap
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@blowery
Copy link
Contributor

blowery commented Dec 19, 2015

Looks good other than the one thing with possible List garbage. Ship it.

@bluefuton bluefuton added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 19, 2015
bluefuton added a commit that referenced this pull request Dec 20, 2015
@bluefuton bluefuton merged commit ec659e5 into master Dec 20, 2015
@bluefuton bluefuton deleted the add/reader-lists-show-contents branch December 20, 2015 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Reader The reader site on Calypso. [Type] Task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants