feat(logs): URL deep-link + fetched-age chip for AGENT/SYSTEM tabs
Adds ?agent=name and ?unit=svc URL params to pre-select the agent on the AGENT tab (used by the per-agent overflow menu journal logs link). Last-fetched timestamp chip shows how stale the output is. Agent selection is NOT persisted to localStorage — URL params only.
This commit is contained in:
parent
d043b1ed4e
commit
b6b93f9fff
4 changed files with 69 additions and 9 deletions
|
|
@ -56,6 +56,7 @@
|
|||
<option value="">(full machine journal)</option>
|
||||
</select>
|
||||
<button type="button" class="btn btn-restart" id="agent-refresh">↻ refresh</button>
|
||||
<span id="agent-fetch-ts" class="meta logs-fetch-ts" hidden></span>
|
||||
</div>
|
||||
<pre id="agent-output" class="journal-output">select an agent above</pre>
|
||||
</section>
|
||||
|
|
@ -69,6 +70,7 @@
|
|||
<option value="hive-c0re.service">hive-c0re.service</option>
|
||||
</select>
|
||||
<button type="button" class="btn btn-restart" id="system-refresh">↻ refresh</button>
|
||||
<span id="system-fetch-ts" class="meta logs-fetch-ts" hidden></span>
|
||||
</div>
|
||||
<pre id="system-output" class="journal-output">loading…</pre>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Reference in a new issue