fixed delete bug and removed console statements (#1313)

This commit is contained in:
aadesh18 2026-04-08 17:14:30 -07:00 committed by GitHub
parent 82231f26c6
commit a0710f8807
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -48,7 +48,10 @@ export type DesignListItemRowProps = {
function ListItemButtons({ buttons }: { buttons: DesignListItemButton[] }) {
return (
<div className="relative flex items-center gap-2">
<div
className="relative flex items-center gap-2"
onClick={(e) => e.stopPropagation()}
>
{buttons.map((button) => {
const display = button.display ?? "text";
@ -115,6 +118,7 @@ export function DesignListItemRow({
tabIndex: 0,
onClick,
onKeyDown: (e: React.KeyboardEvent) => {
if (e.currentTarget !== e.target) return;
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
onClick();

View File

@ -97,7 +97,7 @@ No markdown, no explanation — just the JSON.`;
}
const selected = parsed.selectedFiles.filter((f) => availableFiles.includes(f));
console.log("[selectRelevantFiles] selected:", selected);
return selected;
} catch (e) {
console.log("[selectRelevantFiles] failed, returning all files:", e);
@ -158,7 +158,6 @@ export async function buildDashboardMessages(
const typeDefinitions = loadSelectedTypeDefinitions(selectedFiles);
const availableRoutes = enabledAppIds ? buildAvailableRoutes(enabledAppIds) : "";
console.log("[buildDashboardMessages] enabledAppIds:", enabledAppIds?.length, "availableRoutes:", availableRoutes.slice(0, 200));
const contextMessages: Array<{ role: string, content: string }> = [];