11import React from 'react' ;
2- import { Typography , Grid , Box , Paper } from '@material-ui/core' ;
2+ import packageJson from '../../package.json'
3+ import { Typography , Grid , Box , Paper , Tooltip } from '@material-ui/core' ;
4+ import Help from '@material-ui/icons/Help' ;
5+ import QuestionAnswer from '@material-ui/icons/QuestionAnswer' ;
6+ import Person from '@material-ui/icons/Person' ;
7+ import LocalOffer from '@material-ui/icons/LocalOffer' ;
8+ import People from '@material-ui/icons/People' ;
39import {
410 Header ,
511 Page ,
612 Content ,
713 ContentHeader ,
814 HeaderLabel ,
9- SupportButton ,
1015} from '@backstage/core-components' ;
1116import {
1217 StackOverflowQuestions ,
1318 StackOverflowTags ,
1419 StackOverflowUsers ,
20+ StackOverflowMe
1521} from '../components/StackOverflow' ;
16- import { StackOverflowMe } from '../components/StackOverflow/StackOverflowMe' ;
1722
1823export const StackOverflowHub = ( ) => (
1924 < Page themeId = "plugin" >
20- < Header title = "Welcome to Stack Overflow Teams!" subtitle = "Your knowledge hub ." >
21- < HeaderLabel label = "Owner" value = "Team X " />
22- < HeaderLabel label = "Lifecycle " value = "Alpha" />
25+ < Header title = "Welcome to Stack Overflow Teams!" subtitle = "Your team's collective knowledge at your fingertips ." >
26+ < HeaderLabel label = "Owner" value = "Stack Overflow " />
27+ < HeaderLabel label = "Plugin Version " value = { `v ${ packageJson . version } ` } />
2328 </ Header >
2429 < Content >
25- < ContentHeader title = "Stack Overflow for Teams" >
26- < SupportButton >
27- View a leaderboard of your Stack Overflow instance with top users,
28- trending tags, and unanswered questions.
29- </ SupportButton >
30- </ ContentHeader >
30+ < ContentHeader title = "Stack Overflow for Teams" />
3131 < Grid container spacing = { 3 } >
3232 { /* Main Questions Section */ }
3333 < Grid item xs = { 12 } md = { 8 } >
3434 < Paper elevation = { 3 } >
3535 < Box p = { 3 } >
36- < Typography variant = "h5" gutterBottom >
37- Stack Overflow Questions
38- </ Typography >
36+ < Box display = "flex" justifyContent = "space-between" alignItems = "center" >
37+ < Box display = "flex" alignItems = "center" >
38+ < QuestionAnswer style = { { marginRight : 8 } } />
39+ < Typography variant = "h5" gutterBottom >
40+ Questions
41+ </ Typography >
42+ </ Box >
43+ < Tooltip title = "Browse and search through your team's questions." >
44+
45+ < Help />
46+
47+ </ Tooltip >
48+ </ Box >
3949 < Box mt = { 1 } >
4050 < StackOverflowQuestions />
4151 </ Box >
@@ -50,14 +60,42 @@ export const StackOverflowHub = () => (
5060 < Grid item xs = { 12 } >
5161 < Paper elevation = { 3 } >
5262 < Box p = { 3 } >
53- < StackOverflowMe />
63+ < Box display = "flex" justifyContent = "space-between" alignItems = "flex-start" mb = { 2 } >
64+ < Box flex = { 1 } >
65+ < Box display = "flex" alignItems = "center" mb = { 2 } >
66+ < Person style = { { marginRight : 8 } } />
67+ < Typography variant = "h6" >
68+ My Profile
69+ </ Typography >
70+ </ Box >
71+ < StackOverflowMe />
72+ </ Box >
73+ < Tooltip title = "Information from your Stack Overflow for Teams profile." >
74+
75+ < Help />
76+
77+ </ Tooltip >
78+ </ Box >
5479 </ Box >
5580 </ Paper >
5681 </ Grid >
5782 { /* Tags Section */ }
5883 < Grid item xs = { 12 } >
5984 < Paper elevation = { 3 } >
6085 < Box p = { 2 } >
86+ < Box display = "flex" justifyContent = "space-between" alignItems = "center" mb = { 1 } >
87+ < Box display = "flex" alignItems = "center" >
88+ < LocalOffer style = { { marginRight : 8 } } />
89+ < Typography variant = "h6" >
90+ Tags
91+ </ Typography >
92+ </ Box >
93+ < Tooltip title = "Popular tags used in your team to categorize and organize questions" >
94+
95+ < Help />
96+
97+ </ Tooltip >
98+ </ Box >
6199 < Box mt = { 1 } >
62100 < StackOverflowTags />
63101 </ Box >
@@ -71,7 +109,19 @@ export const StackOverflowHub = () => (
71109 < Grid item xs = { 12 } >
72110 < Paper elevation = { 3 } >
73111 < Box p = { 3 } >
74-
112+ < Box display = "flex" justifyContent = "space-between" alignItems = "center" mb = { 2 } >
113+ < Box display = "flex" alignItems = "center" >
114+ < People style = { { marginRight : 8 } } />
115+ < Typography variant = "h5" >
116+ Team Members
117+ </ Typography >
118+ </ Box >
119+ < Tooltip title = "Team members, their role, reputation scores." >
120+
121+ < Help />
122+
123+ </ Tooltip >
124+ </ Box >
75125 < Box mt = { 2 } >
76126 < StackOverflowUsers />
77127 </ Box >
@@ -81,4 +131,4 @@ export const StackOverflowHub = () => (
81131 </ Grid >
82132 </ Content >
83133 </ Page >
84- ) ;
134+ ) ;
0 commit comments