mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: improve the setup experience with various fixes (#8130)
* Move updatecheck logs to debug mode This was causing logs to be emitted immediately after initial setup, which seemed odd for the user. * Fix setup page text to say "Create" instead of "Setup" account * Improve copy on the empty workspaces page - This view can be seen after the user creates their first workspace, so saying first is bad. - It should describe what a workspace is, so I modified the description. - The create from template button wasn't helpful! * Improve the copy for the empty templates view - This didn't describe what a template actually is. - The title had the same problem as workspaces, where first makes no sense. * Improve text consistency on the Create Template page * Fix "View activity" displaying for non-Enterprise users This was causing an exception to be thrown. * Improve messaging of empty groups view * Appropriately capitalize Workspace and Template * Improve Docker template taglines * Fix types
This commit is contained in:
@@ -7,7 +7,7 @@ import { MouseEvent, useState } from "react"
|
||||
export interface TableRowMenuProps<TData> {
|
||||
data: TData
|
||||
menuItems: Array<{
|
||||
label: string
|
||||
label: React.ReactNode
|
||||
disabled: boolean
|
||||
onClick: (data: TData) => void
|
||||
}>
|
||||
@@ -45,9 +45,9 @@ export const TableRowMenu = <T,>({
|
||||
open={Boolean(anchorEl)}
|
||||
onClose={handleClose}
|
||||
>
|
||||
{menuItems.map((item) => (
|
||||
{menuItems.map((item, index) => (
|
||||
<MenuItem
|
||||
key={item.label}
|
||||
key={index}
|
||||
disabled={item.disabled}
|
||||
onClick={() => {
|
||||
handleClose()
|
||||
|
||||
Reference in New Issue
Block a user