Plugin Views

This module contains views to implement the React.

Plugin list view in the Smarter Dashboard.

class smarter.apps.plugin.views.listview.view.PluginListView(**kwargs)[source]

Bases: SmarterAuthenticatedNeverCachedWebView

Render the plugin list view for the Smarter Workbench web console.

This view displays all plugins available to the authenticated user as cards, providing a quick overview and access to plugin details.

Parameters:
  • request (ASGIRequest) – Django HTTP request object.

  • args (tuple) – Additional positional arguments.

  • kwargs (dict) – Additional keyword arguments.

Returns:

Rendered HTML page with a card for each plugin, or a 404 error page if the user is not authenticated.

Return type:

HttpResponse

property formatted_class_name: str

Returns a formatted string of the class name for logging purposes.

get(request, *args, **kwargs)[source]

Handle GET requests and return a cleaned HttpResponse.

Parameters:

request (ASGIRequest) – The HTTP request object.

Returns:

An HttpResponse with the cleaned HTML content.

Return type:

HttpResponse

plugins: list[PluginMeta]
template_path: str = 'react/plugin-list.html'