Skip to content

Commit 44ee020

Browse files
committed
Plugins menu item and link to run button
1 parent c609d0f commit 44ee020

File tree

4 files changed

+32
-19
lines changed

4 files changed

+32
-19
lines changed

src-web/components/ExportDataDialog.tsx

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { invokeCmd } from '../lib/tauri';
1010
import { Button } from './core/Button';
1111
import { Checkbox } from './core/Checkbox';
1212
import { DetailsBanner } from './core/DetailsBanner';
13+
import { Link } from './core/Link';
1314
import { HStack, VStack } from './core/Stacks';
1415

1516
interface Props {
@@ -131,21 +132,26 @@ function ExportDataDialogContent({
131132
help='Environments marked as "sharable" will be exported by default'
132133
/>
133134
</DetailsBanner>
134-
<HStack space={2} justifyContent="end">
135-
<Button className="focus" variant="border" onClick={onHide}>
136-
Cancel
137-
</Button>
138-
<Button
139-
type="submit"
140-
className="focus"
141-
color="primary"
142-
disabled={noneSelected}
143-
onClick={() => handleExport()}
144-
>
145-
Export{' '}
146-
{pluralizeCount('Workspace', numSelected, { omitSingle: true, noneWord: 'Nothing' })}
147-
</Button>
148-
</HStack>
135+
<div className="grid grid-cols-[1fr_auto] items-center mt-6 pb-1.5">
136+
<div>
137+
<Link href="https://yaak.app/button/new" noUnderline className="text-text-subtle">Create Run Button</Link>
138+
</div>
139+
<HStack space={2} justifyContent="end">
140+
<Button className="focus" variant="border" onClick={onHide}>
141+
Cancel
142+
</Button>
143+
<Button
144+
type="submit"
145+
className="focus"
146+
color="primary"
147+
disabled={noneSelected}
148+
onClick={() => handleExport()}
149+
>
150+
Export{' '}
151+
{pluralizeCount('Workspace', numSelected, { omitSingle: true, noneWord: 'Nothing' })}
152+
</Button>
153+
</HStack>
154+
</div>
149155
</VStack>
150156
);
151157
}

src-web/components/Settings/SettingsPlugins.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function SettingsPlugins() {
4646
addBorders
4747
tabListClassName="!-ml-3"
4848
tabs={[
49-
{ label: 'Marketplace', value: 'search' },
49+
{ label: 'Discover', value: 'search' },
5050
{
5151
label: 'Installed',
5252
value: 'installed',

src-web/components/SettingsDropdown.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ export function SettingsDropdown() {
4343
},
4444
},
4545
{
46-
label: 'Create Run Button',
47-
leftSlot: <Icon icon="rocket" />,
48-
onSelect: () => openUrl("https://yaak.app/button/new"),
46+
label: 'Plugins',
47+
leftSlot: <Icon icon="puzzle" />,
48+
onSelect: () => openSettings.mutate('plugins'),
4949
},
50+
{ type: 'separator', label: 'Share Workspace(s)' },
5051
{
5152
label: 'Import Data',
5253
leftSlot: <Icon icon="folder_input" />,
@@ -57,6 +58,11 @@ export function SettingsDropdown() {
5758
leftSlot: <Icon icon="folder_output" />,
5859
onSelect: () => exportData.mutate(),
5960
},
61+
{
62+
label: 'Create Run Button',
63+
leftSlot: <Icon icon="rocket" />,
64+
onSelect: () => openUrl('https://yaak.app/button/new'),
65+
},
6066
{ type: 'separator', label: `Yaak v${appInfo.version}` },
6167
{
6268
label: 'Purchase License',

src-web/components/core/Icon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const icons = {
9292
plug: lucide.Plug,
9393
plus: lucide.PlusIcon,
9494
plus_circle: lucide.PlusCircleIcon,
95+
puzzle: lucide.PuzzleIcon,
9596
refresh: lucide.RefreshCwIcon,
9697
rocket: lucide.RocketIcon,
9798
save: lucide.SaveIcon,

0 commit comments

Comments
 (0)