Skip to content
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

fix: Fixed an issue where the correct table was not focused when sharing URLs in TableDetail #275

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

MH4GF
Copy link
Member

@MH4GF MH4GF commented Dec 16, 2024

const visibleNodes: Node[] = nodes.filter((node) => !node.hidden)
const hiddenNodes: Node[] = nodes.filter((node) => node.hidden)
const handleLayout = useCallback(
async (fitViewOptions?: FitViewOptions) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

📝 It is only possible to pass fitViewOptions.

const tableName = urlParams.get(activeQueryParam)

return tableName || undefined
}
Copy link
Member Author

Choose a reason for hiding this comment

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

📝 The contents of useActiveTableNameFromUrl() have been brought in.

@MH4GF MH4GF changed the title fix initialize nodes fix: Fixed an issue where the correct table was not focused when sharing URLs in TableDetail Dec 16, 2024
@MH4GF MH4GF marked this pull request as ready for review December 16, 2024 12:14
@MH4GF MH4GF requested a review from a team as a code owner December 16, 2024 12:14
@MH4GF MH4GF requested review from hoshinotsuyoshi, FunamaYukina, junkisai and sasamuku and removed request for a team December 16, 2024 12:14
const tableNameFromUrl = getActiveTableNameFromUrl()
updateActiveTableName(tableNameFromUrl)
const fitViewOptions = tableNameFromUrl
? { maxZoom: 1, duration: 300, nodes: [{ id: tableNameFromUrl }] }
Copy link
Member

Choose a reason for hiding this comment

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

📝 same as useFitViewWhenActiveTableChange

Copy link
Member

@hoshinotsuyoshi hoshinotsuyoshi left a comment

Choose a reason for hiding this comment

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

LGTM!

@hoshinotsuyoshi hoshinotsuyoshi added this pull request to the merge queue Dec 17, 2024
Merged via the queue into main with commit c2780c0 Dec 17, 2024
12 checks passed
@hoshinotsuyoshi hoshinotsuyoshi deleted the fix-initialize-nodes branch December 17, 2024 05:24
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.

2 participants