Admin user management (#1393)

part of #1022

    Allow updating the show_on_leaderboard field.
    Add raw JSON of the user object.
    Add a new user message table.
    Also fixed style issue: hard to see reaction count when the user also reacted.
    Rename MessageTable to MessageConversation.
This commit is contained in:
notmd
2023-02-10 13:16:26 +07:00
committed by GitHub
parent 4ab5f58c88
commit aaa1276bae
26 changed files with 409 additions and 135 deletions
@@ -0,0 +1,20 @@
import { tableAnatomy } from "@chakra-ui/anatomy";
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
const { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(tableAnatomy.keys);
export const tableTheme = defineMultiStyleConfig({
variants: {
simple: definePartsStyle(({ colorMode }) => {
const isLightMode = colorMode === "light";
return {
td: {
borderColor: isLightMode ? "gray.100" : "gray.800",
},
th: {
borderColor: isLightMode ? "gray.100" : "gray.800",
},
};
}),
},
});
+2
View File
@@ -5,6 +5,7 @@ import { colors } from "./colors";
import { badgeTheme } from "./components/Badge";
import { cardTheme } from "./components/Card";
import { containerTheme } from "./components/Container";
import { tableTheme } from "./components/Table";
const config: ThemeConfig = {
initialColorMode: "light",
@@ -16,6 +17,7 @@ const components = {
Badge: badgeTheme,
Container: containerTheme,
Card: cardTheme,
Table: tableTheme,
};
const breakpoints = {