refactor(Index.tsx): remove unused AI tag generation button from current entry section
This commit is contained in:
@@ -2081,34 +2081,18 @@ ${content}${context}`;
|
|||||||
<div className="flex-1 bg-card rounded-lg border border-border shadow-sm p-6 overflow-hidden">
|
<div className="flex-1 bg-card rounded-lg border border-border shadow-sm p-6 overflow-hidden">
|
||||||
<div className={`${getTextClass('2xl')} text-muted-foreground mb-3 flex items-center gap-4`}>
|
<div className={`${getTextClass('2xl')} text-muted-foreground mb-3 flex items-center gap-4`}>
|
||||||
<div>Current Entry</div>
|
<div>Current Entry</div>
|
||||||
<div className="flex-1 flex items-center gap-2">
|
<div className="flex-1 flex items-center gap-2">
|
||||||
<span className={`${getTextClass('base')} text-muted-foreground`}>Tags:</span>
|
<span className={`${getTextClass('base')} text-muted-foreground`}>Tags:</span>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={currentNoteTags.join(', ')}
|
value={currentNoteTags.join(', ')}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const tags = e.target.value.split(',').map(tag => tag.trim()).filter(tag => tag.length > 0);
|
const tags = e.target.value.split(',').map(tag => tag.trim()).filter(tag => tag.length > 0);
|
||||||
setCurrentNoteTags(tags);
|
setCurrentNoteTags(tags);
|
||||||
}}
|
}}
|
||||||
className={`flex-1 border-0 bg-transparent ${getTextClass('base')} p-0 outline-none`}
|
className={`flex-1 border-0 bg-transparent ${getTextClass('base')} p-0 outline-none`}
|
||||||
/>
|
/>
|
||||||
{!autoGenerateTags && (
|
</div>
|
||||||
<Button
|
|
||||||
onClick={async () => {
|
|
||||||
if (currentNote.trim()) {
|
|
||||||
addDebugInfo('Manually generating tags for current note...');
|
|
||||||
const tags = await generateTags(currentNote, 0); // Current note context
|
|
||||||
setCurrentNoteTags(tags);
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
size="sm"
|
|
||||||
variant="outline"
|
|
||||||
className={`${getTextClass('base')} px-2 py-1 h-6`}
|
|
||||||
>
|
|
||||||
AI
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<Textarea
|
<Textarea
|
||||||
ref={currentNoteRef}
|
ref={currentNoteRef}
|
||||||
|
Reference in New Issue
Block a user