-
Notifications
You must be signed in to change notification settings - Fork 20
Add kiosk mode #1970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aleksfl
wants to merge
12
commits into
main
Choose a base branch
from
add-kiosk-mode
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add kiosk mode #1970
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
da22ae8
Add kiosk mode
aleksfl 81a8e68
Add kiosk mode tests
aleksfl e81ac2b
Add kiosk mode documentation
aleksfl 226cb7c
Simplify current_url
aleksfl 606542a
Update src/argus/htmx/incident/views.py
aleksfl 7ce1b56
Solidify kiosk_mode logic
aleksfl d5a9249
Apply suggestions from code review
aleksfl a33a196
Undo changes in input_search.html
aleksfl 22ae4d0
Limit scope of link keyword
aleksfl 48cb6c4
Rework kiosk layout to free up more space
aleksfl caaa79d
Apply suggestions from code review
aleksfl 1b2d585
Strengthen and clarify tests
aleksfl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Added a kiosk mode to the main view, providing a minimal version of the incident list suitable for passive Argus usage. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/argus/htmx/templates/htmx/incident/_incident_table_autorefresh.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 13 additions & 11 deletions
24
src/argus/htmx/templates/htmx/incident/_incident_table_footer.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 12 additions & 10 deletions
22
src/argus/htmx/templates/htmx/incident/_incident_toolbar.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,15 @@ | ||
| <section class="flex flex-col gap-2"> | ||
| <div id="filter-controls-box" | ||
| class="border-2 border-primary rounded-box p-2 flex flex-wrap gap-0.5 items-center"> | ||
| {% include "htmx/incident/_filter_controls.html" %} | ||
| <div id="filterbox" class="flex flex-wrap items-center basis-full"> | ||
| {% include "htmx/incident/_incident_filterbox.html" %} | ||
| {% if not kiosk_mode %} | ||
| <div id="filter-controls-box" | ||
| class="border-2 border-primary rounded-box p-2 flex flex-wrap gap-0.5 items-center"> | ||
| {% include "htmx/incident/_filter_controls.html" %} | ||
| <div id="filterbox" class="flex flex-wrap items-center basis-full"> | ||
| {% include "htmx/incident/_incident_filterbox.html" %} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div id="bulk-actions" | ||
| class="hidden flex gap-2 w-fit border-2 border-primary/50 bg-primary/10 rounded-box p-1"> | ||
| {% include "htmx/incident/_incident_list_update_menu.html" %} | ||
| </div> | ||
| <div id="bulk-actions" | ||
| class="hidden flex gap-2 w-fit border-2 border-primary/50 bg-primary/10 rounded-box p-1"> | ||
| {% include "htmx/incident/_incident_list_update_menu.html" %} | ||
| </div> | ||
| {% endif %} | ||
| </section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/argus/htmx/templates/htmx/incident/cells/_incident_sort_button.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/argus/htmx/templates/htmx/incident/responses/_incident_list_refresh.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,6 @@ | ||
| {% block table %} | ||
| {% endblock table %} | ||
| {% if kiosk_mode %} | ||
| <span hx-swap-oob="innerHTML:#kiosk-filtered-count">{{ refresh_info.filtered_count }}</span> | ||
| <span hx-swap-oob="innerHTML:#kiosk-last-refreshed">{{ refresh_info.last_refreshed|date:preferences.argus_htmx.datetime_format|default:"?" }}</span> | ||
| {% endif %} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.