Skip to content

Conversation

xiaodemen
Copy link
Contributor

@xiaodemen xiaodemen commented Sep 1, 2025

Closes INS-1277

image

@xiaodemen xiaodemen force-pushed the feat/access-file branch 2 times, most recently from bda8fac to 7cecfc6 Compare September 1, 2025 06:54
@xiaodemen xiaodemen requested a review from ihexxa September 1, 2025 07:11
@@ -136,11 +140,29 @@ export const RenderedQueryString: FC<Props> = ({ request }) => {
}
}, [tooLong]);

const showPreferneces = useCallback(() => {
Copy link
Contributor

@jackkav jackkav Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const showPreferneces = useCallback(() => {
const showPreferences = useCallback(() => {

it is preferable just to inline a state setter like this to the markup below, saves a bunch reading for the next guy for almost no perf benefit.

@xiaodemen xiaodemen force-pushed the feat/access-file branch 3 times, most recently from 3ff3705 to afd4a45 Compare September 2, 2025 10:19
ihexxa
ihexxa previously approved these changes Sep 3, 2025

return (
<div className="relative flex h-full w-full justify-between gap-[var(--padding-sm)] overflow-auto">
<span className={classNames('my-auto', className)}>{previewString}</span>
<span className={classNames('my-auto', className)}>
{messages.map(({ text, handler }, index) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: is it good to introduce a generic component which could be a string or Link? Then we don't need condition check in every places.

@xiaodemen xiaodemen merged commit c738f7f into develop Sep 5, 2025
14 checks passed
@xiaodemen xiaodemen deleted the feat/access-file branch September 5, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants