Skip to content

Commit c09ca3b

Browse files
committed
fix: improve messaging on dashboard
1 parent f07fb50 commit c09ca3b

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

dashboard/src/components/Menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ interface LinkItemProps {
4040
route: string;
4141
}
4242
const LinkItems: Array<LinkItemProps> = [
43-
{ name: 'Home', icon: FiHome, route: '/' },
43+
// { name: 'Home', icon: FiHome, route: '/' },
44+
{ name: 'Environment Variables', icon: FiSettings, route: '/' },
4445
{ name: 'Users', icon: FiUsers, route: '/users' },
45-
{ name: 'Environment Variables', icon: FiSettings, route: '/environment' },
4646
];
4747

4848
interface SidebarProps extends BoxProps {

dashboard/src/pages/Auth.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,25 @@ export default function Auth() {
7373
fontWeight="bold"
7474
mb="2"
7575
>
76-
Hi there 👋 <br />
76+
Hello Admin 👋 <br />
7777
</Text>
7878
<Text fontSize="large" textAlign="center" color="gray.500" mb="8">
79-
Welcome to Authorizer Administrative Dashboard
79+
Welcome to Admin Dashboard
8080
</Text>
8181
<form onSubmit={handleSubmit}>
8282
<VStack spacing="5" justify="space-between">
8383
<FormControl isRequired>
84-
{/* <FormLabel htmlFor="admin-secret">
85-
{isLogin ? 'Enter' : 'Configure'} Admin Secret
86-
</FormLabel> */}
84+
<FormLabel htmlFor="admin-username">Username</FormLabel>
85+
<Input
86+
size="lg"
87+
id="admin-username"
88+
placeholder="Username"
89+
disabled
90+
value="admin"
91+
/>
92+
</FormControl>
93+
<FormControl isRequired>
94+
<FormLabel htmlFor="admin-secret">Password</FormLabel>
8795
<Input
8896
size="lg"
8997
id="admin-secret"
@@ -111,10 +119,7 @@ export default function Auth() {
111119
</Text>
112120
) : (
113121
<Text color="gray.600" fontSize="sm">
114-
<b>Note:</b> You can also configure admin secret by setting{' '}
115-
<code>ADMIN_SECRET</code> environment variable. For more
116-
information, please refer to the{' '}
117-
<a href="https://docs.authorizer.dev/core/env/">documentation</a>.
122+
<b>Note:</b> Configure the password to start using your dashboard.
118123
</Text>
119124
)}
120125
</VStack>

dashboard/src/routes/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const AppRoutes = () => {
2323
</DashboardLayout>
2424
}
2525
>
26-
<Route path="/" element={<Home />} />
26+
<Route path="/" element={<Environment />} />
2727
<Route path="users" element={<Users />} />
2828
<Route path="environment" element={<Environment />} />
2929
<Route path="*" element={<Home />} />

0 commit comments

Comments
 (0)