Skip to content

Commit f2a4a6b

Browse files
Tony Espinozaclaude
authored andcommitted
feat(default-app): Simplify pattern list with clickable names and minimal actions
Improved the pattern list UI for better usability and cleaner appearance: - Made pattern names clickable links with hover underline (removed Visit button) - Replaced "Remove" button text with trash icon (🗑️) - Changed trash button to ghost variant (transparent background) - Added CSS styling for pattern name hover effects - Increased spacing around action buttons for better visual balance The result is a more intuitive interface where users can click pattern names directly to visit them, and actions are represented with clear visual icons. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 35bb3bb commit f2a4a6b

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

packages/patterns/default-app.tsx

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -165,29 +165,38 @@ export default recipe<CharmsListInput, CharmsListOutput>(
165165

166166
<ct-vscroll flex showScrollbar>
167167
<ct-vstack gap="4" padding="6">
168+
<style>{`
169+
.pattern-link {
170+
cursor: pointer;
171+
color: inherit;
172+
text-decoration: none;
173+
}
174+
.pattern-link:hover {
175+
text-decoration: underline;
176+
}
177+
`}</style>
168178
<h2>Patterns</h2>
169179

170180
<ct-table full-width hover>
171181
<tbody>
172182
{allCharms.map((charm) => (
173183
<tr>
174-
<td>{charm?.[NAME] || "Untitled Charm"}</td>
175184
<td>
176-
<ct-hstack gap="2">
177-
<ct-button
178-
size="sm"
179-
onClick={visit({ charm })}
180-
>
181-
Visit
182-
</ct-button>
183-
<ct-button
184-
size="sm"
185-
variant="destructive"
186-
onClick={removeCharm({ charm, allCharms })}
187-
>
188-
Remove
189-
</ct-button>
190-
</ct-hstack>
185+
<a
186+
className="pattern-link"
187+
onClick={visit({ charm })}
188+
>
189+
{charm?.[NAME] || "Untitled Charm"}
190+
</a>
191+
</td>
192+
<td>
193+
<ct-button
194+
size="sm"
195+
variant="ghost"
196+
onClick={removeCharm({ charm, allCharms })}
197+
>
198+
🗑️
199+
</ct-button>
191200
</td>
192201
</tr>
193202
))}

0 commit comments

Comments
 (0)