Homepage Flashcards

(10 cards)

1
Q

What is the benefit of having a good homepage?

A

1) improve the discoverability of the platform
2) prevent users from remembering direct URLs
3) surface relevant info quick
4) provide convenient shortcuts for common tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What plugin is used for composing a homepage?

A

Home plugin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the first page you see by default when you install Backstage?

A

software catalog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Command to install home plugin

A

yarn add –cwd packages/app @backstage/plugin-home

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Steps to add a new home page?

A

1) Install the home plugin
2) Create a new HomePage component
3) Update router for the root / route
4) Update sidebar items

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Create a new HomePage component

A

In packages/app/src/components/home/HomePage.tsx

import React from ‘react’;

export const HomePage = () => (

<h1>Welcome to Backstage!</h1>

);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Update router for the root / route

A

In packages/app/src/App.tsx
Remove: <Navigate></Navigate>
Add:

import { HomepageCompositionRoot } from ‘@backstage/plugin-home’;
import { HomePage } from ‘./components/home/HomePage’;

<Route path=”/” element={<HomepageCompositionRoot></HomepageCompositionRoot>}>
<HomePage></HomePage>
</Route>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Update sidebar items in home page creation process

A

In packages/app/src/components/Root/Root.tsx

Remove: HomeIcon from SidebarPage/Sidebar.

Add:
import CategoryIcon from ‘@material-ui/icons/Category’;

<SidebarItem icon={HomeIcon} to=”/” text=”Home” />
<SidebarItem icon={CategoryIcon} to=”catalog” text=”Catalog” />

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

command to bump all @backstage packages and dependencies you’re using to the latest versions

A

yarn backstage-cli versions:bump

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How often is the main release line released?

A

monthly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly