refactor: move restart field from ServerInfo to ServerStatus

The restart reason belongs with other server state (shutting_down,
restarting, update_progress) rather than on the top-level ServerInfo.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt Hill
2026-03-28 23:13:59 -06:00
parent 104567e457
commit b01e5d9f09
12 changed files with 29 additions and 24 deletions

View File

@@ -445,7 +445,7 @@ export class MockApiService extends ApiService {
this.mockRevision([
{
op: PatchOp.REPLACE,
path: '/serverInfo/restart',
path: '/serverInfo/statusInfo/restart',
value: 'kiosk',
},
])
@@ -471,7 +471,7 @@ export class MockApiService extends ApiService {
this.mockRevision([
{
op: PatchOp.REPLACE,
path: '/serverInfo/restart',
path: '/serverInfo/statusInfo/restart',
value: 'mdns',
},
])
@@ -507,7 +507,7 @@ export class MockApiService extends ApiService {
this.mockRevision([
{
op: PatchOp.REPLACE,
path: '/serverInfo/restart',
path: '/serverInfo/statusInfo/restart',
value: 'language',
},
])
@@ -1852,7 +1852,7 @@ export class MockApiService extends ApiService {
const patch3: Operation<string>[] = [
{
op: PatchOp.REPLACE,
path: '/serverInfo/restart',
path: '/serverInfo/statusInfo/restart',
value: 'update',
},
{