Commit Graph

529 Commits (270089983abfaf6c7f98c16512c74c7f6093abb1)
 

Author SHA1 Message Date
Alejandro Sirgo Rica 270089983a js: fix sidebar client selection
Fix the JQuery selector to properly filter checboxes in the sidebar
2024-10-11 13:19:57 +02:00
Alejandro Sirgo Rica 66b663e051 views: update Boot OS to consume the new GET /session
Add code to handle the consumption of the new GET /session payload
from ogServer and ignore partitions with 'unknown' content.
2024-10-11 12:07:20 +02:00
Alejandro Sirgo Rica bcffdff135 views.py: prevent backtrace with unregistered client
Add check to skip unregistered clients in get_server_data_from_scopes
to prevent KeyError exception.
2024-10-10 11:48:29 +02:00
Alejandro Sirgo Rica 75cd6d9883 tempates: fix System log layout to prevent overflow
Restrict the <pre> component where the logs are contained to
prevent text overflow from happening.
2024-10-08 09:47:35 +02:00
Alejandro Sirgo Rica 6af4330016 ogcp: add view to identify clients setup diferences before restore
Add view to provide information before a restore operation where
the selected clients have a not uniform partition setup.

Show the view if only clients with not partition valid for a
restore operation are selected.
2024-10-02 10:14:04 +02:00
Alejandro Sirgo Rica d6a896628f views: rename reference partitions variable in /image/restore
Rename part_choices variable to reference_patitioning to improve
readability and intent in the code that checks the uniformity of
the client's partitions.
2024-09-26 14:49:18 +02:00
Alejandro Sirgo Rica 6feffeab5d views: ignore unsuported part types in /image/restore checks
Evaluate only the viable partitions for a restore operation
during checks for partition uniformity.
2024-09-26 14:45:04 +02:00
Alejandro Sirgo Rica 6fecb9d34b views: report clients without cache in fetch and restore
Report clients without cache partition inthe decks of the target
clients with enough cache to fit the target image.
2024-09-26 13:21:13 +02:00
Alejandro Sirgo Rica 39371747db ogcp: improve cache report wording
Use "Cache size" instead of "Disk size" in cache inspector.
Inform that the missing space when the image does not fit in cache
is additional space on top of the available space.
2024-09-26 13:21:13 +02:00
Alejandro Sirgo Rica c1d9018e21 templates: show real sizes in cache inspector
Use real free and available cache in cache_inspector.html
2024-09-26 13:21:02 +02:00
Alejandro Sirgo Rica 77a60b717a views: check if image fits in cache before /cache/fetch
Check if the image fits in cache before a /cache/fetch request.
Report the clients unable to store the image.
2024-09-26 10:21:19 +02:00
Alejandro Sirgo Rica 340b7fde54 views: improve checks for space available in cache
Use the new "free_cache" field in GET /cache/list to check
against the real available space to check if an image fits in
cache.
2024-09-26 10:19:37 +02:00
Alejandro Sirgo Rica ec209480ea templates: add free partition size in client details
Add column with available space in partitions only in the client
details views.
2024-09-25 17:01:48 +02:00
Alejandro Sirgo Rica 9bf161fc7a templates: reduce size of client list title
Reduce the size of the tittle message containing "Selected clients"
in the bock showing the client pills.
2024-09-17 13:18:57 +02:00
Alejandro Sirgo Rica 19295f8158 templates: disable sidebar in images and repos
Disable sidebar interaction in Images and Repos views.
2024-09-16 17:32:41 +02:00
Alejandro Sirgo Rica f03077edb7 js: add ogStorage to prevent localStorage key collission
Define ogStorage class to manage the localStorage operations.
The new keys are constructed with the following structure:
"group-context-id"
Where group is either "show" for the collapsed items in the
sidebar, or "check" for the selected checkboxes of the sidebar.

Add sotrage versioning to delete obsolete localStorage when a
new design for the storage is included in ogCP.
2024-09-16 17:29:14 +02:00
Alejandro Sirgo Rica 7296372e9c js: remove outdated local storage data
Remove the invalid keys from local storage when the page loads.
Creating and deleting elements from the sidebar accumulates
dead entries in the local storage.
2024-09-16 17:11:30 +02:00
Alejandro Sirgo Rica 053519beae templates: save checkbox state in images and repos
Store the checked checkboxes of the sidebar in Images and Repos.
Autoselect the correct server after updating the checkboxes.
2024-09-16 13:57:31 +02:00
Alejandro Sirgo Rica 2ca2215ed6 js: restrict the checkbox filter to the sidebar
Prevent accidental processing of checkboxes outside the sidebar.
2024-09-16 13:46:28 +02:00
Alejandro Sirgo Rica db2869088f js: remove unused function unfoldAll
Remove dead code.
2024-09-16 13:09:44 +02:00
Alejandro Sirgo Rica 233156b19a js: consolidate sidebar collapse persistence logic
Consolidate all the sidebar collapse persistence logic.
Implement a single function to handle all the views.
2024-09-16 12:34:32 +02:00
Alejandro Sirgo Rica f85c61df99 templates: fix initial repos disclosure widget status
Show the proper state of the disclosure widget when a repo starts
as collapsed.
2024-09-16 12:18:29 +02:00
Alejandro Sirgo Rica 65d2d75ddb templates: improve client report in image create view
Remove the line reporting the IP of the selected client. No other
view does that and that information is already available in the
client pills.
Add client pills widget.
2024-09-16 12:05:04 +02:00
Alejandro Sirgo Rica 696a81fd11 templates: add name and status to client list
Add a client name column to the client list view accessed through
the Dashboard.

Add status column to the client list.

Move client status leyend into a separate file.

Show the client status leyend in client list.

Fix the 0 link speed conditional.

Reuse the data returned by get_scopes() to reduce the number of
requests.
2024-09-11 12:24:44 +02:00
Alejandro Sirgo Rica 6b33268b5c ogcp: add view to assign repo to clients
Add /action/repo/set in Commands to assign a repository to
multiple clients.

The view includes the actual repo assigned in the client pills
and shows a table with the clients grouped by repo when multiple
repos are assigned among the selected clients.
2024-09-10 15:11:11 +02:00
Alejandro Sirgo Rica a1b164b106 templates: add efi data to /client/info
Show EFI info obtained through GET /efi.
2024-09-10 15:11:11 +02:00
Alejandro Sirgo Rica fd4da7d3ed views: set repo address limit to 128
Allow up to 128 IP addresses for repositories.
2024-09-10 12:20:29 +02:00
Alejandro Sirgo Rica 6e1d266daf views: sort repositories by name
Show repositories sorted in an alphanumeric fashion inside the
sidebar of /images and the respective child views.

Sort repositories in the sidebar of /repos.
2024-09-04 15:36:09 +02:00
Alejandro Sirgo Rica 23b49f0a6a templates: add image name to title in image/config
Add image name to the title in the view image/config.
2024-09-04 10:50:52 +02:00
Alejandro Sirgo Rica 3f06fe23aa templates: remove sidebar from client/list
Remove sidebar from the client/list view.
2024-09-03 16:26:42 +02:00
Alejandro Sirgo Rica 7613cd8017 ogcp: add server ip configuration
Enable server view in the main toolbar.

Hide Add server and Delete server buttons.

Add Update server button.

Add server/update view to edit the server addresses.
2024-09-03 16:26:22 +02:00
Alejandro Sirgo Rica c1ac88e47c templates: fix ip card list spacing
Remove unwanted witespace caused by tabs and spaces.
Add margin to the ip card style to define an explicit spacing.
2024-09-03 09:52:26 +02:00
Alejandro Sirgo Rica 15f5af00e7 templates: show excluded clients from partition operation
Show the list of IPs of the clients withut the selected disk to
partition in the partition and format form.
2024-09-03 09:42:23 +02:00
Alejandro Sirgo Rica b433d84095 views: restrict image restore update and create to disk 1
Keep restore update and create image operations restricted to the
first disk as enabling it for multiple disk is untested and
requires more work.
2024-09-02 15:05:59 +02:00
Alejandro Sirgo Rica d00e437b8d ogcp: add support for multi-disk partition and format
Add support for selecting different disks in the disk inspector.

Add disk_inspector.html as a template to show the disk contents of
a client. The view can define the variable readonly_disk_inspector
to make the view non editable.

Use disk_inspector.html in the following views:
- client details
- partition and format

Update code to obtain the partitions of a client to better fit the
requirements of disk_inspector.html

Remove code to setup the SetupForm as the contents of the disks
are now dynamically loaded through javascript.
2024-09-02 15:05:45 +02:00
Alejandro Sirgo Rica 78a26f947f templates: use Fetch image as text for the Cache image button
Use "Fetch image" as text for the button to access the view
where the user selects images to add to cache.
2024-09-02 15:05:31 +02:00
Alejandro Sirgo Rica 31766a3d07 ogcp: add support for multi-ip repositories
Add support for the new API REST for repository management where
the address is a list of ips instead of a single string.

Add dynamic address creation in /action/repo/update and
/action/repo/add forms through delete and add buttons in the form.

Update /image/restore and /cache/fetch to use repository_id.

Add additional repository form validations.
2024-08-30 13:34:55 +02:00
Alejandro Sirgo Rica bcd18241c7 ogcp: add disk restrictions in partition and format
Use common disk space across all the selected clients.

Show dynamic disk partition graph in the partition view.

Limit partition sizes dynamically in the form.

Move js code to handle the addition and removal of
partitions into the html file to debloat ogcp.js and keep
the functions local to the only file they manipulate.
2024-08-22 10:04:55 +02:00
Alejandro Sirgo Rica aab70b0222 views: remove accents in image name
Remove accents in image name string. Special characters are not
supported for image names.
2024-08-21 11:25:44 +02:00
Alejandro Sirgo Rica 37efed8d30 template: prevent backtrace in /client/list
Don't access client.speed if the field is not present.
2024-08-09 10:01:52 +02:00
Alejandro Sirgo Rica 4b105b96b5 templates: adjust capitalization in commands button
Use "Restore image" instead of "Restore Image" for consistency.
2024-08-09 10:01:52 +02:00
Alejandro Sirgo Rica 844bc1e7c6 ogcp: Add /action/cache/fetch endpoint
Add view to request the download of images into the client's cache.
2024-08-09 10:01:23 +02:00
Alejandro Sirgo Rica ace0c5bb46 views: enable multi-image deletion
Allow the deletion of multiple images in image/delete.
2024-08-06 12:40:33 +02:00
Alejandro Sirgo Rica 4c1a86249b views: fix image create backtrace
Fix backtrace caused by efd0b8ac
Don't access the field scopes in ImageCreateForm as it does not
exist.
2024-08-06 10:35:17 +02:00
Alejandro Sirgo Rica 8e16c31952 views: sort images based on alphabetical name order
Show images in alphabetical order in every views listing images.
The only exception is the dashboard as it shows them from newer
to older.
2024-08-06 09:24:44 +02:00
Alejandro Sirgo Rica 35cfb59f4c css: add iOS fonts to disclosure widget
Add Helvetica fonts to the fonts used to render the disclosure
widget in the sidebar.
2024-08-05 11:32:23 +02:00
Alejandro Sirgo Rica d1e9469326 js: enable center selection in Commands
Enable center checkboxes and implement selection of clients from
multiple rooms in the same center.
2024-08-05 10:43:28 +02:00
Alejandro Sirgo Rica 3e35997131 ogcp: add connected clients list view
Add view to show the connected clients with access to the client
details of each one. The view is accessible through the main
dashboard.
2024-08-05 10:03:12 +02:00
Alejandro Sirgo Rica 695b83d473 templates: link to images view from the dashboard
Add link to image count in dashboard to open images view.
2024-07-30 12:23:20 +02:00
Alejandro Sirgo Rica 87b8e34dab views: add missing checks for offline ogServer
check when the API REST responses are null and report that
ogServer might be offline.
2024-07-25 09:48:12 +02:00