shipthis 0.1.26 → 0.1.27

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.
@@ -40,10 +40,12 @@ import '../../../Command-B3AmRt2w.js';
40
40
 
41
41
  const BuildsTable = ({ queryProps, ...boxProps }) => {
42
42
  const { isLoading, data } = useBuilds(queryProps);
43
+ const hasBuilds = (data?.data?.length ?? 0) > 0;
43
44
  return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, ...boxProps, children: [
44
45
  /* @__PURE__ */ jsx(Title, { children: `Builds uploaded to ShipThis from completed jobs for this game.` }),
46
+ !isLoading && !hasBuilds && /* @__PURE__ */ jsx(Box, { marginLeft: 2, marginTop: 1, flexDirection: "column", children: /* @__PURE__ */ jsx(Text, { children: "You DO NOT have any builds uploaded to ShipThis from completed jobs for this game." }) }),
45
47
  isLoading && /* @__PURE__ */ jsx(Spinner, { type: "dots" }),
46
- data && /* @__PURE__ */ jsx(Table, { data: data.data.map(getBuildSummary) }),
48
+ data && hasBuilds && /* @__PURE__ */ jsx(Table, { data: data.data.map(getBuildSummary) }),
47
49
  data && data.pageCount > 1 && /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
48
50
  /* @__PURE__ */ jsx(Text, { children: `Showing page ${(queryProps.pageNumber || 0) + 1} of ${data.pageCount}.` }),
49
51
  /* @__PURE__ */ jsx(Text, { children: "Use the --pageNumber parameter to see other pages." })
@@ -13,6 +13,7 @@ import 'uuid';
13
13
  import 'yazl';
14
14
  import { c as getJobStatusColor } from '../../../index-BB00V5oF.js';
15
15
  import 'open';
16
+ import { T as Title } from '../../../Title-BCQtayg6.js';
16
17
  import 'marked';
17
18
  import 'marked-terminal';
18
19
  import 'path';
@@ -67,9 +68,12 @@ class GameJobList extends BaseGameCommand {
67
68
  const params = otherFlags;
68
69
  const jobListResponse = await getProjectJobs(game.id, params);
69
70
  const data = jobListResponse.data.map((j) => getJobSummary(j, DateTime.now()));
71
+ const hasJobs = data.length > 0;
70
72
  render(
71
73
  /* @__PURE__ */ jsxs(Command, { command: this, children: [
72
- /* @__PURE__ */ jsx(
74
+ /* @__PURE__ */ jsx(Title, { children: "Jobs for this game" }),
75
+ !hasJobs && /* @__PURE__ */ jsx(Box, { marginLeft: 2, marginTop: 1, flexDirection: "column", children: /* @__PURE__ */ jsx(Text, { children: "You DO NOT have any jobs for this game." }) }),
76
+ hasJobs && /* @__PURE__ */ jsx(
73
77
  Table,
74
78
  {
75
79
  data,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shipthis",
3
3
  "description": "ShipThis manages building and uploading your Godot games to the App Store and Google Play.",
4
- "version": "0.1.26",
4
+ "version": "0.1.27",
5
5
  "author": "Hello Invent Ltd",
6
6
  "bin": {
7
7
  "shipthis": "./bin/run.js"