-
Notifications
You must be signed in to change notification settings - Fork 742
Migrate Writable<App> to StateStore<App> #5954
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
base: main
Are you sure you want to change the base?
Conversation
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.
Important
Looks good to me! 👍
Reviewed everything up to cfee2b6 in 3 minutes and 41 seconds. Click for details.
- Reviewed
5333
lines of code in126
files - Skipped
0
files when reviewing. - Skipped posting
19
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. frontend/src/lib/components/apps/editor/settingsPanel/CSSMigrationModal.svelte:90
- Draft comment:
The conditional check using OR in the includes() call is incorrect. Use separate includes() calls (e.g. cssString.includes(${key} {
) || cssString.includes(${key}{
)) to properly detect existing rules. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. General:0
- Draft comment:
Multiple components assign 'app.val = app.val' to trigger reactivity; consider using an explicit update method in the StateStore to improve clarity and reliability. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. frontend/src/lib/components/apps/components/display/AppCarouselList.svelte:64
- Draft comment:
Typo Notice: The key 'carousellistcomponent' is spelled in all lowercase. If the intent was to use camelCase for better readability (e.g., 'carouselListComponent'), please consider updating it. If it's intentional, you can ignore this comment. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. frontend/src/lib/components/apps/components/display/AppMarkdown.svelte:42
- Draft comment:
Typo: The identifier 'mardowncomponent' appears to be misspelled. Consider correcting it to 'markdowncomponent' for clarity. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. frontend/src/lib/components/apps/components/display/AppMarkdown.svelte:68
- Draft comment:
Typographical error: 'mardowncomponent' might be a typo. Consider changing it to 'markdowncomponent'. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. frontend/src/lib/components/apps/components/inputs/AppSelect.svelte:194
- Draft comment:
Typographical error: 'previsousFilter' appears to be misspelled. Consider renaming it to 'previousFilter'. - Reason this comment was not posted:
Comment was on unchanged code.
7. frontend/src/lib/components/apps/components/layout/AppList.svelte:63
- Draft comment:
Typo/lexicographical check: The property name 'listcomponent' appears in the expression. Please verify if it should be 'listComponent' for consistency. - Reason this comment was not posted:
Comment was on unchanged code.
8. frontend/src/lib/components/apps/editor/AppPreview.svelte:321
- Draft comment:
Typo in svelte-ignore comment: It should use dashes instead of underscores in the directive. Replacea11y_click_events_have_key_events
witha11y-click-events-have-key-events
. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50% 1. The change from dashes to underscores appears to be intentional as part of the changes in this PR. 2. The same underscore pattern is used consistently in other similar directives in the file. 3. This seems to be a stylistic change that was made deliberately across multiple instances. 4. The comment may be going against the intended changes. I could be wrong about whether underscores vs dashes matter in Svelte ignore directives. Maybe there is a technical requirement for dashes that I'm not aware of. Even if dashes are technically required, this appears to be part of a larger intentional change in the codebase. If there was a technical issue, it would be caught by the build/compiler. Delete this comment since it appears to be going against an intentional stylistic change, and if there was a technical issue it would be caught by the Svelte compiler.
9. frontend/src/lib/components/apps/editor/AppPreview.svelte:342
- Draft comment:
Typo in svelte-ignore comment: It should use dashes instead of underscores in the directive. Replacea11y_no_static_element_interactions
witha11y-no-static-element-interactions
. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% Looking at Svelte's documentation and common usage, svelte-ignore directives traditionally use dashes, not underscores. However, this seems to be part of a deliberate change in the codebase where multiple similar directives were updated to use underscores. This could be part of a new convention or compatibility with some tooling. Without more context about why these changes were made, we should be cautious about reverting them. While the traditional format does use dashes, the consistent use of underscores across multiple changes suggests this might be intentional. We don't have enough context about why this change was made. Given the uncertainty about whether this is an intentional change and the lack of clear evidence that it's incorrect, we should err on the side of not keeping the comment. Delete the comment since we don't have strong evidence that the underscore format is incorrect, and the change appears to be part of a consistent pattern in the codebase.
10. frontend/src/lib/components/apps/editor/AppPreview.svelte:324
- Draft comment:
Typographical error in event binding: In Svelte, the event directive should use a colon. Changeonpointerdown
toon:pointerdown
. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50% This appears to be part of a larger intentional migration pattern in the codebase to use theon
prefix instead ofon:
for events. The file shows consistent usage of this new pattern withonhashchange
,onclick
, andonresize
. The import ofrun
from 'svelte/legacy' suggests this is a deliberate change. The comment is suggesting to revert this intentional change. Could this be a new Svelte feature or pattern I'm not aware of? Maybe the legacy import enables this new syntax? The consistent pattern throughout the file and the legacy import strongly suggest this is an intentional migration. The comment would be reverting an intentional change. The comment should be deleted as it appears to be suggesting to revert an intentional migration to a new event binding syntax pattern.
11. frontend/src/lib/components/apps/editor/AppPreview.svelte:344
- Draft comment:
Typographical error in event binding: Useon:click
instead ofonclick
to follow Svelte's syntax for event handlers. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% This is a tricky case because the codebase appears to be transitioning to a new Svelte syntax style. The change fromon:click
toonclick
appears intentional and consistent with other changes in the file (likeonpointerdown
,onhashchange
,onresize
). This suggests the codebase is adopting a new convention, possibly related to Svelte's new syntax features. The comment may be incorrect in assuming this is a mistake. I could be wrong about the new Svelte syntax - maybe these changes toonclick
style are actually mistakes. However, the consistency of the changes across the file suggests this is intentional. The systematic nature of the changes, combined with the adoption of other new Svelte features like$state
and$derived
, strongly suggests this is an intentional modernization rather than a mistake. The comment should be deleted because it appears to be incorrectly flagging an intentional syntax change as an error.
12. frontend/src/lib/components/apps/editor/componentsPanel/QuickStyleMenu.svelte:128
- Draft comment:
Typo/consistency: The comment on line 128 reads "Getting style from subgrids". To be consistent with the other comments (e.g., "Getting global app styles" and "Getting styles from individual components"), consider using "Getting styles from subgrids". - Reason this comment was not posted:
Comment was on unchanged code.
13. frontend/src/lib/components/apps/editor/componentsPanel/ThemeRow.svelte:201
- Draft comment:
TheButton
component on line 201 usessize="xs2"
. Is this intentional? It looks like it might be a typographical error, and perhaps you meant to usexs
. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
14. frontend/src/lib/components/apps/editor/contextPanel/DebugPanel.svelte:15
- Draft comment:
Typo: The variable name "unintitializedComponents" appears to contain a misspelling. Consider renaming it to "uninitializedComponents" for clarity. - Reason this comment was not posted:
Comment was on unchanged code.
15. frontend/src/lib/components/apps/editor/contextPanel/DebugPanel.svelte:81
- Draft comment:
Typographical error: It appears that 'unintitializedComponents' is misspelled. The comment above refers to 'uninitializedComponents', so the variable name should be corrected to match this. - Reason this comment was not posted:
Comment was on unchanged code.
16. frontend/src/lib/components/apps/editor/contextPanel/LazyModePanel.svelte:67
- Draft comment:
Typographical suggestion: The label text "Component ids to wait the initialization of before the initial refresh" appears to contain a few issues. Consider updating it to "Component IDs to wait for the initialization before the initial refresh" (capitalize "IDs" and insert "for" after "wait"). - Reason this comment was not posted:
Comment was on unchanged code.
17. frontend/src/lib/components/apps/editor/contextPanel/LazyModePanel.svelte:70
- Draft comment:
Minor typographical note: In the example text, "{'e.g: ["a", "b"]'}" it might be more conventional to use "e.g.," (with a comma) instead of "e.g:". - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is purely informative and focuses on a minor typographical issue that doesn't affect the functionality or understanding of the code. It doesn't provide a code suggestion or address a potential issue with the code itself.
18. frontend/src/lib/components/apps/editor/settingsPanel/StylePanel.svelte:205
- Draft comment:
Typographical error: "overridding" should be "overriding". - Reason this comment was not posted:
Comment was on unchanged code.
19. frontend/src/lib/components/apps/editor/settingsPanel/StylePanel.svelte:230
- Draft comment:
Typographical error: 'overriden' should likely be 'overridden'. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_u2lHyH4h3SZzrkgQ
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Deploying windmill with
|
Latest commit: |
02db7c1
|
Status: | ✅ Deploy successful! |
Preview URL: | https://92dcee69.windmill.pages.dev |
Branch Preview URL: | https://di-app-store-migration.windmill.pages.dev |
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.
Caution
Changes requested ❌
Reviewed everything up to 02db7c1 in 6 minutes and 59 seconds. Click for details.
- Reviewed
5500
lines of code in128
files - Skipped
0
files when reviewing. - Skipped posting
44
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. frontend/src/lib/components/apps/editor/settingsPanel/ContextVariables.svelte:50
- Draft comment:
Usage offindGridItem(app.val, parentId)
is now consistent. Ensure that non‐null assertions (e.g. usingapp.val
) are safe and that the app state is always defined. Consider adding runtime checks or fallbacks if needed. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The app variable comes from a Svelte context, which is a well-established pattern. If app.val could be null, it would likely be a fundamental architectural issue. The comment is speculative - it's saying "consider adding checks" without strong evidence that they're needed. We don't have evidence that app.val can actually be null in practice. The comment could be valid if there's evidence that the context can be undefined or if there are error reports about null app.val. The suggested code change could prevent runtime errors. Without clear evidence that app.val can be null, this is a speculative comment. The Svelte context pattern implies app should be defined when used. Delete this comment as it's speculative and suggests defensive programming without evidence of an actual issue.
2. frontend/src/lib/components/apps/editor/settingsPanel/DeleteComponent.svelte:24
- Draft comment:
UsingfindComponentSettings(app.val, id)
and thenpush(history, app.val)
is correct. As noted elsewhere, avoid using assignments likeapp.val = app.val
repeatedly; a dedicated update mechanism would be cleaner. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The self-assignment pattern does look unusual and potentially problematic. However, in Svelte and similar frameworks, this pattern is sometimes used intentionally to trigger reactivity. Without more context about theapp
object's implementation and the store system being used, we can't be certain this is actually a problem. The suggestion for a "dedicated update mechanism" is vague and not immediately actionable. I might be missing some Svelte-specific patterns where this kind of self-assignment is actually the recommended approach. The change from$app
toapp.val
suggests there might be a specific reason for this pattern. While the self-assignment looks suspicious, without understanding the full store implementation and why it was changed from$app
, we can't be confident this is actually an issue that needs fixing. The comment should be removed because it makes assumptions about the codebase's architecture without strong evidence that this is actually a problem, and its suggestion is not specific enough to be actionable.
3. frontend/src/lib/components/apps/editor/settingsPanel/GridCondition.svelte:50
- Draft comment:
The migration toapp.val.subgrids
is correctly applied. In lines where you use the non-null assertion (app.val!
), ensure that the state is always properly initialized to avoid runtime errors. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
The comment is asking the author to ensure that the state is properly initialized when using non-null assertions. This falls under asking the author to ensure behavior is intended or to double-check things, which is against the rules.
4. frontend/src/lib/components/apps/editor/settingsPanel/GridPane.svelte:17
- Draft comment:
Good use ofapp.val.subgrids
initialization. Again, consider refactoring the pattern of reassigningapp.val = app.val
into a standard update helper. - Reason this comment was not posted:
Marked as duplicate.
5. frontend/src/lib/components/apps/editor/settingsPanel/GridTab.svelte:64
- Draft comment:
Migration is clean here. The code consistently usesapp.val.subgrids
and updates the state as needed. No further changes noted. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is purely informative, as it only praises the code without providing any actionable feedback or suggestions. It does not align with the rules for good comments, which should offer specific suggestions or highlight potential issues.
6. frontend/src/lib/components/apps/editor/settingsPanel/InputsSpecEditor.svelte:100
- Draft comment:
The migration here looks fine. The use ofapp.val = app.val
in on-change handlers to trigger reactivity is repetitive; consider a dedicated state update function to improve clarity. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
7. frontend/src/lib/components/apps/editor/settingsPanel/MenuItems.svelte:27
- Draft comment:
The update to useapp.val = app.val
after modifying components is consistent. In addition, consider ensuring that error stores and selected component stores are updated in a uniform way. - Reason this comment was not posted:
Comment was on unchanged code.
8. frontend/src/lib/components/apps/editor/settingsPanel/SelectedRunnable.svelte:21
- Draft comment:
Migration to useapp.val
is correct. The logic for pushing tounusedInlineScripts
and then clearing the input is consistent. Consider if a dedicated API method to modify the state would reduce boilerplate. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 30% vs. threshold = 50% The pattern of modifying app.val.unusedInlineScripts and then reassigning app.val is a bit clunky. A dedicated method could encapsulate this pattern and make the code cleaner. However, this might be a one-off case, and without seeing more of the codebase, we can't be sure if this pattern appears elsewhere to justify an API method. Without seeing more of the codebase, we can't be certain if this pattern appears frequently enough to warrant a dedicated API method. The current approach, while verbose, is a standard Svelte pattern. While the suggestion could improve code quality, the current code follows standard Svelte patterns and works correctly. The benefit might not justify the added complexity of a new API method. While the suggestion has merit, without more context about the broader codebase, it's not clear enough that this would be a valuable improvement to justify keeping the comment.
9. frontend/src/lib/components/apps/editor/settingsPanel/StylePanel.svelte:37
- Draft comment:
The global CSS migration usingapp.val.css
looks good. As with other files, the repeated assignmentapp.val = app.val
is used to trigger reactivity—consider refactoring this into a more explicit state update method. - Reason this comment was not posted:
Marked as duplicate.
10. frontend/src/lib/components/apps/editor/settingsPanel/TableActions.svelte:72
- Draft comment:
The add/delete actions are updated to useapp.val
consistently. Ensure that all references to stores like$selectedComponent
,$errorByComponent
, and$movingcomponents
are maintained as intended. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is asking the PR author to ensure that references are maintained as intended, which is a form of asking for confirmation or double-checking. This violates the rule against asking the author to confirm their intention or ensure behavior is intended.
11. frontend/src/lib/components/apps/editor/settingsPanel/decisionTree/DecisionTreePreview.svelte:60
- Draft comment:
Usage ofapp.val.subgrids
in deleting subgrids and updating nodes is properly migrated. The changes seem consistent and correctly use the new StateStore. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is purely informative, as it praises the usage ofapp.val.subgrids
and the migration to the new StateStore without providing any actionable feedback or suggestions. It does not align with the rules provided, which prohibit purely informative comments.
12. frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/ConnectedInputEditor.svelte:12
- Draft comment:
The upgrade is minimal here. Assigningapp.val = app.val
on disconnect is consistent. No major issues. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment seems to be purely informative, as it states that the upgrade is minimal and consistent without suggesting any changes or asking for confirmation on specific code behavior. It doesn't provide any actionable feedback or raise any concerns.
13. frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/RunnableInputEditor.svelte:25
- Draft comment:
The migration here to use context to getapp
and then updating state is fine. Confirm that updating$selectedComponentInEditor
properly triggers reactivity. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
14. frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/TabSelectInput.svelte:11
- Draft comment:
Consistent usage ofapp.val.grid
&app.val.subgrids
for tab component filtering. Looks clean. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is purely informative and does not provide any actionable feedback or suggestions for improvement. It simply praises the consistent usage of certain variables, which does not align with the rules provided.
15. frontend/src/lib/components/apps/editor/settingsPanel/script/shared/ScriptTriggers.svelte:24
- Draft comment:
Migration to callcomputeOnSuccessEvents(app.val, id)
is correct. The state update withapp.val = app.val
is used to trigger reactivity; consider a more formal method to update state. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The code is using a common but not ideal pattern in Svelte to trigger reactivity by reassigning a value to itself. While there may be better ways to handle this, the comment doesn't provide specific alternatives. In Svelte, this is actually a somewhat standard pattern when you need to trigger reactivity after mutating nested objects. The alternative would be creating a new object copy, which could be worse for performance. The comment may be technically correct that there are more "formal" ways to handle state updates, but without suggesting a specific better alternative, it's not very actionable. Also, this pattern might actually be the most pragmatic solution in this case. While the pattern could potentially be improved, the current solution is a common and functional approach in Svelte. Without a clear better alternative, changing this could introduce unnecessary complexity. The comment should be removed as it doesn't provide specific, actionable feedback and the current pattern, while not perfect, is a common and reasonable approach in Svelte.
16. frontend/src/lib/components/apps/svelte-grid/Grid.svelte:80
- Draft comment:
The grid component now uses(app.val.mobileViewOnSmallerScreens == false ? WIDE_GRID_COLUMNS : undefined)
to compute columns. Confirm that$bindable
and state use are working as expected in combination with the new StateStore. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
The comment is asking the PR author to confirm that the$bindable
and state use are working as expected with the new StateStore. This falls under the category of asking the author to ensure the behavior is intended, which is against the rules. Therefore, this comment should not be approved.
17. frontend/src/lib/components/apps/svelte-grid/MoveResize.svelte:77
- Draft comment:
Usage offindGridItemParentGrid(app.val, id)
and updating scaling/metrics appears correct. Overall implementation is complex but the migration looks careful. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
18. frontend/src/lib/components/apps/types.ts:30
- Draft comment:
The types now import and useStateStore
for the App field. This is a clean update. Ensure that all references toapp
in the code now useapp.val
consistently as required. - Reason this comment was not posted:
Comment looked like it was already resolved.
19. frontend/src/lib/components/raw_apps/RawAppInlineScriptEditor.svelte:103
- Draft comment:
The commented-out assignment (// app.val = app.val
) suggests that the migration is partially complete. Clean up commented code if no longer needed. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% While cleaning up commented code is generally good practice, this comment doesn't indicate any functional issues. The commented code appears to be intentionally left as a reminder or placeholder. Without more context about the migration, we can't be certain if this cleanup is ready to happen. The comment is more of a suggestion than a critical issue. The comment could be identifying technical debt that should be addressed. Commented code can make maintenance more difficult over time. While technical debt is important, this comment doesn't meet our bar for "clearly a code change required" - it's more of an optional cleanup suggestion without clear evidence that it's safe to remove. The comment should be removed as it doesn't identify a clear, actionable issue that requires immediate attention. The cleanup can be handled in a separate cleanup/maintenance task.
20. frontend/src/lib/components/tutorials/app/AppTutorial.svelte:31
- Draft comment:
The migration changes such aspush(history, app.val)
andisAppTainted(app.val)
are consistent. The use ofapp.val
ensures that the newer state is used. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is purely informative, as it only states that the migration changes are consistent and that the use ofapp.val
ensures the newer state is used. It does not provide any actionable feedback or suggestions for improvement.
21. frontend/src/lib/components/tutorials/app/ConnectionTutorial.svelte:23
- Draft comment:
The migration is applied consistently by usingpush(history, app.val)
and updatingapp.val
. This appears correct. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is purely informative, as it is simply stating that the migration is applied consistently and appears correct. It does not provide any actionable feedback or suggestions for improvement.
22. frontend/src/lib/components/wizards/AgChartWizard.svelte:21
- Draft comment:
Good consistency in checkingif (component === undefined && $selectedComponent && app.val)
. The migration to useapp.val
here is well executed. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is purely informative, praising the consistency and execution of the migration. It doesn't provide any actionable feedback or suggestions for improvement.
23. frontend/src/routes/(root)/(logged)/apps/add/+page.svelte:40
- Draft comment:
The pages for adding an app now restore the state using the new promise-based pattern. The migration to useapp
remains indirect here, but ensure that the autosave logic properly decodes state consistent with the new store structure. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
The comment is asking the author to ensure that the autosave logic is consistent with the new store structure. This falls under asking the author to ensure behavior is intended, which is against the rules. The comment does not provide a specific suggestion or point out a specific issue.
24. frontend/src/routes/(root)/(logged)/apps/edit/[...path]/+page.svelte:21
- Draft comment:
The migration in the edit +page.svelte correctly uses state snapshots and sets savedApp and app. Overall, the changes look consistent, though the assignment ofapp = app_w_draft
and similar operations might benefit from more immutable update patterns. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
25. frontend/src/lib/components/apps/components/display/AppDisplayComponentByJobId.svelte:72
- Draft comment:
Typographical note: The property name 'jobiddisplaycomponent' might be intended to use camelCase (e.g., 'jobIdDisplayComponent') for consistency. Please confirm if this naming is correct. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
26. frontend/src/lib/components/apps/components/display/AppMarkdown.svelte:42
- Draft comment:
Typographical error: 'mardowncomponent' appears to be misspelled. Consider correcting it to 'markdowncomponent'. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
27. frontend/src/lib/components/apps/components/display/AppMarkdown.svelte:68
- Draft comment:
Typo alert: The property name 'mardowncomponent' may be misspelled. Consider renaming it to 'markdowncomponent' for clarity. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
28. frontend/src/lib/components/apps/components/display/AppRecomputeAll.svelte:71
- Draft comment:
Typo suggestion: The property name 'recomputeallcomponent' appears to be using all lowercase. Consider using proper camelCase (e.g., 'recomputeAllComponent') if that aligns with the naming conventions used elsewhere. - Reason this comment was not posted:
Comment was on unchanged code.
29. frontend/src/lib/components/apps/components/inputs/AppSelect.svelte:194
- Draft comment:
Typo detected: 'previsousFilter' should be corrected to 'previousFilter'. - Reason this comment was not posted:
Comment was on unchanged code.
30. frontend/src/lib/components/apps/components/layout/AppContainer.svelte:69
- Draft comment:
Typographical consistency: Check if the property 'containercomponent' is intentionally in all lowercase. It might have been intended to be 'containerComponent' for better readability and consistency with camelCase conventions. - Reason this comment was not posted:
Comment was on unchanged code.
31. frontend/src/lib/components/apps/editor/AppPreview.svelte:321
- Draft comment:
Typographical error: In the svelte-ignore comment, it appears that underscores are used instead of dashes. It should be 'a11y-click-events-have-key-events' rather than 'a11y_click_events_have_key_events'. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50% The comment suggests changing underscores to dashes, but this seems incorrect. The code consistently uses underscores in multiple places, suggesting this is the intended style. Looking at Svelte's documentation or style guide would help confirm, but since I don't have access to that, I should err on the side of assuming the code's consistent style is correct. The change appears intentional as part of modernizing the codebase. I could be wrong about Svelte's preferred style - maybe dashes are actually correct. However, without being able to verify Svelte's official guidance, I shouldn't assume the current code is wrong. Given the consistent use of underscores throughout the file and lack of clear evidence that dashes are required, we should not suggest changing the current style. The comment should be deleted as it suggests changing something that appears to be intentionally and consistently styled this way throughout the file.
32. frontend/src/lib/components/apps/editor/AppPreview.svelte:341
- Draft comment:
Typographical error: The svelte-ignore directive here uses underscores ('a11y_click_events_have_key_events') instead of dashes. It should be 'a11y-click-events-have-key-events'. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50% This appears to be part of a systematic change in the codebase to use underscores instead of dashes in svelte-ignore directives. The fact that multiple instances were changed in the same way suggests this was intentional. Without more context about Svelte's requirements, I can't be certain which style is correct. The change is consistent throughout the file. I don't have definitive evidence about which style (dashes or underscores) is correct for svelte-ignore directives. The systematic nature of the change suggests it might be intentional. Given the uncertainty and the systematic nature of the changes, we should err on the side of assuming the author knows what they're doing. Delete this comment since we don't have strong evidence that using underscores is incorrect, and the change appears to be an intentional, consistent update throughout the file.
33. frontend/src/lib/components/apps/editor/AppPreview.svelte:342
- Draft comment:
Typographical error: The svelte-ignore directive 'a11y_no_static_element_interactions' should use dashes (i.e. 'a11y-no-static-element-interactions'). - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50% Looking at the Svelte documentation and common usage patterns, both dash and underscore formats appear to be valid in Svelte 5. The code appears to be intentionally moving from dashes to underscores as part of a larger migration. The comment may be incorrect about requiring dashes, and even if it was correct, this would be a very minor stylistic issue that doesn't affect functionality. I could be wrong about Svelte 5's conventions. There might be an official style guide that prefers one format over the other. Even if there is a style preference, this appears to be an intentional change as part of a larger migration, and the format works correctly either way. This is too minor to warrant a comment. The comment should be deleted as it's suggesting a purely stylistic change to something that works correctly either way, and appears to be part of an intentional migration to using underscores.
34. frontend/src/lib/components/apps/editor/AppPreview.svelte:324
- Draft comment:
Typographical error: The event binding attribute is written as 'onpointerdown'. In Svelte, it should be 'on:pointerdown' (with a colon) for proper event binding. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50% Looking at the changes in the file, there seems to be a deliberate pattern of changing event handlers fromon:event
toonevent
. This includesonhashchange
,onresize
, andonclick
. The change toonpointerdown
follows this pattern. This suggests it's an intentional migration to a new event handling syntax, not a mistake. The comment may be misunderstanding the intended change. Could this be part of a new Svelte feature or syntax that I'm not aware of? The consistent pattern of changes suggests this is intentional rather than a typo. The file importsrun
from 'svelte/legacy' and uses new syntax like$state
and$derived
, suggesting this is part of a migration to a new Svelte syntax. The event handler changes appear to be part of this intentional migration. The comment should be deleted as it appears to be incorrectly flagging an intentional syntax change that's part of a larger migration to a new Svelte syntax.
35. frontend/src/lib/components/apps/editor/SubGridEditor.svelte:300
- Draft comment:
Typographical suggestion: The function callexpandGriditem
is used here. For consistency withfindGridItem
, consider renaming it toexpandGridItem
if that aligns with the intended naming convention. - Reason this comment was not posted:
Comment was on unchanged code.
36. frontend/src/lib/components/apps/editor/appUtilsInfer.ts:15
- Draft comment:
Typo alert: The variable name 'noutputs' on line 15 might be a typographical error. If it is intended to mean 'newOutputs', consider renaming it for clarity. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
37. frontend/src/lib/components/apps/editor/componentsPanel/QuickStyleMenu.svelte:128
- Draft comment:
Typo: The comment says "Getting style from subgrids", but for consistency it might be better to use "Getting styles from subgrids". - Reason this comment was not posted:
Comment was on unchanged code.
38. frontend/src/lib/components/apps/editor/componentsPanel/ThemeRow.svelte:201
- Draft comment:
There's a potential typo on the Button's size property 'xs2'. Please verify if 'xs2' is the intended value or if it should be 'xs' for consistency with other Button sizes. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
39. frontend/src/lib/components/apps/editor/contextPanel/DebugPanel.svelte:15
- Draft comment:
Typo: 'unintitializedComponents' appears to be misspelled. It should likely be 'uninitializedComponents'. - Reason this comment was not posted:
Comment was on unchanged code.
40. frontend/src/lib/components/apps/editor/contextPanel/LazyModePanel.svelte:67
- Draft comment:
Typographical error in the section label: the text "Component ids to wait the initialization of before the initial refresh" is awkward. Did you mean to include a preposition (e.g., "Component IDs to wait for initialization before the initial refresh")? Consider revising for clarity. - Reason this comment was not posted:
Comment was on unchanged code.
41. frontend/src/lib/components/apps/editor/contextPanel/LazyModePanel.svelte:70
- Draft comment:
Typographical suggestion: consider using "IDs" instead of "ids" and revising "background runnables ids" to "background runnable IDs" for consistency and clarity. - Reason this comment was not posted:
Comment was on unchanged code.
42. frontend/src/lib/components/apps/editor/settingsPanel/StylePanel.svelte:205
- Draft comment:
Typographical error: The attribute name "overridding" appears to be misspelled. It should likely be "overriding". - Reason this comment was not posted:
Comment was on unchanged code.
43. frontend/src/lib/components/apps/editor/settingsPanel/StylePanel.svelte:230
- Draft comment:
Typo: 'overriden' should be spelled 'overridden'. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
44. frontend/src/lib/components/wizards/AgChartWizard.svelte:25
- Draft comment:
There appears to be a typographical error in the string 'agchartscomponentee'. Please verify whether it's intended to be spelled that way or if it should be corrected (e.g., 'agchartsComponentEE' or another appropriate variant). - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_Z1mZl1pK1MJowuqf
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
@@ -108,7 +108,7 @@ | |||
if (componentSettings?.item?.data?.id) { |
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.
The repeated pattern of writing app.val = app.val
to trigger reactivity is a bit hacky. Consider adding or exposing a dedicated update method (e.g. app.update(...)
) in your StateStore API so that changes can be made more declaratively and immutably.
<div | ||
on:click={() => (isLocked = false)} | ||
onclick={() => (isLocked = false)} |
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.
Typographical error: The event binding on the <div>
is written as onclick
. It should be on:click
to conform to Svelte's syntax.
onclick={() => (isLocked = false)} | |
on:click={() => (isLocked = false)} |
Important
Migrate app state management from
Writable<App>
toStateStore<App>
across various components for improved state handling.Writable<App>
toStateStore<App>
for app state management inAppViewerContext
.$app
toapp.val
in components likeAppEditor.svelte
,AppEditorHeader.svelte
, andAppInputs.svelte
.Grid.svelte
,MoveResize.svelte
, andAppTutorial.svelte
to useStateStore
for state updates.addComponent
,deleteSubgrid
, andapplyConnection
to reflect new state management.AppEditor.svelte
to initializeappStore
asStateStore<App>
.AppEditorHeader.svelte
to useapp.val
for accessing app properties.AppInputs.svelte
to iterate overapp.val.grid
andapp.val.subgrids
.This description was created by
for 02db7c1. You can customize this summary. It will automatically update as commits are pushed.