Skip to content

Commit cf7d6e8

Browse files
committed
Improve bug_report
1 parent e5cde5a commit cf7d6e8

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,58 +7,53 @@ assignees: []
77
body:
88
- type: markdown
99
attributes:
10-
value: "## 🐛 Bug Report\nPlease fill out the details below."
10+
value: "## 🐛 Bug Report\nPlease fill out the details below to help us resolve your issue quickly."
1111

1212
- type: textarea
13-
id: reproduction
13+
id: steps
1414
attributes:
15-
label: "Settings / Steps to Reproduce"
16-
description: "Provide a step-by-step guide on how to reproduce the bug. Please include the plugin settings you were using."
17-
placeholder: "Framework: Tailwind with JSX\n1. Selected design\n2. Selected Optimize Layers\n3. See error"
15+
label: "Steps to Reproduce"
16+
description: "Provide a step-by-step guide of the actions you took that led to the bug."
17+
placeholder: |
18+
1. Open the plugin
19+
2. Select a text layer
20+
3. Reorder the layer.
21+
4. Observe the error
1822
validations:
1923
required: true
2024

2125
- type: textarea
2226
id: expected-behavior
2327
attributes:
2428
label: "Expected Behavior"
25-
description: "What did you expect to happen?"
26-
placeholder: "The button should navigate to the dashboard."
29+
description: "Describe what you expected to happen."
30+
placeholder: "The code should be generated successfully and displayed in the output panel."
2731
validations:
28-
required: true
32+
required: false
2933

3034
- type: textarea
3135
id: actual-behavior
3236
attributes:
3337
label: "Actual Behavior"
34-
description: "What actually happened?"
35-
placeholder: "The button does nothing."
38+
description: "Describe what actually happened. Include any error messages or logs if applicable."
39+
placeholder: "An error message appears: 'Failed to generate code due to invalid layer configuration.'"
3640
validations:
37-
required: true
41+
required: false
3842

3943
- type: input
4044
id: design-link
4145
attributes:
4246
label: "Design Reference"
43-
description: "Provide a link to the design that you were working on (if possible)."
44-
placeholder: "Figma design link"
47+
description: "If applicable, provide a link to the design related to this bug (e.g., Figma link)."
48+
placeholder: "e.g., https://www.figma.com/file/example"
4549
validations:
4650
required: false
4751

4852
- type: textarea
4953
id: screenshots
5054
attributes:
5155
label: "Screenshots or Videos"
52-
description: "If applicable, add screenshots or screen recordings to help explain the issue."
53-
placeholder: "Drag and drop images here or paste them from your clipboard."
56+
description: "If applicable, add screenshots or provide links to videos to help explain the issue. You can drag and drop images here or paste them from your clipboard."
57+
placeholder: "Drag and drop images or videos here"
5458
validations:
5559
required: false
56-
57-
- type: textarea
58-
id: environment
59-
attributes:
60-
label: "Environment"
61-
description: "Optionally provide details about your development environment."
62-
placeholder: "OS: macOS 14.1\nBrowser: Chrome 120\nNode.js: 18.17.0"
63-
validations:
64-
required: true

packages/backend/src/html/htmlTextBuilder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
generateUniqueClassName,
1212
stylesToCSS,
1313
getComponentName,
14-
getSvelteClassName,
1514
} from "./htmlMain";
1615

1716
export class HtmlTextBuilder extends HtmlDefaultBuilder {
@@ -137,7 +136,9 @@ export class HtmlTextBuilder extends HtmlDefaultBuilder {
137136
textTrim(): this {
138137
if ("leadingTrim" in this.node && this.node.leadingTrim === "CAP_HEIGHT") {
139138
this.addStyles(formatWithJSX("text-box-trim", this.isJSX, "trim-both"));
140-
this.addStyles(formatWithJSX("text-box-edge", this.isJSX, "cap alphabetic"));
139+
this.addStyles(
140+
formatWithJSX("text-box-edge", this.isJSX, "cap alphabetic"),
141+
);
141142
}
142143
return this;
143144
}

0 commit comments

Comments
 (0)