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.
Files changed (48) hide show
  1. package/dist/package/reference/docs/configuration/content/view.md +2 -0
  2. package/dist/package/reference/docs/guides/editing.md +1 -1
  3. package/dist/package/reference/manifest.json +3 -3
  4. package/dist/types/features/content/unavailable-entry.d.ts +6 -0
  5. package/dist/types/features/drafts/draft-discard-dialog.d.ts +4 -1
  6. package/dist/types/features/drafts/draft-store.d.ts +1 -1
  7. package/dist/types/features/drafts/saved-draft-menu.d.ts +6 -0
  8. package/dist/types/features/repository/overview-draft-actions.d.ts +5 -0
  9. package/dist/types/features/repository/repository-route-state.d.ts +6 -2
  10. package/dist/types/lib/actions.d.ts +1 -0
  11. package/dist/types/server/access/repository.d.ts +4 -7
  12. package/dist/types/server/context-cloudflare.d.ts +4 -7
  13. package/dist/types/server/context-node.d.ts +4 -7
  14. package/dist/types/server/context.d.ts +4 -7
  15. package/dist/types/server/github/api.d.ts +4 -7
  16. package/dist/types/server/repository/provider.d.ts +1 -7
  17. package/docs/public/configuration/content/view.md +2 -0
  18. package/docs/public/guides/editing.md +1 -1
  19. package/package.json +1 -1
  20. package/public/reference/docs/configuration/content/view.md +2 -0
  21. package/public/reference/docs/guides/editing.md +1 -1
  22. package/public/reference/manifest.json +3 -3
  23. package/src/features/admin/action-run-status.tsx +4 -0
  24. package/src/features/collections/collection-table.tsx +6 -8
  25. package/src/features/content/unavailable-entry.tsx +64 -0
  26. package/src/features/drafts/draft-discard-dialog.tsx +6 -1
  27. package/src/features/drafts/draft-store.ts +7 -1
  28. package/src/features/drafts/saved-draft-menu.tsx +108 -0
  29. package/src/features/repository/overview-draft-actions.tsx +28 -0
  30. package/src/features/repository/overview-file-item.tsx +2 -0
  31. package/src/features/repository/overview-loading.tsx +1 -0
  32. package/src/features/repository/repository-route-state.tsx +18 -3
  33. package/src/i18n/known-errors.ts +12 -0
  34. package/src/lib/action-run-tracking.ts +1 -0
  35. package/src/lib/actions.ts +2 -0
  36. package/src/lib/configuration-reference.mjs +1 -1
  37. package/src/locales/de/messages.po +32 -0
  38. package/src/locales/en/messages.po +32 -0
  39. package/src/locales/es/messages.po +32 -0
  40. package/src/locales/fr/messages.po +32 -0
  41. package/src/locales/ja/messages.po +32 -0
  42. package/src/locales/pt-BR/messages.po +32 -0
  43. package/src/locales/zh-CN/messages.po +32 -0
  44. package/src/routes/github.$owner.$repo.$branch.collection.$name_.entry.$.tsx +10 -5
  45. package/src/server/actions/actions.ts +115 -128
  46. package/src/server/github/api.ts +15 -26
  47. package/src/server/repository/provider.ts +1 -7
  48. 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 { ...run, canRerun }
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 { ...run, canRerun }
356
+ return {
357
+ ...run,
358
+ canRerun: canRerun && run.conclusion !== actionRunTrackingUnavailable,
359
+ }
353
360
  })
354
361
  }