mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
What's new stays short as releases pile up
- Admin → About shows the running version's release notes, with a link to all releases. - The What's new page keeps the running version (and any newer) open and folds each older release to one line, grouped by month: its version and a count of its changes, fixes and notes for administrators. - CHANGELOG.md itself is unchanged and reads the same on GitHub; the app splits it into releases when shown (Changelog). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e4bc3a5b7b
commit
e8b0cd030e
10 files changed
+218
-3
No files matched your search
@@ -20,6 +20,17 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<% if (notes = Changelog.load.release(info.version)) %>
|
||||
<%# This version's release notes; older ones are on the What's new page. %>
|
||||
<section class="card mb-5" id="whats-new">
|
||||
<div class="card-header">
|
||||
<h2 class="card-title"><%= t(".whats_new_in", version: info.version) %></h2>
|
||||
<%= link_to t(".all_releases"), help_page_path("changelog"), class: "link text-sm" %>
|
||||
</div>
|
||||
<%= guide_markdown(notes.markdown, class: "card-body") %>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<div class="grid gap-5 lg:grid-cols-2">
|
||||
<section class="card">
|
||||
<div class="card-header"><h2 class="card-title"><%= t(".runtime") %></h2></div>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<%# The release notes (CHANGELOG.md, see Changelog): the running version and
|
||||
any newer open, older releases folded to one line each, by month. %>
|
||||
<h1 class="mb-3 text-2xl font-bold"><%= changelog.title %></h1>
|
||||
<%= guide_markdown(changelog.intro, class: "mb-2") if changelog.intro.present? %>
|
||||
<% changelog.releases.group_by(&:month_start).each do |month, releases| %>
|
||||
<h2 class="mt-6 mb-2 text-xs font-semibold uppercase tracking-wide text-slate-500"><%= l(month, format: "%B %Y") %></h2>
|
||||
<div class="divide-y divide-slate-200 rounded-md ring-1 ring-slate-200">
|
||||
<% releases.each do |release| %>
|
||||
<details id="<%= release.anchor %>" class="group release" <%= "open" if changelog.open?(release, running: running) %>>
|
||||
<summary class="flex cursor-pointer list-none flex-wrap items-baseline gap-x-3 gap-y-1 px-4 py-3 hover:bg-slate-50 [&::-webkit-details-marker]:hidden">
|
||||
<span aria-hidden="true" class="inline-block text-xs text-slate-400 transition-transform group-open:rotate-90">▶</span>
|
||||
<h3 class="font-mono text-base font-semibold"><%= release.version %></h3>
|
||||
<% if release.version == running %><span class="badge-blue"><%= t(".this_version") %></span><% end %>
|
||||
<span class="text-sm text-slate-500"><%= release_summary(release) %></span>
|
||||
</summary>
|
||||
<%= guide_markdown(release.markdown, class: "px-4 pb-4") %>
|
||||
</details>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -10,5 +10,7 @@
|
||||
aria: { current: (p == @page ? "page" : nil) } %></li><% end %>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="card card-body min-w-0 max-w-3xl"><%= guide_html(@page) %></article>
|
||||
<article class="card card-body min-w-0 max-w-3xl">
|
||||
<%= @page.slug == "changelog" ? render("help/changelog", changelog: Changelog.load, running: SystemInfo.new.version) : guide_html(@page) %>
|
||||
</article>
|
||||
</div>
|
||||
Reference in new issue
Block a user