Skip to content

Tagging#5

Open
ColeT wants to merge 3 commits into
neyer:mainfrom
ColeT:tagging
Open

Tagging#5
ColeT wants to merge 3 commits into
neyer:mainfrom
ColeT:tagging

Conversation

@ColeT

@ColeT ColeT commented Jun 14, 2022

Copy link
Copy Markdown

Adding front end support for adding tags when adze-ing a link. Changed how existing links display to make the remove option more clear, and gave them a box to make the separation between different links more clear. Differentiated the link from the link title. Adding placeholder examples of info tags.

image

ColeT added 3 commits June 14, 2022 12:23
some minor code cleanup that removes warnings from npm start.
adding tagging to my links page. only front end code.
manifest now saves tags, my links now displays tags

@neyer neyer left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This is great overall. You might consider adding something on the 'feed' page to render the tags added by users; you could add on a count showing how many other users applied that tag.

import { selectManifest , addLinkByUrl, removeLink } from './state/manifestSlice.js'
import { selectCredentials } from './state/credentialsSlice.js'
import { useSelector, useDispatch} from 'react-redux'
const numberOfTags = 4;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This is more like numberOfTagsOnInputForm, yes? We can limit the UI to just showing 4 tag fields for right now if that's easier, but one goal would be to let people add arbitrary numbers of tags here.

title: linkDesc.title,
url: linkDesc.url,
timestamp_ms: new Date().getTime(),
tags: linkAndCreds.tags

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

We should change linkAndCreds to be more accurate, since now we are taking in the link, the credentials, and a list of tags to apply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants