pagescms 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package/reference/docs/configuration/content/view.md +2 -0
- package/dist/package/reference/docs/guides/editing.md +1 -1
- package/dist/package/reference/manifest.json +3 -3
- package/dist/types/features/content/unavailable-entry.d.ts +6 -0
- package/dist/types/features/drafts/draft-discard-dialog.d.ts +4 -1
- package/dist/types/features/drafts/draft-store.d.ts +1 -1
- package/dist/types/features/drafts/saved-draft-menu.d.ts +6 -0
- package/dist/types/features/repository/overview-draft-actions.d.ts +5 -0
- package/dist/types/features/repository/repository-route-state.d.ts +6 -2
- package/dist/types/lib/actions.d.ts +1 -0
- package/dist/types/server/access/repository.d.ts +4 -7
- package/dist/types/server/context-cloudflare.d.ts +4 -7
- package/dist/types/server/context-node.d.ts +4 -7
- package/dist/types/server/context.d.ts +4 -7
- package/dist/types/server/github/api.d.ts +4 -7
- package/dist/types/server/repository/provider.d.ts +1 -7
- package/docs/public/configuration/content/view.md +2 -0
- package/docs/public/guides/editing.md +1 -1
- package/package.json +1 -1
- package/public/reference/docs/configuration/content/view.md +2 -0
- package/public/reference/docs/guides/editing.md +1 -1
- package/public/reference/manifest.json +3 -3
- package/src/features/admin/action-run-status.tsx +4 -0
- package/src/features/collections/collection-table.tsx +6 -8
- package/src/features/content/unavailable-entry.tsx +64 -0
- package/src/features/drafts/draft-discard-dialog.tsx +6 -1
- package/src/features/drafts/draft-store.ts +7 -1
- package/src/features/drafts/saved-draft-menu.tsx +108 -0
- package/src/features/repository/overview-draft-actions.tsx +28 -0
- package/src/features/repository/overview-file-item.tsx +2 -0
- package/src/features/repository/overview-loading.tsx +1 -0
- package/src/features/repository/repository-route-state.tsx +18 -3
- package/src/i18n/known-errors.ts +12 -0
- package/src/lib/action-run-tracking.ts +1 -0
- package/src/lib/actions.ts +2 -0
- package/src/lib/configuration-reference.mjs +1 -1
- package/src/locales/de/messages.po +32 -0
- package/src/locales/en/messages.po +32 -0
- package/src/locales/es/messages.po +32 -0
- package/src/locales/fr/messages.po +32 -0
- package/src/locales/ja/messages.po +32 -0
- package/src/locales/pt-BR/messages.po +32 -0
- package/src/locales/zh-CN/messages.po +32 -0
- package/src/routes/github.$owner.$repo.$branch.collection.$name_.entry.$.tsx +10 -5
- package/src/server/actions/actions.ts +115 -128
- package/src/server/github/api.ts +15 -26
- package/src/server/repository/provider.ts +1 -7
- package/src/server/services/actions.ts +9 -2
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
readActionRunName,
|
|
7
7
|
manageRepositoryAction,
|
|
8
8
|
} from '#/server/actions/actions'
|
|
9
|
+
import { actionRunTrackingUnavailable } from '#/lib/actions'
|
|
9
10
|
import { resolveRepositoryPrincipal } from '#/server/access/repository-policy'
|
|
10
11
|
import { containsControlCharacter, normalizeGitPath } from '#/shared/git-path'
|
|
11
12
|
import { repositoryTenant } from '#/server/services/context'
|
|
@@ -308,7 +309,10 @@ export async function runRepositoryAction(
|
|
|
308
309
|
},
|
|
309
310
|
repoId: admittedRepoId ?? data.repoId,
|
|
310
311
|
})
|
|
311
|
-
return {
|
|
312
|
+
return {
|
|
313
|
+
...run,
|
|
314
|
+
canRerun: canRerun && run.conclusion !== actionRunTrackingUnavailable,
|
|
315
|
+
}
|
|
312
316
|
})
|
|
313
317
|
}
|
|
314
318
|
|
|
@@ -349,6 +353,9 @@ export async function manageActionRun(
|
|
|
349
353
|
user,
|
|
350
354
|
...scopedData,
|
|
351
355
|
})
|
|
352
|
-
return {
|
|
356
|
+
return {
|
|
357
|
+
...run,
|
|
358
|
+
canRerun: canRerun && run.conclusion !== actionRunTrackingUnavailable,
|
|
359
|
+
}
|
|
353
360
|
})
|
|
354
361
|
}
|