-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tag Insertion Dialog #267
Tag Insertion Dialog #267
Conversation
braxtonhall
commented
Jan 14, 2023
- toward Insert new tags into tag index #212
- resolves trim tags in sheet #266
- toward Add scroll shadows to Modals #259
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.
epicnessity
// { | ||
// kind: "button", | ||
// text: "Insert Tags", | ||
// colour: UIColour.GREY, | ||
// onClick: async () => resolve(insertTags(invalidTags).then(() => saveHandler({noCache: true}))), | ||
// }, |
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.
i know we're working towards some tickets in this PR, but do we want this here?
import {UIColour} from "../../../../../common/ui/colour"; | ||
import {getSheetLink} from "../../../../../common/entities/spreadsheet"; | ||
import {GetTagsOptions} from "../types"; | ||
// import {insertTags} from "./insertTags"; |
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.
same thing
) | ||
); | ||
|
||
export {insertTags}; |
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.
mmmm delicious file
for (let node = trees.get(tag.toLowerCase()); node; node = node.parent) { | ||
ancestry.push(node.tag); | ||
for (let node: TagTree["parent"] = nodes.get(tag.toLowerCase()); node && "parent" in node; node = node.parent) { | ||
// TODO maybe we should detect collisions here and then create a modal? |
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.
how often does this code get run? and what would the user do with this information if we show them the modal?
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.
I think maybe the modal should happen at a later step.
For example, when adding ancestor tags.
Or maybe? Instead of a tree its a network, and we just go for it and add all ancestors on multiple paths?