Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

tags

Vasek Mlejnskya789731f8f9a
diff --git a/components/Filesystem/Dir.tsx b/components/Filesystem/Dir.tsx
index 98e8fef66..d25cc7328 100644
--- a/components/Filesystem/Dir.tsx
+++ b/components/Filesystem/Dir.tsx
@@ -75,19 +75,22 @@ function Dir({
function addNewTag(s: Severity) {
if (!newTagName) return
- // TODO: Add tag in DB to all files that has this challenge dir as an ancestor
const newTag: AgentChallengeTagType = {
path,
text: newTagName,
severity: s,
}
- console.log('New tag', newTag)
+ // TODO: Add to DB
+ // TODO: If success add to metadata
setNewTagName('')
setMetadata([newTag])
}
function removeTag() {
setMetadata([])
+ // TODO: Remove from DB
+ // TODO: IF success remove from metadata
+ setMetadata([])
}
const icon = isExpanded ? (