Skip to content

Commit d56bb46

Browse files
committed
chore: add more voting items and help text
1 parent 72526be commit d56bb46

7 files changed

Lines changed: 189 additions & 118 deletions

File tree

.changeset/social-knives-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"amgiflol": patch
3+
---
4+
5+
add voting for color and animation debugging, and tooltips to help with voting

.github/workflows/release.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ jobs:
3333
github.event_name == 'workflow_dispatch'
3434
outputs:
3535
hasChangesets: ${{ steps.changeset-check.outputs.hasChangesets }}
36-
newVersion: ${{ steps.version.outputs.newVersion }}
37-
currentVersion: ${{ steps.current-version.outputs.currentVersion }}
3836
steps:
3937
- uses: actions/checkout@v4
4038
with:
@@ -80,10 +78,8 @@ jobs:
8078
8179
- name: Get current version (if no changesets)
8280
if: steps.changeset-check.outputs.hasChangesets == 'false'
83-
id: current-version
8481
run: |
8582
CURRENT_VERSION=$(node -p "require('./package.json').version")
86-
echo "currentVersion=$CURRENT_VERSION" >> "$GITHUB_OUTPUT"
8783
echo "📦 Current version: $CURRENT_VERSION"
8884
8985
- name: Commit and Push (with version bump)
@@ -104,7 +100,8 @@ jobs:
104100
steps:
105101
- uses: actions/checkout@v4
106102
with:
107-
fetch-depth: 0
103+
fetch-depth: 1
104+
ref: 'main'
108105

109106
- uses: pnpm/action-setup@v4
110107
name: Install pnpm
@@ -123,24 +120,34 @@ jobs:
123120
run: |
124121
pnpm run zip:all
125122
123+
- name: Get Version
124+
id: version
125+
run: |
126+
pnpm changeset version
127+
NEW_VERSION=$(node -p "require('./package.json').version")
128+
echo "newVersion=$NEW_VERSION" >> "$GITHUB_OUTPUT"
129+
echo "📦 New version: $NEW_VERSION"
130+
126131
- name: Create GitHub Release (with version bump)
127132
if: ${{ needs.changeset_check.outputs.hasChangesets == 'true' }}
128133
uses: softprops/action-gh-release@v1
129134
with:
130-
tag_name: v${{ needs.changeset_check.outputs.newVersion }}
131-
name: amgiflol@${{ needs.changeset_check.outputs.newVersion }}
135+
tag_name: v${{ steps.version.outputs.newVersion }}
136+
name: amgiflol@${{ steps.version.outputs.newVersion }}
132137
body_path: CHANGELOG.md
133138
files: |
134139
dist/*.zip
135140
draft: false
136141
prerelease: false
142+
env:
143+
NEW_VERSION: ${{ steps.version.outputs.newVersion }}
137144

138145
- name: Create GitHub Release (no version bump)
139146
if: ${{ needs.changeset_check.outputs.hasChangesets == 'false' }}
140147
uses: softprops/action-gh-release@v1
141148
with:
142-
tag_name: v${{ needs.changeset_check.outputs.currentVersion }}
143-
name: amgiflol@${{ needs.changeset_check.outputs.currentVersion }}
149+
tag_name: v${{ steps.version.outputs.newVersion }}
150+
name: amgiflol@${{ steps.version.outputs.newVersion }}
144151
body_path: CHANGELOG.md
145152
files: |
146153
dist/*.zip

src/lib/components/Tooltip.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<script lang="ts">
2-
import { Tooltip } from "bits-ui";
2+
import { Tooltip, type TooltipContentProps } from "bits-ui";
33
import { type Snippet } from "svelte";
44
import { fade } from "svelte/transition";
55
66
interface Props {
77
children: Snippet;
88
label?: string;
9+
side?: TooltipContentProps["side"];
10+
sideOffset?: number;
911
}
1012
11-
let { children, label }: Props = $props();
13+
let { children, label, side, sideOffset = -2 }: Props = $props();
1214
</script>
1315

1416
<Tooltip.Root
@@ -18,13 +20,13 @@
1820
<Tooltip.Trigger disabled={label === undefined}>
1921
{@render children?.()}
2022
</Tooltip.Trigger>
21-
<Tooltip.Content sideOffset={-2} forceMount>
23+
<Tooltip.Content {side} sideOffset={sideOffset} forceMount>
2224
{#snippet child({ wrapperProps, props, open })}
2325
{#if open}
2426
<div {...wrapperProps}>
2527
<p
2628
{...props}
27-
class="border-lime-300 bg-white shadow-lime-600 shadow-sm outline-hidden flex items-center p-3 justify-center border-2 rounded-lg font-medium"
29+
class="border-lime-300 max-w-[35ch] bg-white shadow-lime-600 shadow-sm outline-hidden flex items-center p-3 justify-center border-2 rounded-lg font-medium"
2830
transition:fade={{ duration: 75 }}
2931
>
3032
{label}

src/lib/modules/Toolbar/ToolbarAction.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<Tooltip {label}>
2222
<Toggle.Root
23-
aria-label={label ?? ""}
23+
aria-label={disabled ? "Coming soon..." : label ?? ""}
2424
{disabled}
2525
bind:pressed
2626
{onPressedChange}

0 commit comments

Comments
 (0)