Skip to content

Commit 1ec95be

Browse files
Fix encoding for reading robot_dashboard.html in the dashboard page
1 parent c8a9b47 commit 1ec95be

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/filtering.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Global filters are applied to the entire dashboard, affecting all sections and g
4040
- **All** (ticked by default) means no tag filter is applied — all runs are shown.
4141
- **AND mode** (default): a run must have **all** selected tags to be included.
4242
- **OR mode** (toggle *Use OR*): a run needs at least **one** of the selected tags.
43-
- A dot (●) next to the label indicates the filter is active (i.e. *All* is not selected).
43+
- A dot next to the label indicates the filter is active (i.e. *All* is not selected).
4444
- Use the search box inside the dropdown to quickly find a tag by name.
4545

4646
#### 3. Versions
@@ -49,7 +49,7 @@ Global filters are applied to the entire dashboard, affecting all sections and g
4949
- Click **Select Versions** to open the version list; tick one or more versions to narrow down the data.
5050
- **All** (ticked by default) means no version filter is applied.
5151
- **None** covers runs that have no version label set.
52-
- A dot (●) next to the label indicates the filter is active.
52+
- A dot next to the label indicates the filter is active.
5353
- Use the search box inside the dropdown to quickly find a version by name.
5454

5555
#### 4. From Date / From Time
@@ -101,7 +101,7 @@ Filter Profiles let you save, name, and reapply a combination of filter settings
101101
- Click the **Apply Filter Profile** selector to expand the saved profiles list.
102102
- Click a profile name to apply all its stored filter values at once.
103103
- The selector displays the active profile name when the current filter state **exactly matches** a saved profile.
104-
- A dot (●) next to the selector means a profile was applied but filters have since been changed away from it.
104+
- A dot next to the selector means a profile was applied but filters have since been changed away from it.
105105

106106
#### Updating a Profile
107107

robotframework_dashboard/js/variables/information.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ It helps identify tests with inconsistent execution times, which might be flaky
138138
- Save Profile: saves the profile with the selected filter values under the given name.
139139
- Apply Filter Profile: opens the saved profiles list. Click a profile name to apply all its stored filter values at once.
140140
- The select box shows the active profile name when an exact match is found, i.e. the current filter state matches a saved profile exactly.
141-
- A dot (●) next to the select box means a profile was applied but filters have since been changed away from it.
141+
- A dot next to the select box means a profile was applied but filters have since been changed away from it.
142142
- Update Profile: appears when the active profile's filters have been modified; click it to overwrite the saved profile with the current filter values.
143143
- Delete: removes that profile permanently (confirmed via a prompt).`,
144144
"filterRunsInformation": `Filters the dashboard to only show data for runs of the selected project (run name).
@@ -149,13 +149,13 @@ It helps identify tests with inconsistent execution times, which might be flaky
149149
- 'All' (ticked by default) means no tag filter is applied — all runs are shown.
150150
- Use AND mode (default): a run must have ALL selected tags to be included.
151151
- Use OR mode (toggle 'Use OR'): a run needs at least ONE of the selected tags.
152-
- A dot (●) next to the label means the filter is active (i.e. 'All' is not selected).
152+
- A dot next to the label means the filter is active (i.e. 'All' is not selected).
153153
- Use the search box inside the dropdown to quickly find a tag by name.`,
154154
"filterVersionsInformation": `Filters runs by their project version label.
155155
- Click 'Select Versions' to open the version list; tick one or more versions to narrowdown the data.
156156
- 'All' (ticked by default) means no version filter is applied.
157157
- 'None' covers runs that have no version label set.
158-
- A dot (●) next to the label means the filter is active.
158+
- A dot next to the label means the filter is active.
159159
- Use the search box inside the dropdown to quickly find a version by name.`,
160160
"filterFromDateInformation": `Sets the earliest date a run must have started on to be included.
161161
- Runs that started before this date are excluded.

robotframework_dashboard/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ async def admin_page(username: str = Depends(authenticate)):
362362
)
363363
async def dashboard_page():
364364
"""Serve robotdashboard HTML endpoint function"""
365-
robot_dashboard_html = open("robot_dashboard.html", "r").read()
365+
robot_dashboard_html = open("robot_dashboard.html", "r", encoding="utf-8").read()
366366
return robot_dashboard_html
367367

368368
@self.app.post("/refresh-dashboard")

0 commit comments

Comments
 (0)