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

Update custom dashboard integration to new spec #4754

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

briangregoryholmes
Copy link
Contributor

@briangregoryholmes briangregoryholmes commented Apr 30, 2024

This PR tackles the most critical updates required to bring the Custom Dashboard up to date with the new spec.

@briangregoryholmes briangregoryholmes self-assigned this Apr 30, 2024
export let instanceId: string;

$: resourceQuery = useResource(
instanceId,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Whats the idea of getting the instance id in the params? We have the global to avoid prop drilling.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing hard and fast here. Just an instinct to get implementation details out of what are essentially display components. The runtime global is likely to change structure in the future. It also just means that only one component is subscribing to the store as opposed to however many dashboard elements there are. Not critical, though.

Copy link
Collaborator

@AdityaHegde AdityaHegde left a comment

Choose a reason for hiding this comment

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

Just a small comment. Looks good otherwise

@briangregoryholmes briangregoryholmes merged commit b6ef837 into main Apr 30, 2024
4 checks passed
@briangregoryholmes briangregoryholmes deleted the bgh/initial-cd-spec-update branch April 30, 2024 14:08
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