Skip to content

Commit

Permalink
hide anonymized submissions in graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Nov 26, 2023
1 parent 85c5764 commit 2c3bb5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions report-viewer/src/components/ClusterGraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ Chart.register(GraphChart)
const keys = computed(() => Array.from(props.cluster.members.keys()))
const labels = computed(() =>
Array.from(keys.value).map((m) => store().submissionDisplayName(m) ?? m)
Array.from(keys.value).map((m) =>
store().state.anonymous.has(m) ? 'Hidden' : store().submissionDisplayName(m) ?? m
)
)
const edges = computed(() => {
const edges: { source: number; target: number }[] = []
Expand Down Expand Up @@ -87,7 +89,7 @@ const graphData = computed(() => {
const yPadding = 40
const xPadding = computed(() => {
const avgCharacterLength = 8
const avgCharacterLength = 9
const widths = labels.value.map((label) => label.length * avgCharacterLength)
const maxWidth = Math.max(...widths)
Expand Down

0 comments on commit 2c3bb5b

Please sign in to comment.