Conversation
This was referenced Jan 12, 2026
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
This was referenced Jan 12, 2026
Collaborator
Author
This was referenced Jan 12, 2026
0fb7fc7 to
62b0359
Compare
1cdc812 to
b206a69
Compare
62b0359 to
40379a1
Compare
b206a69 to
9f56c90
Compare
40379a1 to
ac5f761
Compare
9f56c90 to
a7867cb
Compare
0cb1b4d to
08241e3
Compare
a7867cb to
464eb1a
Compare
08241e3 to
a671592
Compare
464eb1a to
3cb0f2b
Compare
Closed
Contributor
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@apps/roam/src/components/settings/components/BlockPropSettingPanels.tsx`:
- Around line 171-174: The handler for NumericInput (handleChange) must guard
against valueAsNumber being NaN to avoid storing NaN in settings: update
handleChange to check Number.isNaN(valueAsNumber) and in that case
setValue(undefined) (or another explicit empty sentinel) and call
setter(settingKeys, undefined) (or skip calling setter), otherwise call
setValue(valueAsNumber) and setter(settingKeys, valueAsNumber); reference the
handleChange function, NumericInput, setValue, setter and settingKeys when
making the change.
- Around line 131-147: The event handler handleChange uses
React.ChangeEvent<HTMLInputElement> but BlueprintJS Checkbox passes a
React.FormEvent<HTMLInputElement>; change the signature of handleChange to (e:
React.FormEvent<HTMLInputElement>) and read the value via
e.currentTarget.checked (or cast e.target to HTMLInputElement), update any
related references (handleChange usage and declaration) so setter(settingKeys,
checked) and onChange?.(checked) receive the correct boolean; keep the async
onBeforeChange flow intact and ensure imports/types reference React.FormEvent
where needed.
🧹 Nitpick comments (1)
apps/roam/src/components/settings/components/BlockPropSettingPanels.tsx (1)
200-202: Consider guarding against empty options array.If
optionsis an empty array anddefaultValueis not provided,options[0]evaluates toundefined, which could cause unexpected behavior inHTMLSelect.💡 Suggested defensive check
const [value, setValue] = useState( - () => getter(settingKeys) ?? defaultValue ?? options[0], + () => getter(settingKeys) ?? defaultValue ?? options[0] ?? "", );
apps/roam/src/components/settings/components/BlockPropSettingPanels.tsx
Outdated
Show resolved
Hide resolved
90303ff to
050f93b
Compare
d29fb40 to
0dab0a5
Compare
mdroidian
approved these changes
Feb 2, 2026
Contributor
mdroidian
left a comment
There was a problem hiding this comment.
A few changes to make sure you do before merging.
Also, make sure to format with prettier before merging.
apps/roam/src/components/settings/components/BlockPropSettingPanels.tsx
Outdated
Show resolved
Hide resolved
apps/roam/src/components/settings/components/BlockPropSettingPanels.tsx
Outdated
Show resolved
Hide resolved
apps/roam/src/components/settings/components/BlockPropSettingPanels.tsx
Outdated
Show resolved
Hide resolved
apps/roam/src/components/settings/components/BlockPropSettingPanels.tsx
Outdated
Show resolved
Hide resolved
941c0af to
34e7587
Compare
050f93b to
9095d0b
Compare
34e7587 to
74fabe6
Compare
9095d0b to
304f5f9
Compare
74fabe6 to
67f9604
Compare
304f5f9 to
a4c9d2c
Compare
trangdoan982
pushed a commit
that referenced
this pull request
Feb 10, 2026
#689) * review * address review
This was referenced Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

https://www.loom.com/share/8ff86c595970423bbf1ec161baf5efa4
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.