Skip to content

Commit d14f49f

Browse files
committed
feat(app/metrics): warn about missing extras features permissions (closes #1177)
1 parent d2ac7b6 commit d14f49f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

source/app/web/statics/insights/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ <h2>
8585

8686
<template v-if="metrics">
8787

88+
<section class="container">
89+
<div class="warning" v-if="warnings.length">
90+
<div v-for="warning in warnings">⚠️ {{ warning.message }}</div>
91+
</div>
92+
</section>
93+
8894
<section class="container">
8995
<a :href="`https://github.com/${user}`" class="user">
9096
<img :src="account.avatar">

source/app/web/statics/insights/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@
169169
params() {
170170
return new URLSearchParams({from: location.href})
171171
},
172+
warnings() {
173+
return Object.entries(this.metrics?.rendered.plugins ?? {}).map(([_, value]) => value?.error).filter(value => value)
174+
},
172175
stats() {
173176
return this.metrics?.rendered.user ?? null
174177
},

0 commit comments

Comments
 (0)