Skip to content

Commit 0649004

Browse files
committed
fix: reorder import mode dialog to show project level first
- Move Project Level option to appear first in visual order - Set Project Level as the default selected option - Update fallback to use 'project' instead of 'global'
1 parent de8226f commit 0649004

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

webview-ui/src/components/modes/ModesView.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,20 +1478,26 @@ const ModesView = ({ onDone }: ModesViewProps) => {
14781478
</p>
14791479
<div className="space-y-3 mb-6">
14801480
<label className="flex items-start gap-2 cursor-pointer">
1481-
<input type="radio" name="importLevel" value="global" className="mt-1" defaultChecked />
1481+
<input
1482+
type="radio"
1483+
name="importLevel"
1484+
value="project"
1485+
className="mt-1"
1486+
defaultChecked
1487+
/>
14821488
<div>
1483-
<div className="font-medium">{t("prompts:importMode.global.label")}</div>
1489+
<div className="font-medium">{t("prompts:importMode.project.label")}</div>
14841490
<div className="text-xs text-vscode-descriptionForeground">
1485-
{t("prompts:importMode.global.description")}
1491+
{t("prompts:importMode.project.description")}
14861492
</div>
14871493
</div>
14881494
</label>
14891495
<label className="flex items-start gap-2 cursor-pointer">
1490-
<input type="radio" name="importLevel" value="project" className="mt-1" />
1496+
<input type="radio" name="importLevel" value="global" className="mt-1" />
14911497
<div>
1492-
<div className="font-medium">{t("prompts:importMode.project.label")}</div>
1498+
<div className="font-medium">{t("prompts:importMode.global.label")}</div>
14931499
<div className="text-xs text-vscode-descriptionForeground">
1494-
{t("prompts:importMode.project.description")}
1500+
{t("prompts:importMode.global.description")}
14951501
</div>
14961502
</div>
14971503
</label>
@@ -1509,7 +1515,7 @@ const ModesView = ({ onDone }: ModesViewProps) => {
15091515
setShowImportDialog(false)
15101516
vscode.postMessage({
15111517
type: "importMode",
1512-
source: selectedLevel || "global",
1518+
source: selectedLevel || "project",
15131519
})
15141520
}}>
15151521
{t("prompts:importMode.import")}

0 commit comments

Comments
 (0)