diff --git a/db/queries.py b/db/queries.py
index 8e37e20..5fa7f4f 100644
--- a/db/queries.py
+++ b/db/queries.py
@@ -186,7 +186,7 @@ def timeline_event_put(type, text, user, orders_pool=None, order_status=None, ac
extra=json.dumps(extra) if extra is not None else None
)
-def timeline_event_recent(user_ids, actor_ids=None):
+def timeline_event_recent(user_ids, actor_ids=None, limit=5):
return (TimelineEvent
.select()
.where((
@@ -194,5 +194,5 @@ def timeline_event_recent(user_ids, actor_ids=None):
(TimelineEvent.actor_user_id.in_(actor_ids) if actor_ids is not None else True)
))
.order_by(TimelineEvent.updated_at.desc())
- .limit(10)
+ .limit(limit)
)
\ No newline at end of file
diff --git a/web/vite/src/ConfirmDialogButton.tsx b/web/vite/src/ConfirmDialogButton.tsx
index 55faa2f..c2b321a 100644
--- a/web/vite/src/ConfirmDialogButton.tsx
+++ b/web/vite/src/ConfirmDialogButton.tsx
@@ -1,7 +1,7 @@
import React from "react";
import { useDisclosure } from "@mantine/hooks";
-import { Button, Modal, Text, Flex } from "@mantine/core";
+import { Button, Modal, Text, Flex, ButtonVariant } from "@mantine/core";
export const ConfirmDialogButton: React.FC<{
text: string;
@@ -9,7 +9,15 @@ export const ConfirmDialogButton: React.FC<{
buttonColor: string;
onConfirm: () => void;
children: React.ReactNode;
-}> = ({ text, buttonText, buttonColor, onConfirm, children }) => {
+ variant?: ButtonVariant;
+}> = ({
+ text,
+ buttonText,
+ buttonColor,
+ onConfirm,
+ children,
+ variant = "filled",
+}) => {
const [opened, { open, close }] = useDisclosure();
const handleConfirm = React.useCallback(() => {
@@ -22,13 +30,15 @@ export const ConfirmDialogButton: React.FC<{
{text}
-
+
-
-
+
diff --git a/web/vite/src/OrderSets.tsx b/web/vite/src/OrderSets.tsx
index 5bdee7a..ef8abf8 100644
--- a/web/vite/src/OrderSets.tsx
+++ b/web/vite/src/OrderSets.tsx
@@ -9,6 +9,7 @@ import {
RingProgress,
Alert,
Grid,
+ Anchor,
} from "@mantine/core";
import { IconAlertTriangle } from "@tabler/icons-react";
import { TimeValue } from "@mantine/dates";
@@ -21,18 +22,14 @@ import { useUserContext } from "./UserContext";
import { DonutChart } from "@mantine/charts";
const COLORS_ROTATION = [
- "teal",
- "pink",
- "lime",
- "violet",
- "orange",
- "blue",
- "yellow",
- "grape",
- "green",
- "red",
- "cyan",
- "gray",
+ "orange.8",
+ "gray.7",
+ "orange.7",
+ "gray.6",
+ "orange.6",
+ "gray.5",
+ "orange.5",
+ "gray.4",
];
export interface OrderSetProps {
@@ -107,7 +104,9 @@ export const OrderSets: React.FC = ({
{username === current_user ? (
<>
- Edit Profile
+
+ Edit Profile
+
>
) : null}
@@ -140,7 +139,6 @@ export const OrderSets: React.FC = ({
padding="lg"
radius="md"
withBorder
- bg="gray.2"
mb="0"
>
@@ -163,10 +161,10 @@ export const OrderSets: React.FC = ({
{weekdays ? (
- Weekdays
+ Weekdays
) : null}
{weekends ? (
- Weekends
+ Weekends
) : null}
= ({
Punishments: {punishment_pool_name}
) : null}
-
+
{orders.length > 0 ? (
= ({
handleDelete(id)}
>
diff --git a/web/vite/src/Profile.tsx b/web/vite/src/Profile.tsx
index 997889c..3114a45 100644
--- a/web/vite/src/Profile.tsx
+++ b/web/vite/src/Profile.tsx
@@ -1,6 +1,7 @@
import React from "react";
import { useUserContext } from "./UserContext";
import {
+ Anchor,
Avatar,
Box,
Button,
@@ -134,9 +135,11 @@ export const Profile: React.FC = () => {
{username}
- Return to dashboard
+
+ Return to dashboard
+
-
+
Mastodon
Authorize with Mastodon
diff --git a/web/vite/src/ProfileVerification.tsx b/web/vite/src/ProfileVerification.tsx
index c3f98dd..37c830e 100644
--- a/web/vite/src/ProfileVerification.tsx
+++ b/web/vite/src/ProfileVerification.tsx
@@ -75,7 +75,7 @@ export const ProfileVerification: React.FC = ({
);
return (
-
+