Dashboard
Overview
The dashboard (/admin) is the main page of the admin interface. It displays:
- Global usage statistics
- Charts showing distribution and trends
- A quiz panel with performance by category
- Quick links to other sections
KPIs (key performance indicators)
At the top of the dashboard, cards display:
| KPI | Description |
|---|---|
| Total unlocks | Total number of times a language has been unlocked by players |
| Unlocks per language | Individual counter for each active language |
Period selector
All statistics can be filtered by period. The selector offers:
| Option | Period covered |
|---|---|
| Last 7 days | D-7 to today |
| Last 30 days | D-30 to today |
| Last 90 days | D-90 to today |
| Custom range | Choose a start date and end date (ISO format YYYY-MM-DD) |
Changing the period: charts reload automatically.
Comparison mode
Comparison mode allows you to analyse changes between two periods.
Enabling comparison mode: 1. Click "Comparer" or enable the comparison toggle 2. A second period selector appears 3. Choose the reference period (e.g. previous month)
The charts then display: - The main period (primary colour) - The comparison period (secondary colour) - The delta: difference in absolute value and percentage
LanguageChart — Distribution by language
A pie chart (or bar chart) displays the distribution of unlocks across languages.
- Each language uses the primary colour defined at creation
- The percentage for each language is shown
- Clicking a slice may filter the other charts (depending on configuration)
TopCardsChart — Top 10 cards
A horizontal bar chart displays the 10 most viewed cards.
Available filters:
- By language: dropdown to select a specific language
- By type: words (word), phrases (phrase), or quiz (quiz)
Each bar displays the card number and the number of views.
QuizStatsPanel — Review statistics
A dedicated panel displays statistics for the multiple-choice quiz module:
| Metric | Description |
|---|---|
| Sessions started | Number of quizzes launched in the period |
| Sessions completed | Number of quizzes completed to the end |
| Completion rate | % of started quizzes that were completed |
| Average score | Mean score (in %) across all completed sessions |
"Réinitialiser les statistiques" button
⚠️ Irreversible action
The "Réinitialiser les statistiques" button opens a DeleteStatisticsModal dialog with:
- A language selector (or "all languages")
- An optional date range
- A text confirmation field to prevent accidental actions
- A red confirmation button
What is deleted: records from the statistics table matching the filters. Card and item data are not affected.
When to use it: - To purge test data - In case of erroneous data over a specific period - Never in production without prior discussion with the team
Quick navigation
From the dashboard:
- Manage languages → /admin/languages
- New language → /admin/languages/new
- Contact messages → /admin/contact
- Logout → deletes the session cookie