Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,19 @@ and this project adheres to

### Added

- New `usage_caps_input` view-extension slot on the project settings page
(`/projects/:project_id/settings`). Same pattern as the existing
`concurrency_input` slot: downstream apps register a component via
`metadata: %{usage_caps_input: SomeComponent}` on the settings route and
Lightning renders it in the settings view. No-op for OSS Lightning by default.
[#4725](https://github.com/OpenFn/lightning/issues/4725)

### Changed

### Fixed

## [2.16.3] - 2026-05-07

## [2.16.3-pre3] - 2026-05-07

### Fixed
Expand Down
7 changes: 5 additions & 2 deletions lib/lightning_web/live/project_live/settings.ex
Original file line number Diff line number Diff line change
Expand Up @@ -165,21 +165,24 @@ defmodule LightningWeb.ProjectLive.Settings do
project_users = Projects.get_project_users!(socket.assigns.project.id)
auth_methods = WebhookAuthMethods.list_for_project(socket.assigns.project)

concurrency_input_component =
route_metadata =
socket.router
|> Phoenix.Router.route_info(
"GET",
~p"/projects/:project_id/settings",
nil
)
|> Map.get(:concurrency_input)

concurrency_input_component = Map.get(route_metadata, :concurrency_input)
usage_caps_input_component = Map.get(route_metadata, :usage_caps_input)

socket
|> assign(
page_title: "Project settings",
project_users: project_users,
webhook_auth_methods: auth_methods,
concurrency_input_component: concurrency_input_component,
usage_caps_input_component: usage_caps_input_component,
show_collaborators_modal: false,
show_invite_collaborators_modal: false,
active_modal: nil,
Expand Down
8 changes: 8 additions & 0 deletions lib/lightning_web/live/project_live/settings.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,14 @@
</.form>
</div>

<.live_component
:if={assigns[:usage_caps_input_component]}
module={assigns[:usage_caps_input_component]}
id="usage-caps-input-component"
project={@project}
current_user={@current_user}
/>

<div class="bg-white p-4 rounded-md space-y-4">
<div>
<h6 class="font-medium text-black">Export your Project</h6>
Expand Down
Loading