udacityalumni / udacity-alumni-fe

A front-end web application and bespoke publishing platform, built by Udacity Alumni for Udacity Alumni
https://udacity-alumni.com
MIT License
46 stars 6 forks source link

Expect to have a way to interact with tags and categories as a User and as an Admin #68

Closed forbiddenvoid closed 8 years ago

forbiddenvoid commented 8 years ago

Article Tags should generate an article list with those tags filtered (related to article list not implemented yet)

RyanCCollins commented 8 years ago

The way I see it, tags and categorization are the two missing features of our blog. These tags, in fact, are only statically generate because we don't yet have the required mechanism. I believe @AbigailMathews is working on this on the backend.

We do need someone on the front end to be working on this. Think about how tags and categorization work on a normal blog? I would expect an input field that has a list of suggested tags. If the tag is not in the list, the user should be able to add a new one.

We will need a mechanism to essentially manage tags and categories.

zhangtreefish commented 8 years ago

@RyanCCollins: would you want me to try this one, or something else? Let me know.

RyanCCollins commented 8 years ago

Yeah, I'd love this. Let's chat about it tomorrow!

zhangtreefish commented 8 years ago

Shouldn't tags be an array property of Articles that users can select at CmsEditor along with articleTitle and others: constructor(props) { super(props); // Would be great to move this into redux up to the container. this.state = { editorState: editorStateFromRaw(null), articleTitle: '', status: 0, spotlighted: false, }; And similarly category also a string property of Article?

As for the initial tag array, how about making a hard list combining Udacity programs, languages and projects? e.g [fsnd, javascript, fend, react, multiblog project]. For language tags, we may even use the tag api from the stackoverflow : https://api.stackexchange.com/docs/tags . Udacity must also have some list of tags, right?

AbigailMathews commented 8 years ago

The tags branch has not yet been merged with master, but when it is the articles serializer is set to respond with an array of the associated tags. The tags responds with a list of associated articles.

There will need to be some discussion aboit which users can manipulate tags, but I imagine that contributors and admins will have this power.

Another pending feature is that there will separately be a table of nanodegree information, so that an article can be associated with nanodegrees much as it is associated with tags.

I like the idea of prepopulating the tags, I wonder if the stack overflow categories might be rather extensive for our purposes?

zhangtreefish commented 8 years ago

A separate nanodegree table is an awesome feature. Will there be a Udacity projects table? If alumni are interested in sharing, improving, and collaborating on their projects, a project table (or as a sub table of the nanodegree table, if such as possible) might be relevant.