Preserve sidebar state on repository pages

1ff90a52a195 · AtlantisPleb · · parent 10b1badc9e47

Preserve sidebar state on repository pages

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

Not deployed through the forge lane

No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.

Changed files

  • modified lib/openagents_web/live/device_authorization_live.ex
  • modified lib/openagents_web/live/repository_import_live.ex
  • modified lib/openagents_web/live/repository_index_live.ex
  • modified lib/openagents_web/live/repository_new_live.ex

Diff

4 files changed, +25 -4

lib/openagents_web/live/device_authorization_live.ex modified +6 -1

@@ -39,7 +39,12 @@ defmodule OpenAgentsWeb.DeviceAuthorizationLive do

39 39
  @impl true
40 40
  def render(assigns) do
41 41
    ~H"""
42
    <Layouts.app flash={@flash} current_scope={@current_scope} title="Authorize CLI">
42
    <Layouts.app
43
      flash={@flash}
44
      current_scope={@current_scope}
45
      title="Authorize CLI"
46
      sidebar_sections={assigns[:sidebar_sections]}
47
    >
43 48
      <main id="device-authorization" class="mx-auto w-full max-w-xl space-y-8 px-4 py-12">
44 49
        <.header>
45 50
          Authorize OpenAgents CLI
lib/openagents_web/live/repository_import_live.ex modified +6 -1

@@ -60,7 +60,12 @@ defmodule OpenAgentsWeb.RepositoryImportLive do

60 60
  @impl true
61 61
  def render(assigns) do
62 62
    ~H"""
63
    <Layouts.app flash={@flash} current_scope={@current_scope} title="Import from GitHub">
63
    <Layouts.app
64
      flash={@flash}
65
      current_scope={@current_scope}
66
      title="Import from GitHub"
67
      sidebar_sections={assigns[:sidebar_sections]}
68
    >
64 69
      <main id="repository-import" class="mx-auto w-full max-w-3xl space-y-8 px-4 py-10">
65 70
        <.header>
66 71
          Import from GitHub
lib/openagents_web/live/repository_index_live.ex modified +7 -1

@@ -46,7 +46,13 @@ defmodule OpenAgentsWeb.RepositoryIndexLive do

46 46
  @impl true
47 47
  def render(assigns) do
48 48
    ~H"""
49
    <Layouts.app flash={@flash} current_scope={@current_scope} title="Repositories" wide>
49
    <Layouts.app
50
      flash={@flash}
51
      current_scope={@current_scope}
52
      title="Repositories"
53
      sidebar_sections={assigns[:sidebar_sections]}
54
      wide
55
    >
50 56
      <main id="repository-index" class="mx-auto w-full max-w-6xl space-y-8 px-4 py-10">
51 57
        <.header>
52 58
          Repositories
lib/openagents_web/live/repository_new_live.ex modified +6 -1

@@ -50,7 +50,12 @@ defmodule OpenAgentsWeb.RepositoryNewLive do

50 50
  @impl true
51 51
  def render(assigns) do
52 52
    ~H"""
53
    <Layouts.app flash={@flash} current_scope={@current_scope} title="New repository">
53
    <Layouts.app
54
      flash={@flash}
55
      current_scope={@current_scope}
56
      title="New repository"
57
      sidebar_sections={assigns[:sidebar_sections]}
58
    >
54 59
      <main id="repository-new" class="mx-auto w-full max-w-3xl space-y-8 px-4 py-10">
55 60
        <.header>
56 61
          New repository

This page updates live while a promote is in flight · changelog