From 2b9cef66ed27939d036e0c0e844b206ce54d8b2d Mon Sep 17 00:00:00 2001 From: Brian Litwin Date: Fri, 4 Jan 2019 15:56:38 -0500 Subject: [PATCH] Add project title to explorer page (#1032) Resolves #1027 Using `repoId.owner/repoId.name` for the project title because that is how projects are identified on `PrototypePage`. Created a `` component inside `` that consumes a `RepoId` and renders a title. **Test Plan:** Added two unit tests: The first verifies that the parent `` component instantiates a `` component with the correct props. The current correct prop is a `RepoId` object. The second test verifies that the `` component renders the title correctly given the `RepoId`, ie as a `

` element with `repoId.owner/repoId.name` for text. Visual tests verify that the title is above the Analyze Cred button, and that clicking from one project to another renders the appropriate title for separate projects. Attaching a screenshot as a comment at #1032 for reference: screenshot 2019-01-04 13 40 03 --- src/explorer/App.js | 9 +++++++++ src/explorer/App.test.js | 18 +++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/explorer/App.js b/src/explorer/App.js index df310db..dfdfe17 100644 --- a/src/explorer/App.js +++ b/src/explorer/App.js @@ -112,6 +112,7 @@ export function createApp( {spacer()} feedback

+