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

Hide node name toggle #431

Open
olafhartong opened this issue Feb 22, 2024 · 0 comments
Open

Hide node name toggle #431

olafhartong opened this issue Feb 22, 2024 · 0 comments
Labels
enhancement New feature or request ticketed (automation only) Ticket has been created internally for tracking

Comments

@olafhartong
Copy link

olafhartong commented Feb 22, 2024

Feature Description:

Please add a node name toggle, which makes it much easier to create screenshots for reports without sensitive data in it.

Current Behavior:

Currently all node names are visible, with no way to hide them

Desired Behavior:

A toggle to switch them on or off

Use Case:

Primarily safe to share screenshots in reports and presentations

Implementation Suggestions:

I'm not good at React, but the result should be something similar to what I changed in cmd/ui/src/Explore/utils.ts

export const initGraphNodes = (graph: MultiDirectedGraph, nodes: GraphNodes, nodeSize: number) => {
    Object.keys(nodes).forEach((key: string) => {
        const node = nodes[key];
        // Set default node parameters
        const nodeParams: Partial<NodeParams> = {
            color: '#FFFFFF',
            type: 'combined',
            // label: node.label,
            label: '',
            forceLabel: false,
        };

Additional Information:
example of the result
image

@olafhartong olafhartong added enhancement New feature or request triage This issue requires triaging labels Feb 22, 2024
@StephenHinck StephenHinck removed the triage This issue requires triaging label Feb 22, 2024
@slokie-so slokie-so added the ticketed (automation only) Ticket has been created internally for tracking label Mar 26, 2024
@Palt Palt mentioned this issue Aug 27, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ticketed (automation only) Ticket has been created internally for tracking
Projects
None yet
Development

No branches or pull requests

3 participants