-
Notifications
You must be signed in to change notification settings - Fork 490
feat: add HoneyToast component for persistent progress notifications #7902
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
Changes from all commits
50f83a2
42d8a69
ce9b048
4d7b1af
e2bd15d
6fd86d7
f1e648e
9fc8caa
a1295e3
8edd520
45db57d
75e8c8d
72d3507
0be8934
cf4e2b0
d6468ee
2d62844
7e69ef6
16a3046
32ec1e8
f4a829c
b9d6413
701f2e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -122,7 +122,10 @@ The project uses **Nx** for build orchestration and task management | |
| - Prefer reactive props destructuring to `const props = defineProps<...>` | ||
| - Do not use `withDefaults` or runtime props declaration | ||
| - Do not import Vue macros unnecessarily | ||
| - Prefer `useModel` to separately defining a prop and emit | ||
| - Prefer `defineModel` to separately defining a prop and emit for v-model bindings | ||
| - Define slots via template usage, not `defineSlots` | ||
| - Use same-name shorthand for slot prop bindings: `:isExpanded` instead of `:is-expanded="isExpanded"` | ||
|
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. @coderabbitai is there a linter rule for this?
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: Length of output: 7757 🏁 Script executed: Length of output: 0 🏁 Script executed: Length of output: 759 🏁 Script executed: Length of output: 127 🏁 Script executed: Length of output: 127 🏁 Script executed: Length of output: 81 🏁 Script executed: Length of output: 81 🌐 Web query: 💡 Result: There’s no standalone “defineModel” rule; handling of defineModel (the compiler macro) is covered by the vue/define-macros-order rule (which lets you enforce the order of compiler macros in <script setup>) and by deprecation/validation rules for model definitions. Example:
Sources: 🌐 Web query: 💡 Result: Rule: vue/v-slot-style — enforces v-slot directive style (shorthand #, longform v-slot:, or plain v-slot). Options: atComponent, default, named (each "shorthand" | "longform" | "v-slot") or a single "shorthand"/"longform" preset. Introduced in eslint-plugin-vue v6.0.0. Example: use <template #default> or per your option. [1][2] Sources: 🌐 Web query: 💡 Result: Short answer: eslint-plugin-vue enforces defineSlots usage via multiple rules:
Examples / config pointers:
Sources: eslint-plugin-vue docs for vue/define-macros-order, vue/require-macro-variable-name, vue/no-unsupported-features, and changelog noting require-explicit-slots. [1][2][3][4] 🌐 Web query: 💡 Result: There’s a dedicated rule in eslint-plugin-vue: vue/v-bind-style — it enforces v-bind shorthand vs longform and (since recent releases) includes a sameNameShorthand option to control the Vue 3.4+ same-name shorthand (:foo when the variable is named foo).
Sources: @christian-byrne Unfortunately, only one of the three guidelines has a linter rule available: 1. ✅ Same-name shorthand (
|
||
| - Derive component types using `vue-component-type-helpers` (`ComponentProps`, `ComponentSlots`) instead of separate type files | ||
| - Be judicious with addition of new refs or other state | ||
| - If it's possible to accomplish the design goals with just a prop, don't add a `ref` | ||
| - If it's possible to use the `ref` or prop directly, don't add a `computed` | ||
|
|
@@ -271,6 +274,8 @@ When referencing Comfy-Org repos: | |
| - Use `cn()` inline in the template when feasible instead of creating a `computed` to hold the value | ||
| - NEVER use `!important` or the `!` important prefix for tailwind classes | ||
| - Find existing `!important` classes that are interfering with the styling and propose corrections of those instead. | ||
| - NEVER use arbitrary percentage values like `w-[80%]` when a Tailwind fraction utility exists | ||
| - Use `w-4/5` instead of `w-[80%]`, `w-1/2` instead of `w-[50%]`, etc. | ||
|
|
||
| ## Agent-only rules | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
<3