Turn off the accepted rules and fix the design tokens, alt text, and last type errors. [skip build]
Checks / checks (push) Successful in 2m18s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-03 01:10:06 +11:00
parent 3db9b499af
commit 17d1eef572
73 changed files with 283 additions and 217 deletions
+5 -3
View File
@@ -98,7 +98,7 @@ import {
import { getMemberDisplayName, getMentionContent, trimReplyFromBody } from '../../utils/room';
import { CommandAutocomplete } from './CommandAutocomplete';
import { Command, SHRUG, TABLEFLIP, UNFLIP, useCommands } from '../../hooks/useCommands';
import { pluginRegistry } from '../settings/plugins/PluginAPI';
import { pluginRegistry, type CommandArg } from '../settings/plugins/PluginAPI';
import { PluginButtonSlot } from '../settings/plugins/PluginButtonSlot';
import { mobileOrTablet } from '../../utils/user-agent';
import { ReplyLayout, ThreadIndicator } from '../../components/message';
@@ -219,7 +219,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
const [commandHint, setCommandHint] = useState<{
command: string;
description: string;
args?: string[];
args?: string[] | CommandArg[];
}>();
const sendTypingStatus = useTypingStatusUpdater(mx, roomId);
@@ -733,7 +733,9 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
{commandHint.args && commandHint.args.length > 0 && (
<span style={{ opacity: 0.6 }}>
{' '}
{commandHint.args.map((arg) => `[${arg}]`).join(' ')}
{commandHint.args
.map((arg) => `[${typeof arg === 'string' ? arg : arg.name}]`)
.join(' ')}
</span>
)}
</Text>