<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="303629" data-post-id="303629">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="tfwright" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tfwright/120/20299_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  tfwright
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a href="https://github.com/tfwright/live_admin/compare/v0.10.2...v0.11.0" rel="noopener nofollow ugc">0.11.0 released</a></p>
<ul>
<li>Plural embed sorting</li>
<li>Batch actions (including delete)</li>
<li>Require LiveView 0.19.x</li>
</ul>
<p>Rest of changes are CSS/UX improvements</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="303629" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveadmin-phoenix-admin-ui-built-on-liveview/46421/32">Post #31</a>
	                </div>
	            </div>
              <div id="likers-container-303629" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="303629"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #31"></div>
  </section>
</div>
    <div class="postbit" id="315052" data-post-id="315052">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="JohnnyCurran" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/JohnnyCurran/120/23380_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  JohnnyCurran
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Is there a way to configure a resource to not use the primary key <code>:id</code>? It looks like it attaches an <code>order by ID</code> on the end of the default <code>list</code> function and passing <code>sort_attr:</code> to the <code>use</code> macro doesn’t seem to solve it <img src="https://forum.elixirforum.com/images/emoji/apple/frowning.png?v=15" title=":frowning:" class="emoji" alt=":frowning:" loading="lazy" width="20" height="20"></p>
<p>Basically I want to override this notification: <a href="https://github.com/tfwright/live_admin/blob/c51284282c94edf3965fabd5aa1eed8cf17c16f7/lib/live_admin/resource.ex#L220C1-L220C1" class="inline-onebox" rel="noopener nofollow ugc">live_admin/lib/live_admin/resource.ex at c51284282c94edf3965fabd5aa1eed8cf17c16f7 · tfwright/live_admin · GitHub</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="315052" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveadmin-phoenix-admin-ui-built-on-liveview/46421/33">Post #32</a>
	                </div>
	            </div>
              <div id="likers-container-315052" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="315052"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #32"></div>
  </section>
</div>
    <div class="postbit" id="315066" data-post-id="315066">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="tfwright" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tfwright/120/20299_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  tfwright
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Unfortunately there’s no way to currently override just the sorting logic, you can however write your own implementation of the <em>list</em> function and configure <code>list_with</code> to use that. The <code>build_list</code> function you link to is the default implementation, so you could copy that and just change the sort line. Just note that the config function takes slightly different args <code>(resource, opts, session)</code> vs <code>(resource, opts, repo)</code>. Hope that helps!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="315066" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveadmin-phoenix-admin-ui-built-on-liveview/46421/34">Post #33</a>
	                </div>
	            </div>
              <div id="likers-container-315066" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="315066"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #33"></div>
  </section>
</div>
    <div class="postbit" id="315067" data-post-id="315067">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="JohnnyCurran" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/JohnnyCurran/120/23380_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  JohnnyCurran
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thank you,</p>
<p>I implemented a custom <code>list_with</code> which sidestepped the sort issue but it appears the LiveComponent is using the <code>:id</code> key for a data-attribute which crashes the view <img src="https://forum.elixirforum.com/images/emoji/apple/frowning.png?v=15" title=":frowning:" class="emoji" alt=":frowning:" loading="lazy" width="20" height="20"></p>
<p><a href="https://github.com/tfwright/live_admin/blob/c51284282c94edf3965fabd5aa1eed8cf17c16f7/lib/live_admin/components/resource/index.ex#L109" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/tfwright/live_admin/blob/c51284282c94edf3965fabd5aa1eed8cf17c16f7/lib/live_admin/components/resource/index.ex#L109</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="315067" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveadmin-phoenix-admin-ui-built-on-liveview/46421/35">Post #34</a>
	                </div>
	            </div>
              <div id="likers-container-315067" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="315067"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #34"></div>
  </section>
</div>
    <div class="postbit" id="315071" data-post-id="315071">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="tfwright" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tfwright/120/20299_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  tfwright
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Yeah unfortunately it looks like there is an unnecessary assumption about the existence of an id column. If you can open a bug report on the <a href="https://github.com/tfwright/live_admin/issues" rel="noopener nofollow ugc">GH repo</a> I will take a closer look.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="315071" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveadmin-phoenix-admin-ui-built-on-liveview/46421/36">Post #35</a>
	                </div>
	            </div>
              <div id="likers-container-315071" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="315071"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #35"></div>
  </section>
</div>
    <div class="postbit" id="315072" data-post-id="315072">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="JohnnyCurran" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/JohnnyCurran/120/23380_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  JohnnyCurran
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I opened an issue, <a href="https://github.com/tfwright/live_admin/issues/88" class="inline-onebox" rel="noopener nofollow ugc">Support alternate primary keys / remove assumption of `:id` key on struct · Issue #88 · tfwright/live_admin · GitHub</a> I didn’t know how to concisely title it so feel free to change it. Thank you for your quick responses!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="315072" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveadmin-phoenix-admin-ui-built-on-liveview/46421/37">Post #36</a>
	                </div>
	            </div>
              <div id="likers-container-315072" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="315072"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #36"></div>
  </section>
</div>
    <div class="postbit" id="326472" data-post-id="326472">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="tfwright" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tfwright/120/20299_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  tfwright
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The long awaited… <a href="https://diff.hex.pm/diff/live_admin/0.11.5..0.12.0" rel="nofollow">0.12</a></p>
<ul>
<li>
<p>Options validation/documentation</p>
<p>Mostly responsible for holding up this release. Required a complete rewrite of how options are managed internally. Goal was to clean up the supported options, make the data structures more consistent, and to add <a href="https://hexdocs.pm/live_admin/LiveAdmin.html#base_configs_schema/0" rel="noopener nofollow ugc">some documentation</a> around exactly what is supported.</p>
</li>
<li>
<p>Action/task arguments, annotations</p>
<p>The most interesting addition in my opinion. It is now possible to configure actions/tasks to take an arbitrary number of extra arguments. To do this, pass an mfa with the name and the number of arguments the function expects. LiveAdmin will then launch a modal to prompt the user to enter the extra arguments before executing the function. Example from demo app: <a href="https://github.com/tfwright/live_admin/blob/85e568752c3feaa68607887ed717a9cef0f7ff42/dev/user_admin.ex#L8" rel="noopener nofollow ugc">allow overriding the user’s password</a>.  Also, just adding docs to the function will also cause LiveAdmin to launch the modal with docs content instead of the default JS alert.</p>
</li>
<li>
<p>Async list fetching</p>
<p>Minor change taking advantage of async assigns <a href="https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#module-async-operations" rel="noopener nofollow ugc">recently added to LV</a>. List view will now fetch records in the background while displaying spinner so view does not appear frozen during slow queries.</p>
</li>
</ul>
<p>I had hoped to launch 1.0 by the 2 year mark (<img src="https://forum.elixirforum.com/images/emoji/apple/scream.png?v=15" title=":scream:" class="emoji" alt=":scream:" loading="lazy" width="20" height="20">) but I have decided to wait until I can give the UI the makeover it deserves. Speaking of which, if you have string CSS/Tailwind skills and want to volunteer to freshen up LiveAdmin’s look please DM me! I can’t offer much more than props, but expect a shoutout in the README at the very least (and if you are a LiveAdmin user with opinions about UX I would be receptive to proposed changes beyond simple styling).</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="326472" data-batch-url="/posts/batch_likers">
                        6
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/liveadmin-phoenix-admin-ui-built-on-liveview/46421/38">Post #37</a>
	                </div>
	            </div>
              <div id="likers-container-326472" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="326472"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>