收录 main、注释开发快照和完整运行 SHA;开发说明绑定原提交,补记 0.1.1–0.1.25。 进行中同步按仓库合并,完成后重新执行;启动入队,部署脚本读回版本证据。 开发快照独立于正式标签与 Release,既有冲突标签不移动。 已运行:整仓 make verify,Go 673 通过、前端 274 通过,92 个已声明可选跳过,必需跳过 0。 隔离 PostgreSQL 重复同步队列用例及 -race 通过;未更新现有 8088、未修改生产问答。
This commit is contained in:
@@ -98,6 +98,13 @@ const render = (over: Partial<Parameters<typeof VersionHistoryView>[0]> = {}) =>
|
||||
)
|
||||
|
||||
describe('VersionHistoryView', () => {
|
||||
it('renders the exact development changelog instead of hiding all non-release notes', () => {
|
||||
const html = render({
|
||||
expanded: developmentItem.commit_sha,
|
||||
page: { ...page, items: [{ ...developmentItem, release_notes: '这次开发独有的变更说明' }] },
|
||||
})
|
||||
expect(html).toContain('这次开发独有的变更说明')
|
||||
})
|
||||
it('lists commits newest-first with kind badges, short sha, times and links', () => {
|
||||
const html = render()
|
||||
expect(html).toContain('版本记录')
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
import { useOptionalAuth } from './auth'
|
||||
import './versionHistory.css'
|
||||
|
||||
// 「版本记录」页:追踪**所有已进入远端 main 的提交**,按提交时间倒序。
|
||||
// 「版本记录」页:追踪远端 main、已交付开发快照及当前运行 SHA 的提交,按提交时间倒序。
|
||||
// 只读:不提供打 tag / 发布 / 部署按钮;版本号只按证据展示,证据不足就说"历史提交"。
|
||||
const FILTERS: ReadonlyArray<{ id: string; label: string }> = [
|
||||
{ id: 'all', label: '全部' },
|
||||
@@ -158,7 +158,7 @@ function TimelineEntry({
|
||||
}) {
|
||||
const isRelease = item.record_kind === 'release' && item.version_state === 'verified'
|
||||
const heading = isRelease ? item.version_label : item.version_label || `历史提交 · ${item.short_sha}`
|
||||
const note = isRelease ? item.release_notes : ''
|
||||
const note = item.version_state === 'verified' ? item.release_notes : ''
|
||||
const hasDetail = Boolean(item.body) || Boolean(note)
|
||||
return (
|
||||
<li className={`version-history-entry ${item.record_kind}`}>
|
||||
@@ -185,7 +185,7 @@ function TimelineEntry({
|
||||
</button>
|
||||
{expanded ? (
|
||||
<div className="version-history-detail">
|
||||
{item.record_kind === 'release' && note ? <pre>{note}</pre> : null}
|
||||
{note ? <pre>{note}</pre> : null}
|
||||
{item.body ? <pre>{item.body}</pre> : null}
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user