GitFOSS
feat(pull_requests): prettify output while wip
+ 40
- 34
@@ -1,10 +1,10 @@
 {
-  "_generatedAtUnix": 1664253653735,
+  "_generatedAtUnix": 1664492241496,
   "_hashAlgorithm": "sha1",
   "_version": 2,
   "islands": {
     "Code": {
-      "hash": "ac6dac8da10d1d11f147439e075fadfb5cfe2c02",
+      "hash": "c6f70c27bc6d280223440053afbfdfbad331688c",
       "pathSource": "./app/islands/Code.tsx",
       "pathBundle": "./public/.islands/Code.bundle.js",
       "pathSourceMap": "./public/.islands/Code.bundle.js.map"

...
@@ -22,7 +22,7 @@
       "pathSourceMap": "./public/.islands/RepositoriesList.bundle.js.map"
     },
     "RepositoryCommitSummaryLine": {
-      "hash": "5c31f1270a0cf20f1984fb000cfff0bc21d73a22",
+      "hash": "7c1eee05085d4ec9ef48e6ecfe8f90408a814a16",
       "pathSource": "./app/islands/RepositoryCommitSummaryLine.tsx",
       "pathBundle": "./public/.islands/RepositoryCommitSummaryLine.bundle.js",
       "pathSourceMap": "./public/.islands/RepositoryCommitSummaryLine.bundle.js.map"

...
@@ -34,7 +34,7 @@
       "pathSourceMap": "./public/.islands/RepositoryCreateForm.bundle.js.map"
     },
     "RepositoryFilesDiffsList": {
-      "hash": "3828767757bf473b5333b03a705f7a81e6b30ccd",
+      "hash": "117895a214a1d54625205f5b8a2e98a82b5ac7c6",
       "pathSource": "./app/islands/RepositoryFilesDiffsList.tsx",
       "pathBundle": "./public/.islands/RepositoryFilesDiffsList.bundle.js",
       "pathSourceMap": "./public/.islands/RepositoryFilesDiffsList.bundle.js.map"

...
@@ -52,7 +52,7 @@
       "pathSourceMap": "./public/.islands/RepositoryInitialSetup.bundle.js.map"
     },
     "RepositoryTreeView": {
-      "hash": "59b2c58c9405796dbce00d1bff741ce98c581b3c",
+      "hash": "36df89a99666e3eff40838de53b1ee8cf83c053e",
       "pathSource": "./app/islands/RepositoryTreeView.tsx",
       "pathBundle": "./public/.islands/RepositoryTreeView.bundle.js",
       "pathSourceMap": "./public/.islands/RepositoryTreeView.bundle.js.map"

...
@@ -80,11 +80,11 @@
       "pathSource": "./app/views/organization/OrganizationDetailsView.tsx"
     },
     "RepositoryBrowserView": {
-      "hash": "b72948f5f47bc5e60bdbc08e407aad1766193d60",
+      "hash": "b42bed734edd8f943fb1e83377337db8b1c0a259",
       "pathSource": "./app/views/repository/RepositoryBrowserView.tsx"
     },
     "RepositoryCommitsLogView": {
-      "hash": "22af9987a48851efcbeed977d79624d9e917233c",
+      "hash": "02ab3b62c52700ac4c10bf385033bc5a0389f89e",
       "pathSource": "./app/views/repository/RepositoryCommitsLogView.tsx"
     },
     "RepositoryCompareView": {

...
@@ -96,7 +96,7 @@
       "pathSource": "./app/views/repository/RepositoryCreateView.tsx"
     },
     "RepositoryDetailsView": {
-      "hash": "23f5df9b73ad8a5546578cf3ac6b8d1d1da0dc74",
+      "hash": "edb7bc0548d344ff3c422411c09daf8738cfb51e",
       "pathSource": "./app/views/repository/RepositoryDetailsView.tsx"
     },
     "RepositoryExploreView": {

...
@@ -107,8 +107,12 @@
       "hash": "88a61a5f277217b5b4e29f9d228adec1c9a2fdc7",
       "pathSource": "./app/views/repository/RepositoryForkView.tsx"
     },
+    "RepositoryPullRequestsView": {
+      "hash": "923b8e0c628959154876eb01cbbe6c615bca1785",
+      "pathSource": "./app/views/repository/RepositoryPullRequestsView.tsx"
+    },
     "RepositoryShowObjectView": {
-      "hash": "51a05deb5469f34cbba8f8d138c82bf33c8011b8",
+      "hash": "f0519f6d1037590116eb7bfb7b93d213675ac10d",
       "pathSource": "./app/views/repository/RepositoryShowObjectView.tsx"
     },
     "UserDashboardView": {

...
@@ -121,3 +125,4 @@
     }
   }
 }
+

app/views/repository/RepositoryPullRequestsView.tsx
@@ -16,36 +16,37 @@ export interface RepositoryPullRequestsViewProps extends CommonProps {
   repo: Repository;
 }
 
-const RepositoryPullRequestsView: ReactView<
-  RepositoryPullRequestsViewProps
-> = ({ commonProps, parentOrg, pullRequests, repo }) => {
-  return (
-    <Layout {...commonProps}>
-      <PageWrapper>
-        <h1>
-          <a href={`/${parentOrg.slug}`}>
-            {parentOrg.displayName || parentOrg.slug}
-          </a>
-          {" / "}
-          <a href={`/${parentOrg.slug}/${repo.slug}`}>
-            {repo.displayName || repo.slug}
-          </a>
-          {" ∙ "}
-          <span>Pull Requests</span>
-        </h1>
-        <Grid.Row fluid style={{ marginTop: 32 }}>
-          {JSON.stringify(pullRequests, null, 2)}
-          {/*<div
+const RepositoryPullRequestsView: ReactView<RepositoryPullRequestsViewProps> =
+  ({ commonProps, parentOrg, pullRequests, repo }) => {
+    return (
+      <Layout {...commonProps}>
+        <PageWrapper>
+          <h1>
+            <a href={`/${parentOrg.slug}`}>
+              {parentOrg.displayName || parentOrg.slug}
+            </a>
+            {" / "}
+            <a href={`/${parentOrg.slug}/${repo.slug}`}>
+              {repo.displayName || repo.slug}
+            </a>
+            {" ∙ "}
+            <span>Pull Requests</span>
+          </h1>
+          <Grid.Row fluid style={{ marginTop: 32 }}>
+            <pre>
+              <code>{JSON.stringify(pullRequests, null, 2)}</code>
+            </pre>
+            {/*<div
             data-islandid={`${RepositoriesList.name}$$0`}
             style={{ width: "100%" }}
           >
             <RepositoriesList repositories={repositories} />
           </div>*/}
-        </Grid.Row>
-      </PageWrapper>
-    </Layout>
-  );
-};
+          </Grid.Row>
+        </PageWrapper>
+      </Layout>
+    );
+  };
 
 RepositoryPullRequestsView.displayName = "RepositoryPullRequestsView";
 export default RepositoryPullRequestsView;