-
Notifications
You must be signed in to change notification settings - Fork 214
fix: bug #2853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: bug #2853
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,17 @@ | |
| export let leadingIcon: ComponentType | undefined = undefined; | ||
|
|
||
| let error: string; | ||
|
|
||
| // TODO: Remove this once Pink Svelte is fixed | ||
| $: if (value !== null && typeof value === 'object' && 'target' in (value as object)) { | ||
| const event = value as Event; | ||
| const target = event.target as HTMLInputElement; | ||
| if (target?.value !== undefined) { | ||
| const parsedValue = target.value === '' ? null : Number(target.value); | ||
| value = Number.isNaN(parsedValue) ? null : parsedValue; | ||
| } else { | ||
| value = null; | ||
| } | ||
| } | ||
|
Comment on lines
+22
to
+32
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check if there's an existing issue referencing this workaround or the pink-svelte input event bug
rg -rn "pink" -i --type=svelte || true
rg -rn "TODO.*Pink" -i || true
# Also check for any github/issue links in the codebase related to svelte input
rg -rn "github.*issue\|#[0-9]+.*pink\|pink.*#[0-9]+" -i || trueRepository: appwrite/console Length of output: 50422 🏁 Script executed: #!/bin/bash
# Read the inputNumber.svelte file to see the exact TODO
head -40 src/lib/elements/forms/inputNumber.svelte | cat -n
# Also check for any issue references in the file
grep -i "issue\|github\|#[0-9]\|bug\|pink" src/lib/elements/forms/inputNumber.svelte || echo "No issue references found"Repository: appwrite/console Length of output: 1920 🏁 Script executed: #!/bin/bash
# Check for any references to Pink Svelte issues or GitHub in the repo
find . -type f \( -name "*.md" -o -name ".github" -o -name "*.json" \) 2>/dev/null | head -20
# Search for any GitHub issues or Pink Svelte issue tracking
rg -i "pink.?svelte.*issue|pink.?svelte.*github|appwrite.*pink" --max-count=20 || echo "No GitHub references found"
# Check if there's a package.json or dependency file that might reference Pink Svelte version
rg "pink-svelte" -A2 -B2 || echo "No package references"
</parameter>Repository: appwrite/console Length of output: 50498 🏁 Script executed: #!/bin/bash
# Check for any comment with issue/bug references near the TODO
grep -B5 -A10 "TODO.*Pink Svelte" src/lib/elements/forms/inputNumber.svelte
# Check if there are any issue references in common places
grep -r "pink-svelte" .github 2>/dev/null || echo "No .github references"
# Check the package.json to understand the Pink Svelte version/status
grep -A2 -B2 "pink-svelte" package.json | head -10Repository: appwrite/console Length of output: 1429 Reference the upstream Pink Svelte issue in the TODO comment. The TODO comment lacks a link to a tracked upstream issue. Without this reference, the workaround on lines 23-32 may become permanent. Add the GitHub issue URL (or issue tracker link) to the comment so it's clear what needs to be resolved before this code can be removed. For example: 🤖 Prompt for AI Agents |
||
| const handleInvalid = (event: Event & { currentTarget: EventTarget & HTMLInputElement }) => { | ||
| event.preventDefault(); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Malformed duplicate dependency entries — likely accidental.
Lines 25 and 27 already declare
@appwrite.io/pink-icons-svelteand@appwrite.io/pink-svelte(at@df765cc). These new lines use the full URL as the package key, which is not a valid dependency identifier, and point to a different commit (@a4067bf). This looks like a lockfile artifact or accidental paste that will either be ignored, cause resolution conflicts, or shadow the existing entries.If the intent is to upgrade, update the existing entries on lines 25 and 27 to the new commit hash instead.
Proposed fix
🤖 Prompt for AI Agents