feat(clean-release): complete compliance redesign phases and polish tasks T047-T052
This commit is contained in:
@@ -85,11 +85,12 @@
|
||||
|
||||
async function loadDashboardPage() {
|
||||
await loadDashboardDetail();
|
||||
const effectiveDashboardRef = dashboard?.id ?? dashboardRef;
|
||||
await Promise.all([
|
||||
loadTaskHistory(),
|
||||
loadThumbnail(false),
|
||||
loadTaskHistory(effectiveDashboardRef),
|
||||
loadThumbnail(false, effectiveDashboardRef),
|
||||
loadLlmStatus(),
|
||||
loadGitStatus(),
|
||||
loadGitStatus(effectiveDashboardRef),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -112,12 +113,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
async function loadTaskHistory() {
|
||||
if (!dashboardRef || !envId) return;
|
||||
async function loadTaskHistory(targetDashboardRef = dashboardRef) {
|
||||
if (!targetDashboardRef || !envId) return;
|
||||
isTaskHistoryLoading = true;
|
||||
taskHistoryError = null;
|
||||
try {
|
||||
const response = await api.getDashboardTaskHistory(envId, dashboardRef, {
|
||||
const response = await api.getDashboardTaskHistory(envId, targetDashboardRef, {
|
||||
limit: 30,
|
||||
});
|
||||
taskHistory = response?.items || [];
|
||||
@@ -136,12 +137,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
async function loadThumbnail(force = false) {
|
||||
if (!dashboardRef || !envId) return;
|
||||
async function loadThumbnail(force = false, targetDashboardRef = dashboardRef) {
|
||||
if (!targetDashboardRef || !envId) return;
|
||||
isThumbnailLoading = true;
|
||||
thumbnailError = null;
|
||||
try {
|
||||
const blob = await api.getDashboardThumbnail(envId, dashboardRef, {
|
||||
const blob = await api.getDashboardThumbnail(envId, targetDashboardRef, {
|
||||
force,
|
||||
});
|
||||
releaseThumbnailUrl();
|
||||
@@ -399,13 +400,13 @@
|
||||
};
|
||||
}
|
||||
|
||||
async function loadGitStatus() {
|
||||
if (!gitDashboardRef) return;
|
||||
async function loadGitStatus(targetDashboardRef = gitDashboardRef) {
|
||||
if (!targetDashboardRef) return;
|
||||
isGitStatusLoading = true;
|
||||
gitStatusError = null;
|
||||
gitDiffPreview = "";
|
||||
try {
|
||||
const status = await gitService.getStatus(gitDashboardRef, envId || null);
|
||||
const status = await gitService.getStatus(targetDashboardRef, envId || null);
|
||||
gitStatus = status;
|
||||
if (status?.current_branch) {
|
||||
currentBranch = status.current_branch;
|
||||
|
||||
Reference in New Issue
Block a user