Skip to content

app/vmui: feature: support persist stream group visibility#976

Open
withlin wants to merge 1 commit intoVictoriaMetrics:masterfrom
withlin:persist-stream-group-visibility
Open

app/vmui: feature: support persist stream group visibility#976
withlin wants to merge 1 commit intoVictoriaMetrics:masterfrom
withlin:persist-stream-group-visibility

Conversation

@withlin
Copy link
Contributor

@withlin withlin commented Dec 29, 2025

Describe Your Changes

persist-stream-group-visibility.mov

Fixes: #707

Checklist

The following checks are mandatory:

@valyala valyala requested a review from Loori-R January 14, 2026 09:29
@valyala valyala added the web-ui Issues related to the user interface: layout, styling, usability, or UI-specific bugs. label Jan 14, 2026

const [page, setPage] = useState(1);
const [expandGroups, setExpandGroups] = useState<boolean[]>([]);
const [expandGroups, setExpandGroups] = useState<Record<string, boolean>>({});
Copy link
Contributor

@Loori-R Loori-R Jan 14, 2026

Choose a reason for hiding this comment

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

Instead of Record<string, boolean>, we can store only “exceptions from default” in a Set<string>.

  const [expandGroups, setExpandGroups] = useState<Set<string>>(new Set());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

web-ui Issues related to the user interface: layout, styling, usability, or UI-specific bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vmui: persist stream groups visibility after query execution

3 participants