diff --git a/scripts/community-extract.mjs b/scripts/community-extract.mjs
index 34bda52413e..a785e6342ce 100644
--- a/scripts/community-extract.mjs
+++ b/scripts/community-extract.mjs
@@ -18,6 +18,7 @@ const record = (text, source, line) => {
if (!locations[text]) locations[text] = [];
locations[text].push(`${path.relative(root, source)}:${line}`);
};
+const MESSAGE_FUNCTIONS = ['communityText', 'communityRich', 'text', 't', 'formatCommunityMessage'];
const visit = directory => {
for (const entry of fs.readdirSync(directory, {withFileTypes: true})) {
const source = path.join(directory, entry.name);
@@ -28,7 +29,7 @@ const visit = directory => {
const ast = parse(fs.readFileSync(source, 'utf8'), {sourceType: 'module', plugins: ['jsx']});
traverse(ast, {
CallExpression ({node}) {
- if (!['communityText', 'text', 't', 'formatCommunityMessage'].includes(node.callee.name)) return;
+ if (!MESSAGE_FUNCTIONS.includes(node.callee.name)) return;
const argument = node.arguments[0];
if (argument?.type === 'StringLiteral') record(argument.value, source, argument.loc.start.line);
},
diff --git a/src/community/UserContext.jsx b/src/community/UserContext.jsx
index a56a0c921bf..b4eb7a015cf 100644
--- a/src/community/UserContext.jsx
+++ b/src/community/UserContext.jsx
@@ -13,6 +13,7 @@ import {
login as identityLogin,
logout as identityLogout
} from '../lib/rotur/identity.js';
+import {takeRedirectError} from '../lib/rotur/oauth.js';
const UserContext = createContext({user: null, login: () => {}, loginOrThrow: () => {}, logout: () => {}});
@@ -151,7 +152,12 @@ const UserProvider = ({children}) => {
useEffect(() => {
const unsubscribe = subscribeIdentity(handleIdentity);
- identityRestore();
+ Promise.resolve(identityRestore())
+ .catch(() => null)
+ .then(() => {
+ const message = takeRedirectError();
+ if (message) setSignInError(signInErrorMessage({message}));
+ });
return unsubscribe;
}, [handleIdentity]);
diff --git a/src/community/components/CommentThread.jsx b/src/community/components/CommentThread.jsx
index 449784c28bc..56ae67f09d6 100644
--- a/src/community/components/CommentThread.jsx
+++ b/src/community/components/CommentThread.jsx
@@ -342,7 +342,11 @@ const CommentThread = ({
const [replyTo, setReplyTo] = useState(null);
const [replyText, setReplyText] = useState('');
const [busy, setBusy] = useState(false);
- const [error, setError] = useState(null);
+ const [errorState, setErrorState] = useState(null);
+ const setError = useCallback((message, target = 'general') => {
+ setErrorState(message ? {text: message, target} : null);
+ }, []);
+ const errorFor = target => (errorState && errorState.target === target ? errorState.text : null);
const [loadingComments, setLoadingComments] = useState(true);
const [loadFailed, setLoadFailed] = useState(false);
const [reportId, setReportId] = useState(null);
@@ -359,6 +363,7 @@ const CommentThread = ({
const [nextOffset, setNextOffset] = useState(0);
const [loadingMore, setLoadingMore] = useState(false);
const [moreFailed, setMoreFailed] = useState(false);
+ const failedFullLoad = useRef('');
const [allCommentsLoaded, setAllCommentsLoaded] = useState(false);
const sourceRef = useRef(source);
const viewerRef = useRef(viewerName);
@@ -484,36 +489,45 @@ const CommentThread = ({
load();
}, [beginExtraLoad, load]);
+ const latestComments = useRef(comments);
+ latestComments.current = comments;
+ const commentChanges = useRef(null);
+ commentChanges.current = {
+ created: comment => {
+ if (latestComments.current.some(item => item.id === comment.id)) return;
+ latestComments.current = addCreatedComment(latestComments.current, comment);
+ setComments(current => (current.some(item => item.id === comment.id) ?
+ current :
+ addCreatedComment(current, comment)));
+ if (!comment.parent) {
+ setTotalRoots(total => total + 1);
+ setNextOffset(offset => offset + 1);
+ }
+ if (onCountChange) onCountChange(1);
+ },
+ removed: commentId => {
+ const gone = item => item.id === commentId || item.parent === commentId;
+ const removed = latestComments.current.filter(gone);
+ if (!removed.length) return;
+ latestComments.current = latestComments.current.filter(item => !gone(item));
+ setComments(current => current.filter(item => !gone(item)));
+ if (removed.some(item => !item.parent)) {
+ setTotalRoots(total => Math.max(0, total - 1));
+ setNextOffset(offset => Math.max(0, offset - 1));
+ }
+ if (onCountChange) onCountChange(-removed.length);
+ }
+ };
+
useEffect(() => {
if (!source.subscribe) return;
return source.subscribe(event => {
if (event.type === 'comment_created' && event.comment) {
- setComments(current => {
- if (current.some(comment => comment.id === event.comment.id)) return current;
- if (!event.comment.parent) {
- setTotalRoots(total => total + 1);
- setNextOffset(offset => offset + 1);
- }
- if (onCountChange) onCountChange(1);
- return addCreatedComment(current, event.comment);
- });
+ commentChanges.current.created(event.comment);
return;
}
if (event.type === 'comment_deleted' && event.commentId) {
- setComments(current => {
- const removed = current.filter(comment => (
- comment.id === event.commentId || comment.parent === event.commentId
- ));
- if (!removed.length) return current;
- if (removed.some(comment => !comment.parent)) {
- setTotalRoots(total => Math.max(0, total - 1));
- setNextOffset(offset => Math.max(0, offset - 1));
- }
- if (onCountChange) onCountChange(-removed.length);
- return current.filter(comment => (
- comment.id !== event.commentId && comment.parent !== event.commentId
- ));
- });
+ commentChanges.current.removed(event.commentId);
return;
}
if (event.type === 'comment_edited' && event.comment) {
@@ -531,7 +545,7 @@ const CommentThread = ({
}));
}
});
- }, [source, onCountChange]);
+ }, [source]);
const loadMore = async () => {
if (loadingMore || nextOffset >= totalRoots) return;
@@ -559,6 +573,8 @@ const CommentThread = ({
useEffect(() => {
if (!projectComments || allCommentsLoaded || loadingComments || loadingMore) return;
if (!search.trim() && kindFilter === 'all') return;
+ const loadKey = `${search.trim()}\u0000${kindFilter}\u0000${sortOrder}`;
+ if (failedFullLoad.current === loadKey) return;
const actionSource = source;
const actionViewer = viewerName;
const fresh = beginExtraLoad();
@@ -578,6 +594,7 @@ const CommentThread = ({
setLoadingMore(false);
}))
.catch(fresh(() => {
+ failedFullLoad.current = loadKey;
setMoreFailed(true);
setLoadingMore(false);
}));
@@ -606,7 +623,7 @@ const CommentThread = ({
if (!text.trim()) return;
const attachedDonation = parent ? 0 : parseCommentDonation(donation);
if (attachedDonation === null) {
- setError(communityText('Enter a donation between 0.01 and 100000 credits.'));
+ setError(communityText('Enter a donation between 0.01 and 100000 credits.'), 'root');
return;
}
const actionSource = source;
@@ -625,17 +642,7 @@ const CommentThread = ({
}) : await actionSource.add(text.trim(), parent, commentKind);
if (!parent) writeSessionDraft(`comment:${actionDraftKey}`, '');
if (sourceRef.current !== actionSource || viewerRef.current !== actionViewer) return;
- if (data && data.comment) {
- setComments(current => {
- if (current.some(comment => comment.id === data.comment.id)) return current;
- if (!data.comment.parent) {
- setTotalRoots(total => total + 1);
- setNextOffset(offset => offset + 1);
- }
- if (onCountChange) onCountChange(1);
- return addCreatedComment(current, data.comment);
- });
- }
+ if (data && data.comment) commentChanges.current.created(data.comment);
if (parent) {
setReplyText('');
setReplyTo(null);
@@ -648,7 +655,7 @@ const CommentThread = ({
if (sourceRef.current === actionSource && viewerRef.current === actionViewer) {
setError(e.cancelled ?
communityText('Payment cancelled.') :
- (e.message || communityText('Could not post comment.')));
+ (e.message || communityText('Could not post comment.')), parent || 'root');
}
} finally {
releaseAction();
@@ -666,24 +673,14 @@ const CommentThread = ({
const releaseAction = beginAction(actionSource, actionViewer, `remove:${commentId}`);
if (!releaseAction) return;
setRemovingId(commentId);
- const removingComment = comments.find(comment => comment.id === commentId);
try {
await actionSource.remove(commentId);
if (sourceRef.current !== actionSource || viewerRef.current !== actionViewer) return;
- setComments(current => {
- const removedCount = current.filter(c => c.id === commentId || c.parent === commentId).length;
- if (!removedCount) return current;
- if (removingComment && !removingComment.parent) {
- setTotalRoots(total => Math.max(0, total - 1));
- setNextOffset(offset => Math.max(0, offset - 1));
- }
- if (onCountChange) onCountChange(-removedCount);
- return current.filter(c => c.id !== commentId && c.parent !== commentId);
- });
+ commentChanges.current.removed(commentId);
setDeleteId(null);
} catch (e) {
if (sourceRef.current === actionSource && viewerRef.current === actionViewer) {
- setError(e.message || communityText('Could not delete comment.'));
+ setError(e.message || communityText('Could not delete comment.'), 'delete');
}
} finally {
releaseAction();
@@ -847,7 +844,7 @@ const CommentThread = ({
placeholder={communityText('Add a comment')}
ariaLabel={communityText('Add a comment')}
busy={busy}
- error={replyTo === null ? error : null}
+ error={errorFor('root') || (replyTo === null ? errorFor('general') : null)}
kind={projectComments ? kind : null}
onKindChange={projectComments ? setKind : null}
composerAction={composerAction}
@@ -1019,7 +1016,7 @@ const CommentThread = ({
placeholder={communityText('Reply to {value1}', {value1: comment.author})}
ariaLabel={communityText('Write a reply')}
busy={busy}
- error={error}
+ error={errorFor(comment.id)}
/>
) : null}
@@ -1069,7 +1066,7 @@ const CommentThread = ({
{communityText('No comments match those filters.')}
) : null}
- {!loadingComments && !loadFailed && !comments.length ? (
+ {!disabled && !loadingComments && !loadFailed && !comments.length ? (
{communityText('Be the first to leave a comment.')}
@@ -1093,7 +1090,7 @@ const CommentThread = ({
confirmLabel={communityText('Delete comment')}
busy={removingId !== null}
busyLabel={communityText('Deleting…')}
- error={error}
+ error={errorFor('delete')}
onConfirm={() => remove(deleteComment.id)}
onCancel={() => setDeleteId(null)}
>
diff --git a/src/community/components/ExploreHeader.jsx b/src/community/components/ExploreHeader.jsx
index 39069ae8df9..388cceedede 100644
--- a/src/community/components/ExploreHeader.jsx
+++ b/src/community/components/ExploreHeader.jsx
@@ -37,7 +37,7 @@ const ExploreSearch = ({ariaLabel, onChange, onSubmit, placeholder, value}) => {
spaces
.sort((a, b) => Number(b.resultsPublishedAt) - Number(a.resultsPublishedAt))[0];
const ChallengeWinnerCard = ({challenge}) => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const winner = challenge.winner;
const [burst, replay] = useCelebration(`challenge:${challenge._id}:${winner.id}`);
return (
@@ -242,7 +242,7 @@ const ChallengeWinnerCard = ({challenge}) => {
track('challenge_winner_open', {source: 'home'})}>{winner.title}
{communityText('Winner of {value1}', {value1: challenge.title})}
-
{communityText('by')}{' '}{winner.owner}
+
{communityRich('by {user}', {user: {winner.owner} })}
track('challenge_winner_open', {source: 'home'})}> {communityText('Play the winner')}
diff --git a/src/community/components/MyStuffLibrary.jsx b/src/community/components/MyStuffLibrary.jsx
index c6415c253e8..6dc14937067 100644
--- a/src/community/components/MyStuffLibrary.jsx
+++ b/src/community/components/MyStuffLibrary.jsx
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import {BookmarkMinus, Clock3, Eye, EyeOff, Library, MoreHorizontal} from 'lucide-react';
import {Link} from 'react-router-dom';
-import {formatPlaytime, timeAgo} from '../format';
+import {formatPlaytime, timeAgoText} from '../format';
import {projectUrl} from '../api';
import ProjectThumbnail from './ProjectThumbnail.jsx';
import Button from './ui/Button.jsx';
@@ -23,17 +23,14 @@ const playtimeLabel = project => {
const lastPlayedLabel = project => {
if (!(project.lastPlayed > 0)) return '';
- const relative = timeAgo(project.lastPlayed);
- return relative === 'just now' ?
- formatCommunityMessage('Played just now') :
- formatCommunityMessage('Last played {value1} ago', {value1: relative});
+ return formatCommunityMessage('Last played {value1}', {value1: timeAgoText(project.lastPlayed)});
};
const MyStuffLibrary = ({
projects, total, loading, error, moreBusy, hasMore, actionBusy, actionError,
onRetry, onLoadMore, onChangeVisibility, onRemove
}) => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
let body;
if (loading) {
body =
{communityText('Loading your library…')} ;
@@ -56,8 +53,9 @@ const MyStuffLibrary = ({
{project.title}
- {communityText('by')}{' '}
- {project.owner}
+ {communityRich('by {user}', {
+ user: {project.owner}
+ })}
diff --git a/src/community/components/NavBar.jsx b/src/community/components/NavBar.jsx
index bb477cff883..00b13c7f269 100644
--- a/src/community/components/NavBar.jsx
+++ b/src/community/components/NavBar.jsx
@@ -45,7 +45,7 @@ const SearchBox = ({className, containerRef, inputRef, query, onQuery, onFocus,
<>
{project.title}
- {communityText('by ')}{project.owner}
+ {communityText('by {user}', {user: project.owner})}
>
)
}))
diff --git a/src/community/components/PlaytimeLibrary.jsx b/src/community/components/PlaytimeLibrary.jsx
index 860d1e60134..64ae8742339 100644
--- a/src/community/components/PlaytimeLibrary.jsx
+++ b/src/community/components/PlaytimeLibrary.jsx
@@ -5,7 +5,7 @@ import React from 'react';
import {Clock3, Gamepad2} from 'lucide-react';
import {Link} from 'react-router-dom';
import {projectUrl} from '../api';
-import {formatPlaytime, timeAgo} from '../format';
+import {formatPlaytime, timeAgoText} from '../format';
import ProjectThumbnail from './ProjectThumbnail.jsx';
import Button from './ui/Button.jsx';
import EmptyState from './ui/EmptyState.jsx';
@@ -15,16 +15,13 @@ import styles from './PlaytimeLibrary.module.css';
const lastPlayed = value => {
const timestamp = Number(value);
if (!(timestamp > 0)) return '';
- const relative = timeAgo(timestamp);
- return relative === 'just now' ?
- formatCommunityMessage('Played just now') :
- formatCommunityMessage('Played {value1} ago', {value1: relative});
+ return formatCommunityMessage('Played {value1}', {value1: timeAgoText(timestamp)});
};
const PlaytimeLibrary = ({
projects, total, visible, self, loading, error, moreBusy, hasMore, onRetry, onLoadMore
}) => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
if (loading) return {communityText('Loading game library…')} ;
if (error) {
return (
@@ -75,8 +72,9 @@ const PlaytimeLibrary = ({
{project.title}
- {communityText('by')}{' '}
- {project.owner}
+ {communityRich('by {user}', {
+ user: {project.owner}
+ })}
diff --git a/src/community/components/ProjectCard.jsx b/src/community/components/ProjectCard.jsx
index 7d83709fb94..adbc6e305ee 100644
--- a/src/community/components/ProjectCard.jsx
+++ b/src/community/components/ProjectCard.jsx
@@ -9,7 +9,7 @@ import UserLink from './UserLink.jsx';
import styles from './ProjectCard.module.css';
const ProjectCard = ({project, showTrend = false}) => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const price = project.price || 0;
const teamSize = Math.max(1, Number(project.teamSize) || 1);
const acceptedChanges = Number(project.acceptedChanges) || 0;
@@ -47,8 +47,9 @@ const ProjectCard = ({project, showTrend = false}) => {
title={project.title}
>{project.title}
- {communityText('by')}
- {project.owner}
+ {communityRich('by {user}', {
+ user: {project.owner}
+ })}
{project.description ? (
diff --git a/src/community/components/SpaceCard.jsx b/src/community/components/SpaceCard.jsx
index bc742d7be09..a1b8bfd0d6b 100644
--- a/src/community/components/SpaceCard.jsx
+++ b/src/community/components/SpaceCard.jsx
@@ -18,7 +18,7 @@ const spaceFollowerCount = space => (
);
const SpaceCard = ({space, to, onClick}) => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const Icon = KIND_ICONS[space.kind] || Layers3;
const projects = space.projects || [];
const thumbnailUrl = space.thumbnailUrl || (projects.find(project => project.thumbUrl) || {}).thumbUrl;
@@ -46,8 +46,9 @@ const SpaceCard = ({space, to, onClick}) => {
{space.description || communityText('No description yet.')}
{space.owner ? (
- {communityText('by ')}
- {space.owner}
+ {communityRich('by {user}', {
+ user: {space.owner}
+ })}
) : null}
diff --git a/src/community/components/SpaceProjectPicker.jsx b/src/community/components/SpaceProjectPicker.jsx
index 1c26caa1b25..e2f1bd448c9 100644
--- a/src/community/components/SpaceProjectPicker.jsx
+++ b/src/community/components/SpaceProjectPicker.jsx
@@ -24,7 +24,7 @@ const projectIdsForSpace = space => new Set([
]);
const SpaceProjectPicker = ({space, onAdded}) => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const {user, login} = useUser();
const [open, setOpen] = useState(false);
const [tab, setTab] = useState('mine');
@@ -230,7 +230,9 @@ const SpaceProjectPicker = ({space, onAdded}) => {
{project.title}
- {communityText('by')} {project.owner}
+ {communityRich('by {user}', {
+ user: {project.owner}
+ })}
{project.visibility === 'unlisted' ? {communityText('Unlisted')} : null}
{
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const location = useLocation();
const returnTo = `${location.pathname}${location.search}${location.hash}`;
return (
@@ -25,8 +25,7 @@ const ThemeCard = ({returnLabel = 'Back', theme}) => {
{theme.name}
- {communityText('by ')}
- {theme.owner}
+ {communityRich('by {user}', {user: {theme.owner} })}
diff --git a/src/community/components/TransactionHistory.jsx b/src/community/components/TransactionHistory.jsx
index 917ce9ad222..bad4c263522 100644
--- a/src/community/components/TransactionHistory.jsx
+++ b/src/community/components/TransactionHistory.jsx
@@ -16,6 +16,7 @@ const PAGE_SIZE = 25;
const DAY_MS = 24 * 60 * 60 * 1000;
const dayStart = time => {
+ if (!(time > 0)) return 0;
const date = new Date(time);
date.setHours(0, 0, 0, 0);
return date.getTime();
@@ -72,6 +73,7 @@ const TransactionHistory = ({transactions}) => {
const today = dayStart(Date.now());
const yesterday = dayStart(today - (DAY_MS / 2));
const dayLabel = start => {
+ if (!start) return communityText('Date unknown');
if (start === today) return communityText('Today');
if (start === yesterday) return communityText('Yesterday');
const sameYear = new Date(start).getFullYear() === new Date(today).getFullYear();
@@ -134,9 +136,11 @@ const TransactionHistory = ({transactions}) => {
{' · '}
) : null}
-
- {clockText(transaction.time)}
-
+ {transaction.time > 0 ? (
+
+ {clockText(transaction.time)}
+
+ ) : null}
diff --git a/src/community/format.js b/src/community/format.js
index fc0d2c56b3f..0bc6ddd8d3f 100644
--- a/src/community/format.js
+++ b/src/community/format.js
@@ -24,6 +24,12 @@ const timeAgo = ms => {
return `${Math.floor(days / 365)}y`;
};
+const timeAgoText = ms => {
+ const relative = timeAgo(ms);
+ if (!relative || relative === 'just now' || getCommunityLocale() !== 'en') return relative;
+ return formatCommunityMessage('{value1} ago', {value1: relative});
+};
+
const sameUser = (a, b) => Boolean(a && b) && a.toLowerCase() === b.toLowerCase();
const safeDate = value => {
@@ -88,4 +94,6 @@ const formatCountdown = ms => {
return restHours ? `${days}d ${restHours}h` : `${days}d`;
};
-export {timeAgo, sameUser, formatBytes, formatCountdown, formatDate, formatDateTime, formatPlaytime, safeDate};
+export {
+ timeAgo, timeAgoText, sameUser, formatBytes, formatCountdown, formatDate, formatDateTime, formatPlaytime, safeDate
+};
diff --git a/src/community/i18n.jsx b/src/community/i18n.jsx
index af90f9e6808..2b6cfb80bc9 100644
--- a/src/community/i18n.jsx
+++ b/src/community/i18n.jsx
@@ -51,9 +51,34 @@ export const createTranslator = (locale, messages) => {
}
};
};
+const RICH_MARK = '\u0001';
+const RICH_PART = new RegExp(`${RICH_MARK}(\\w+)${RICH_MARK}`);
+
+export const createRichTranslator = translate => (key, values = {}) => {
+ const plain = {};
+ const elements = {};
+ Object.entries(values).forEach(([name, value]) => {
+ if (React.isValidElement(value)) {
+ plain[name] = `${RICH_MARK}${name}${RICH_MARK}`;
+ elements[name] = value;
+ } else {
+ plain[name] = value;
+ }
+ });
+ return String(translate(key, plain)).split(RICH_PART)
+ .map((part, index) => (index % 2 ?
+ {elements[part]} :
+ part));
+};
+
const defaultTranslate = createTranslator('en', english);
const CommunityI18nContext = createContext({
- locale: 'en', preference: 'auto', setPreference: () => {}, t: defaultTranslate, text: defaultTranslate
+ locale: 'en',
+ preference: 'auto',
+ setPreference: () => {},
+ t: defaultTranslate,
+ text: defaultTranslate,
+ rich: createRichTranslator(defaultTranslate)
});
export const CommunityIntlProvider = ({children}) => {
@@ -118,6 +143,7 @@ export const CommunityIntlProvider = ({children}) => {
setPreference,
t: translate,
text: translate,
+ rich: createRichTranslator(translate),
loading: requested !== active.locale && !loadError,
loadError,
retry: () => setAttempt(n => n + 1)
diff --git a/src/community/pages/Admin.jsx b/src/community/pages/Admin.jsx
index 54b034bed8d..7a5bbe3dcc2 100644
--- a/src/community/pages/Admin.jsx
+++ b/src/community/pages/Admin.jsx
@@ -286,7 +286,7 @@ const Admin = () => {
{active === 'users' ? (
) : null}
diff --git a/src/community/pages/Challenge.jsx b/src/community/pages/Challenge.jsx
index 3be6411e382..23ece849475 100644
--- a/src/community/pages/Challenge.jsx
+++ b/src/community/pages/Challenge.jsx
@@ -1,4 +1,4 @@
-import {getCommunityLocale} from '../locale.js';
+import {formatCommunityMessage, getCommunityLocale} from '../locale.js';
import {useCommunityIntl as useCommunityText} from '../i18n.jsx';
/* eslint-disable max-len */
import React, {useEffect, useRef, useState} from 'react';
@@ -48,7 +48,7 @@ const timestamp = value => {
const dateTime = value => {
const parsed = timestamp(value);
- return parsed ? new Date(parsed).toLocaleString(getCommunityLocale(), {dateStyle: 'medium', timeStyle: 'short'}) : 'Not set';
+ return parsed ? new Date(parsed).toLocaleString(getCommunityLocale(), {dateStyle: 'medium', timeStyle: 'short'}) : formatCommunityMessage('Not set');
};
export const challengePhase = (space, now) => {
@@ -137,6 +137,20 @@ export const nextUnscoredEntry = (projects, currentId) => {
const STAR_VALUES = [1, 2, 3, 4, 5];
+const RADIO_STEPS = {ArrowRight: 1, ArrowUp: 1, ArrowLeft: -1, ArrowDown: -1};
+
+const radioKeyTarget = (event, index, count) => {
+ let next = null;
+ if (event.key in RADIO_STEPS) next = Math.max(0, Math.min(count - 1, index + RADIO_STEPS[event.key]));
+ else if (event.key === 'Home') next = 0;
+ else if (event.key === 'End') next = count - 1;
+ if (next === null) return null;
+ event.preventDefault();
+ const button = event.currentTarget.parentElement.children[next];
+ if (button) button.focus();
+ return next;
+};
+
const StarRating = ({className, average, count, myVote, revealed, interactive, busy, note, title, onRate}) => {
const {text: communityText} = useCommunityText();
const [preview, setPreview] = useState(0);
@@ -156,12 +170,14 @@ const StarRating = ({className, average, count, myVote, revealed, interactive, b
{interactive ? (
setPreview(0)}>
- {STAR_VALUES.map(value => (
+ {STAR_VALUES.map((value, index) => (
radioKeyTarget(event, index, STAR_VALUES.length)}
aria-label={communityText('Rate {value1} out of 5', {value1: value})}
disabled={busy}
onMouseEnter={() => setPreview(value)}
@@ -187,7 +203,7 @@ const StarRating = ({className, average, count, myVote, revealed, interactive, b
};
const WinnerBanner = ({challengeId, winner, audienceJudged}) => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const [burst, replay] = useCelebration(`challenge:${challengeId}:${winner.id}`);
return (
@@ -200,7 +216,7 @@ const WinnerBanner = ({challengeId, winner, audienceJudged}) => {
{winner.title}
-
{communityText('Winning entry by')}{' '}{winner.owner}
+
{communityRich('Winning entry by {user}', {user: {winner.owner} })}
{audienceJudged ? (
if (currentContext.current === actionContext) await load();
} catch (requestError) {
if (currentContext.current === actionContext) {
- onError(requestError.message || 'Could not save your rating.');
+ onError(requestError.message || communityText('Could not save your rating.'));
}
} finally {
releaseVote();
@@ -293,6 +309,11 @@ const ScoreScale = ({label, value, disabled, onChange}) => (
type="button"
role="radio"
aria-checked={Number(value) === step}
+ tabIndex={Number(value) === step || (!(Number(value) >= 1) && step === 1) ? 0 : -1}
+ onKeyDown={event => {
+ const next = radioKeyTarget(event, step - 1, 10);
+ if (next !== null) onChange(next + 1);
+ }}
className={Number(value) === step ? styles.scaleActive : ''}
disabled={disabled}
onClick={() => onChange(step)}
@@ -301,11 +322,10 @@ const ScoreScale = ({label, value, disabled, onChange}) => (
);
-const JudgingWorkspace = ({challengeId, projects, criteria, load}) => {
- const {text: communityText} = useCommunityText();
+const JudgingWorkspace = ({challengeId, projects, criteria, drafts, setDrafts, load}) => {
+ const {text: communityText, rich: communityRich} = useCommunityText();
const firstUnscored = () => (nextUnscoredEntry(projects, '') || projects[0] || {}).id || '';
const [selectedId, setSelectedId] = useState(firstUnscored);
- const [drafts, setDrafts] = useState({});
const [saving, setSaving] = useState(false);
const [message, setMessage] = useState({text: '', error: false});
const saveInFlight = useRef(false);
@@ -315,7 +335,6 @@ const JudgingWorkspace = ({challengeId, projects, criteria, load}) => {
useEffect(() => {
setSelectedId(firstUnscored());
- setDrafts({});
setSaving(false);
setMessage({text: '', error: false});
}, [challengeId]);
@@ -357,18 +376,18 @@ const JudgingWorkspace = ({challengeId, projects, criteria, load}) => {
feedback: draft.feedback.trim()
});
if (currentId.current !== actionId) return;
+ await load().catch(() => {});
+ if (currentId.current !== actionId) return;
setDrafts(current => {
const next = {...current};
delete next[project.id];
return next;
});
- await load();
- if (currentId.current !== actionId) return;
const next = advance ? nextUnscoredEntry(projects, project.id) : null;
if (next) select(next.id);
setMessage({text: next ? communityText('Saved {value1}.', {value1: project.title}) : communityText('Score saved.'), error: false});
} catch (error) {
- if (currentId.current === actionId) setMessage({text: error.message || 'Could not save this score.', error: true});
+ if (currentId.current === actionId) setMessage({text: error.message || communityText('Could not save this score.'), error: true});
} finally {
releaseSave();
if (currentId.current === actionId) setSaving(false);
@@ -413,7 +432,7 @@ const JudgingWorkspace = ({challengeId, projects, criteria, load}) => {
{selected.title}
- {communityText('by')}{' '}{selected.owner}
+ {communityRich('by {user}', {user: {selected.owner} })}
{communityText('Play in new tab')}
@@ -522,7 +541,7 @@ const resultScore = (project, audienceJudged, communityText) => {
};
const Results = ({projects, audienceJudged}) => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const podium = projects.filter(project => project.place && project.place <= 3);
const rest = projects.filter(project => !project.place || project.place > 3);
return (
@@ -537,7 +556,7 @@ const Results = ({projects, audienceJudged}) => {
{`#${project.place}`}
{project.title}
- {communityText('by')}{' '}{project.owner}
+ {communityRich('by {user}', {user: {project.owner} })}
{resultScore(project, audienceJudged, communityText)}
@@ -552,7 +571,7 @@ const Results = ({projects, audienceJudged}) => {
-
{project.title}{communityText('by')}{' '}{project.owner}
+
{project.title}{communityRich('by {user}', {user: {project.owner} })}
{resultScore(project, audienceJudged, communityText)}
))}
@@ -563,15 +582,17 @@ const Results = ({projects, audienceJudged}) => {
};
const Challenge = ({id, space, user, login, load}) => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const [tab, setTab] = useState(space.phase === 'results' ? 'results' : 'overview');
const [error, setError] = useState('');
const [actionBusy, setActionBusy] = useState('');
+ const [judgeDrafts, setJudgeDrafts] = useState({});
const [now, setNow] = useState(Date.now());
const actionInFlight = useRef(new Set());
const currentId = useRef(id);
currentId.current = id;
- const currentPhase = challengePhase(space, now);
+ const clockPhase = challengePhase(space, now);
+ const currentPhase = space.phase || clockPhase;
const audienceJudged = challengeAudienceJudged(space);
const phase = (audienceJudged ? AUDIENCE_PHASES : PHASES)[currentPhase] || PHASES.upcoming;
const liveSpace = {...space, phase: currentPhase};
@@ -580,6 +601,9 @@ const Challenge = ({id, space, user, login, load}) => {
const winner = currentPhase === 'results' ? challengeWinner(space) : null;
const winnerBadges = winner && winner.owner ? {[String(winner.owner).toLowerCase()]: communityText('Winner')} : null;
const commentSource = useSpaceCommentSource(id);
+ const viewerKey = user && user.username ? user.username.toLowerCase() : '';
+ const hasSubmitted = Boolean(viewerKey) && (space.projects || []).some(project => String(project.owner || '').toLowerCase() === viewerKey);
+ const judgeQueue = (space.projects || []).filter(project => !viewerKey || String(project.owner || '').toLowerCase() !== viewerKey);
useEffect(() => {
const timer = setInterval(() => setNow(Date.now()), 30000);
@@ -589,8 +613,26 @@ const Challenge = ({id, space, user, login, load}) => {
useEffect(() => {
setActionBusy('');
setError('');
+ setJudgeDrafts({});
}, [id]);
+ const phaseCheck = useRef({phase: '', attempts: 0, at: 0});
+ useEffect(() => {
+ if (!space.phase || clockPhase === space.phase) return;
+ const check = phaseCheck.current;
+ if (check.phase !== clockPhase) {
+ phaseCheck.current = {phase: clockPhase, attempts: 0, at: 0};
+ } else if (Date.now() - check.at < Math.min(30000 * (2 ** check.attempts), 600000)) {
+ return;
+ }
+ phaseCheck.current = {
+ phase: clockPhase,
+ attempts: phaseCheck.current.attempts + 1,
+ at: Date.now()
+ };
+ load().catch(() => {});
+ }, [clockPhase, space.phase, now, load]);
+
const respondToJudgeInvite = async accepted => {
const actionId = id;
if (actionInFlight.current.has(actionId)) return;
@@ -605,7 +647,7 @@ const Challenge = ({id, space, user, login, load}) => {
if (currentId.current === actionId) await load();
} catch (requestError) {
if (currentId.current === actionId) {
- setError(requestError.message || 'Could not respond to the invitation.');
+ setError(requestError.message || communityText('Could not respond to the invitation.'));
}
} finally {
releaseAction();
@@ -618,6 +660,10 @@ const Challenge = ({id, space, user, login, load}) => {
login();
return;
}
+ if (space.joined && hasSubmitted) {
+ setError(communityText('Remove your submission before leaving the challenge.'));
+ return;
+ }
const actionId = id;
if (actionInFlight.current.has(actionId)) return;
const releaseAction = () => {
@@ -632,7 +678,7 @@ const Challenge = ({id, space, user, login, load}) => {
if (currentId.current === actionId) await load();
} catch (requestError) {
if (currentId.current === actionId) {
- setError(requestError.message || 'Could not update your participation.');
+ setError(requestError.message || communityText('Could not update your participation.'));
}
} finally {
releaseAction();
@@ -658,7 +704,7 @@ const Challenge = ({id, space, user, login, load}) => {
{space.owner} {' '}{communityText('invited you to judge this challenge.')}>}
+ title={communityRich('{user} invited you to judge this challenge.', {user: {space.owner} })}
action={(
respondToJudgeInvite(true)}>{communityText('Accept')}
@@ -691,7 +737,7 @@ const Challenge = ({id, space, user, login, load}) => {
{winner ? : null}
-
+
{error ? {error} : null}
{tab === 'overview' ? (
@@ -786,7 +832,7 @@ const Challenge = ({id, space, user, login, load}) => {
{tab === 'judging' ? (
- {space.projects.length ? : {communityText('Submissions will appear here after the deadline.')} }
+ {judgeQueue.length ? : {space.projects.length ? communityText('The only entry is your own, and judges cannot score their own entry.') : communityText('Submissions will appear here after the deadline.')} }
) : null}
diff --git a/src/community/pages/ManageSpace.jsx b/src/community/pages/ManageSpace.jsx
index 606593a0ace..25ebe25eea2 100644
--- a/src/community/pages/ManageSpace.jsx
+++ b/src/community/pages/ManageSpace.jsx
@@ -1,3 +1,4 @@
+import {formatCommunityMessage} from '../locale.js';
import {useCommunityIntl as useCommunityText} from '../i18n.jsx';
/* eslint-disable max-len */
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
@@ -64,30 +65,32 @@ const spaceConfirmationDetails = (confirmation, space) => {
if (!confirmation || !space) return null;
if (confirmation.type === 'remove-project') {
return {
- title: 'Remove project?',
- body: `Remove ${confirmation.project.title} from ${space.title}? The project itself will not be deleted.`,
- action: 'Remove project'
+ title: formatCommunityMessage('Remove project?'),
+ body: formatCommunityMessage('Remove {project} from {space}? The project itself will not be deleted.', {project: confirmation.project.title, space: space.title}),
+ action: formatCommunityMessage('Remove project')
};
}
if (confirmation.type === 'publish-results') {
return {
- title: 'Publish final results?',
- body: 'This reveals the final rankings to participants. You cannot hide the results again.',
- action: 'Publish results'
+ title: formatCommunityMessage('Publish final results?'),
+ body: Number(space.judgingEndsAt) > Date.now() ?
+ formatCommunityMessage('Voting and judging are still open. Publishing now closes them and reveals the final rankings to participants. You cannot hide the results again.') :
+ formatCommunityMessage('This reveals the final rankings to participants. You cannot hide the results again.'),
+ action: formatCommunityMessage('Publish results')
};
}
if (confirmation.type === 'delete-space') {
return {
- title: `Delete ${space.title}?`,
- body: 'This permanently deletes the space. Its projects will not be deleted.',
- action: 'Delete space'
+ title: formatCommunityMessage('Delete {space}?', {space: space.title}),
+ body: formatCommunityMessage('This permanently deletes the space. Its projects will not be deleted.'),
+ action: formatCommunityMessage('Delete space')
};
}
if (confirmation.type === 'transfer-space') {
return {
- title: 'Transfer space?',
- body: `Transfer "${space.title}" to @${confirmation.owner}? Its group assignment will be cleared and your access may change.`,
- action: `Transfer to @${confirmation.owner}`
+ title: formatCommunityMessage('Transfer space?'),
+ body: formatCommunityMessage('Transfer "{space}" to @{owner}? Its group assignment will be cleared and your access may change.', {space: space.title, owner: confirmation.owner}),
+ action: formatCommunityMessage('Transfer to @{owner}', {owner: confirmation.owner})
};
}
return null;
@@ -144,7 +147,7 @@ const buildSpacePatch = (form, section, criteriaLocked) => {
};
const ManageSpace = () => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const {id} = useParams();
const navigate = useNavigate();
const [searchParams, setSearchParams] = useSearchParams();
@@ -729,7 +732,7 @@ const ManageSpace = () => {
{space.resultsPublishedAt ? communityText('Published {value1}', {value1: formatDateTime(space.resultsPublishedAt, 'date unavailable')}) : audienceMode ? communityText('{value1} of {value2} entries rated', {value1: space.projects.filter(project => project.audienceVoteCount > 0).length, value2: space.projects.length}) : communityText('{value1} of {value2} entries scored', {value1: space.projects.filter(project => project.judgeScoreCount > 0).length, value2: space.projects.length})} {!space.resultsPublishedAt ? Date.now()} title={Number(space.endsAt) > Date.now() ? communityText('You can publish results after submissions close.') : null} onClick={publishResults}
>{communityText('Publish results')} : {communityText('Results are live')} }
@@ -769,7 +772,7 @@ const ManageSpace = () => {
actions={ }
/>
- {space.projects.map(project =>
{project.title} {communityText('by ')}{project.owner} {space.kind === 'challenge' && (project.scoreBreakdown || []).length ?
{project.scoreBreakdown.map(score => {score.judge} {score.feedback || communityText('Score submitted')} )}
: null}
{communityText('View')} removeProject(project)}> {communityText('Remove')} )}
+ {space.projects.map(project =>
{project.title} {communityRich('by {user}', {user: {project.owner} })} {space.kind === 'challenge' && (project.scoreBreakdown || []).length ?
{project.scoreBreakdown.map(score => {score.judge} {score.feedback || communityText('Score submitted')} )}
: null}
{communityText('View')} removeProject(project)}> {communityText('Remove')} )}
{!space.projects.length ?
{communityText('No projects have been added yet.')}
: null}
diff --git a/src/community/pages/Profile.jsx b/src/community/pages/Profile.jsx
index 6998aeb1fe0..badc4e4fecd 100644
--- a/src/community/pages/Profile.jsx
+++ b/src/community/pages/Profile.jsx
@@ -35,7 +35,8 @@ import UserStatus from '../components/UserStatus.jsx';
import useLatest from '../use-latest.js';
import setPageMeta from '../page-meta.js';
import scrollToAnchorWithRetry from '../scroll-to-anchor.js';
-import {formatPlaytime, safeDate, timeAgo} from '../format';
+import {formatPlaytime, safeDate, timeAgo, timeAgoText} from '../format';
+import {formatCommunityMessage} from '../locale.js';
import styles from './Profile.module.css';
const FOLLOWER_STRIP_COUNT = 16;
@@ -113,14 +114,13 @@ const joinYear = ms => {
const lastPlayedLabel = value => {
const timestamp = Number(value);
if (!(timestamp > 0)) return '';
- const relative = timeAgo(timestamp);
- return relative === 'just now' ? 'last played just now' : `last played ${relative} ago`;
+ return formatCommunityMessage('Last played {value1}', {value1: timeAgoText(timestamp)});
};
const scrollToCommentAnchor = id => scrollToAnchorWithRetry(id);
const Profile = () => {
- const {text: communityText} = useCommunityText();
+ const {text: communityText, rich: communityRich} = useCommunityText();
const {name} = useParams();
const location = useLocation();
const navigate = useNavigate();
@@ -245,11 +245,13 @@ const Profile = () => {
}, [name, viewerName, load]);
useEffect(() => {
- if (!user || !user.isAdmin) {
- setAdminProjects([]);
- setAdminUser(null);
- return () => {};
- }
+ setAdminProjects([]);
+ setAdminUser(null);
+ setAdminLevel('good');
+ setAdminReason('');
+ setAdminMessage('');
+ setAdminNote(null);
+ if (!user || !user.isAdmin) return () => {};
let active = true;
api.admin.getUser(name)
.then(data => {
@@ -268,26 +270,30 @@ const Profile = () => {
};
}, [name, user]);
- const refreshAdminUser = useCallback(async () => {
+ const refreshAdminUser = useCallback(async context => {
const data = await api.admin.getUser(name);
+ if (actionContextRef.current !== context) return;
setAdminUser(data);
- setMwUser(current => (current ? {...current, banned: data.banned} : current));
+ setMwUser(current => (current ? {...current, banned: data.banned, commentsOff: data.commentsOff} : current));
setAdminLevel((data.standing && data.standing.level) || 'good');
setAdminProjects(data.projects || []);
}, [name]);
const runAdminAction = useCallback(async (key, action, success) => {
if (adminBusy) return;
+ const context = actionContextRef.current;
setAdminBusy(key);
setAdminNote(null);
try {
await action();
- await refreshAdminUser();
- setAdminNote({text: success, error: false});
+ await refreshAdminUser(context);
+ if (actionContextRef.current === context) setAdminNote({text: success, error: false});
} catch (requestError) {
- setAdminNote({text: requestError.message || communityText('Moderation action failed.'), error: true});
+ if (actionContextRef.current === context) {
+ setAdminNote({text: requestError.message || communityText('Moderation action failed.'), error: true});
+ }
} finally {
- setAdminBusy('');
+ if (actionContextRef.current === context) setAdminBusy('');
}
}, [adminBusy, communityText, refreshAdminUser]);
@@ -388,7 +394,9 @@ const Profile = () => {
setActionError(null);
try {
await api.updateProfile({commentsOff: !commentsOff});
- if (actionContextRef.current === context) load();
+ if (actionContextRef.current === context) {
+ setMwUser(current => (current ? {...current, commentsOff: !commentsOff} : current));
+ }
} catch (e) {
if (actionContextRef.current === context) {
setActionError(e.message || 'Could not update comments.');
@@ -578,7 +586,9 @@ const Profile = () => {
className={styles.recentActivityTitle}
title={item.title}
>{item.title}
- {communityText('by')} {item.owner}
+ {communityRich('by {user}', {
+ user: {item.owner}
+ })}
{item.duration > 0 ?
{formatPlaytime(item.duration, false)} : null}
diff --git a/src/community/pages/Project.jsx b/src/community/pages/Project.jsx
index 5020ae05a19..4bc367e39bf 100644
--- a/src/community/pages/Project.jsx
+++ b/src/community/pages/Project.jsx
@@ -249,7 +249,7 @@ const Project = () => {
useEffect(() => {
if (project) setTitle(project.title || '');
- }, [project]);
+ }, [project?.id, project?.title]);
useEffect(() => {
if (!project) return;
@@ -373,7 +373,7 @@ const Project = () => {
if (actionContextRef.current !== context) return;
setActionError(null);
setProject(data.project);
- setProjectLoadContext(context);
+ setProjectLoadContext(id);
} catch (e) {
if (actionContextRef.current === context) {
setActionError(e.message || 'Could not update visibility.');
@@ -399,7 +399,7 @@ const Project = () => {
const fresh = await buyProject(id);
if (actionContextRef.current !== context) return;
setProject(fresh);
- setProjectLoadContext(context);
+ setProjectLoadContext(id);
setConfirmBuy(false);
} catch (e) {
if (actionContextRef.current !== context) return;
@@ -421,7 +421,7 @@ const Project = () => {
if (actionContextRef.current !== context) return;
setActionError(null);
setProject(data.project);
- setProjectLoadContext(context);
+ setProjectLoadContext(id);
} catch (e) {
if (actionContextRef.current === context) {
setActionError(e.message || 'Could not update comments.');
@@ -450,12 +450,14 @@ const Project = () => {
};
const toggleLibrary = async () => {
+ if (!project) return;
const context = actionContextRef.current;
const actionKey = beginAction('library');
if (!actionKey) return;
setSavingLibrary(true);
try {
let result;
+ const nextSaved = !project.saved;
if (project.saved) {
result = await api.unsaveProject(id);
} else {
@@ -463,11 +465,12 @@ const Project = () => {
}
if (actionContextRef.current !== context) return;
setProject(current => {
- const wasSaved = Boolean(current.saved);
- const fallbackCount = Math.max(0, (Number(current.saveCount) || 0) + (wasSaved ? -1 : 1));
+ if (!current) return current;
+ const count = Number(current.saveCount) || 0;
+ const fallbackCount = Boolean(current.saved) === nextSaved ? count : Math.max(0, count + (nextSaved ? 1 : -1));
return {
...current,
- saved: !wasSaved,
+ saved: nextSaved,
saveCount: Number.isFinite(result.saves) ? result.saves : fallbackCount
};
});
diff --git a/src/community/pages/Space.jsx b/src/community/pages/Space.jsx
index 681d7ec228a..a733c6edfe3 100644
--- a/src/community/pages/Space.jsx
+++ b/src/community/pages/Space.jsx
@@ -66,7 +66,7 @@ const loadMissingProjects = async (space, known = new Map()) => {
byId.set(project.id, project);
known.set(project.id, project);
});
- return {...normalized, projects: ids.map(projectId => byId.get(projectId)).filter(Boolean)};
+ return {...normalized, projects: [...projects, ...missing.map(projectId => byId.get(projectId)).filter(Boolean)]};
};
// What following or unfollowing changes, applied before the server answers.
@@ -94,6 +94,7 @@ const Space = () => {
const [followBusy, setFollowBusy] = useState(false);
const followLocks = useRef(new Set());
const knownProjects = useRef(new Map());
+ const shownContext = useRef('');
const currentContext = useRef(loadContext);
currentContext.current = loadContext;
const beginLoad = useLatest();
@@ -110,13 +111,16 @@ const Space = () => {
.then(fresh(loadedSpace => {
setSpace(loadedSpace);
setSpaceLoadContext(loadContext);
+ shownContext.current = loadContext;
setFailed('');
setFailedLoadContext('');
return loadedSpace;
}))
.catch(fresh(e => {
- setFailed(spaceLoadMessage(e));
- setFailedLoadContext(loadContext);
+ if (shownContext.current !== loadContext) {
+ setFailed(spaceLoadMessage(e));
+ setFailedLoadContext(loadContext);
+ }
throw e;
}));
}, [beginLoad, id, loadContext]);
diff --git a/src/community/pages/Wallet.jsx b/src/community/pages/Wallet.jsx
index e90c462ed9e..8e00ce80a75 100644
--- a/src/community/pages/Wallet.jsx
+++ b/src/community/pages/Wallet.jsx
@@ -38,7 +38,9 @@ const Wallet = () => {
const [walletError, setWalletError] = useState('');
const [walletAttempt, setWalletAttempt] = useState(0);
const [allowing, setAllowing] = useState(false);
- const [dailyWait, setDailyWait] = useState(null);
+ const [dailyReadyAt, setDailyReadyAt] = useState(0);
+ const [now, setNow] = useState(Date.now());
+ const walletViewer = useRef('');
const [claiming, setClaiming] = useState(false);
const [claimMsg, setClaimMsg] = useState('');
const [purchases, setPurchases] = useState(null);
@@ -48,11 +50,11 @@ const Wallet = () => {
useEffect(() => {
setClaimMsg('');
setClaiming(false);
- setDailyWait(null);
+ setDailyReadyAt(0);
if (!viewerName) return () => {};
let stale = false;
getDailyWait()
- .then(wait => !stale && setDailyWait(wait))
+ .then(wait => !stale && setDailyReadyAt(wait > 0 ? Date.now() + wait : 0))
.catch(() => {});
return () => {
stale = true;
@@ -66,7 +68,8 @@ const Wallet = () => {
return () => {};
}
let stale = false;
- setWallet(null);
+ if (walletViewer.current !== viewerName) setWallet(null);
+ walletViewer.current = viewerName;
setWalletError('');
getWallet()
.then(data => !stale && setWallet(data))
@@ -76,6 +79,13 @@ const Wallet = () => {
};
}, [walletAttempt, viewerName]);
+ useEffect(() => {
+ if (dailyReadyAt <= Date.now()) return () => {};
+ setNow(Date.now());
+ const timer = setInterval(() => setNow(Date.now()), 60000);
+ return () => clearInterval(timer);
+ }, [dailyReadyAt]);
+
useEffect(() => {
if (!viewerName) {
setPurchases(null);
@@ -116,6 +126,10 @@ const Wallet = () => {
setAllowing(true);
try {
if (await allowWallet() && viewerRef.current === context) setWalletAttempt(value => value + 1);
+ } catch (e) {
+ if (viewerRef.current === context) {
+ setWalletError(communityText('Could not get permission from Rotur. Try again.'));
+ }
} finally {
if (viewerRef.current === context) setAllowing(false);
}
@@ -131,12 +145,12 @@ const Wallet = () => {
if (viewerRef.current !== context) return;
if (result.claimed) {
setClaimMsg(communityText('Daily credits claimed.'));
- setDailyWait(24 * HOUR_MS);
+ setDailyReadyAt(Date.now() + (24 * HOUR_MS));
setWalletAttempt(value => value + 1);
} else if (result.denied) {
setClaimMsg(communityText('MistWarp needs your permission on Rotur to claim daily credits.'));
} else {
- setDailyWait(result.waitMs);
+ setDailyReadyAt(result.waitMs > 0 ? Date.now() + result.waitMs : 0);
}
} catch (e) {
if (viewerRef.current !== context) return;
@@ -146,6 +160,7 @@ const Wallet = () => {
}
};
+ const dailyWait = dailyReadyAt - now;
const waitHours = dailyWait > 0 ? Math.ceil(dailyWait / HOUR_MS) : 0;
const transactions = wallet && wallet.allowed ?
wallet.transactions.filter(transaction => transaction.mistwarp) :
@@ -164,6 +179,11 @@ const Wallet = () => {
{fmtCredits(wallet.balance).toLocaleString(getCommunityLocale())}
{communityText('credits')}
+ ) : wallet && wallet.hidden ? (
+
+ {/* eslint-disable-next-line max-len */}
+ {communityText('Rotur is not sharing your balance with MistWarp. You can still see it on rotur.dev.')}
+
) : wallet ? (
@@ -245,7 +265,10 @@ const Wallet = () => {
) : (
- {communityText('Show your balance to see them here too.')}
+ {wallet && wallet.hidden ?
+ // eslint-disable-next-line max-len
+ communityText('Rotur is not sharing them with MistWarp. See your full wallet on rotur.dev.') :
+ communityText('Show your balance to see them here too.')}
)
) : null}
diff --git a/src/community/pages/admin/BansSection.jsx b/src/community/pages/admin/BansSection.jsx
index b24bcdd79d4..ba3ec8a5c62 100644
--- a/src/community/pages/admin/BansSection.jsx
+++ b/src/community/pages/admin/BansSection.jsx
@@ -7,7 +7,7 @@ import Avatar from '../../components/Avatar.jsx';
import Button from '../../components/ui/Button.jsx';
import EmptyState from '../../components/ui/EmptyState.jsx';
import SectionHeading from '../../components/ui/SectionHeading.jsx';
-import {timeAgo} from '../../format';
+import {timeAgoText} from '../../format';
import styles from '../Admin.module.css';
import {adminUserPath} from './admin-links.js';
@@ -35,7 +35,7 @@ const BansSection = ({bans, banByName, unban}) => {
{`@${ban.username}`}
- {communityText('Banned by @{value1}{value2}', {value1: ban.by, value2: timeAgo(ban.created) ? ` · ${timeAgo(ban.created)} ago` : ''})}
+ {communityText('Banned by @{value1}{value2}', {value1: ban.by, value2: timeAgoText(ban.created) ? ` · ${timeAgoText(ban.created)}` : ''})}
{ban.reason ? ` · ${ban.reason}` : ''}
diff --git a/src/community/pages/admin/ErrorManager.jsx b/src/community/pages/admin/ErrorManager.jsx
index f4c3b11e848..322df114dee 100644
--- a/src/community/pages/admin/ErrorManager.jsx
+++ b/src/community/pages/admin/ErrorManager.jsx
@@ -9,7 +9,7 @@ import EmptyState from '../../components/ui/EmptyState.jsx';
import Notice from '../../components/ui/Notice.jsx';
import SectionHeading from '../../components/ui/SectionHeading.jsx';
import StatusMessage from '../../components/ui/StatusMessage.jsx';
-import {timeAgo, formatDateTime} from '../../format';
+import {timeAgoText, formatDateTime} from '../../format';
import copyText from '../../copy-text.js';
import styles from '../Admin.module.css';
import AdminActionDialog from './AdminActionDialog.jsx';
@@ -231,7 +231,7 @@ const ErrorManager = () => {
{item.message || communityText('Unknown error')}
- {`${item.kind || 'uncaught'}${item.username ? ` · @${item.username}` : ' · anonymous'}${timeAgo(item.created) ? ` · ${timeAgo(item.created)} ago` : ''}`}
+ {`${item.kind || 'uncaught'}${item.username ? ` · @${item.username}` : ' · anonymous'}${timeAgoText(item.created) ? ` · ${timeAgoText(item.created)}` : ''}`}
{item.url ? (
{item.url}
diff --git a/src/community/pages/admin/ReportsSection.jsx b/src/community/pages/admin/ReportsSection.jsx
index e812b26b020..e2434eb17f6 100644
--- a/src/community/pages/admin/ReportsSection.jsx
+++ b/src/community/pages/admin/ReportsSection.jsx
@@ -8,7 +8,7 @@ import Button from '../../components/ui/Button.jsx';
import EmptyState from '../../components/ui/EmptyState.jsx';
import SectionHeading from '../../components/ui/SectionHeading.jsx';
import StatusMessage from '../../components/ui/StatusMessage.jsx';
-import {timeAgo} from '../../format';
+import {timeAgoText} from '../../format';
import styles from '../Admin.module.css';
import EvidencePanel from './EvidencePanel.jsx';
import {adminUserPath} from './admin-links.js';
@@ -67,7 +67,7 @@ const ReportsSection = ({reports, openCount, replyToSupport, act, warnFromReport
)}
- {communityText('Reported by @{value1}{value2}', {value1: report.reporter, value2: timeAgo(report.created) ? ` · ${timeAgo(report.created)} ago` : ''})}
+ {communityText('Reported by @{value1}{value2}', {value1: report.reporter, value2: timeAgoText(report.created) ? ` · ${timeAgoText(report.created)}` : ''})}
{report.type !== 'support' && report.context ? communityText(' · in {value1}', {value1: report.context}) : ''}
{report.reason}
diff --git a/src/community/pages/admin/StatsOverview.jsx b/src/community/pages/admin/StatsOverview.jsx
index c46a17b1324..ba5a87efb06 100644
--- a/src/community/pages/admin/StatsOverview.jsx
+++ b/src/community/pages/admin/StatsOverview.jsx
@@ -10,7 +10,7 @@ import Button from '../../components/ui/Button.jsx';
import Notice from '../../components/ui/Notice.jsx';
import SectionHeading from '../../components/ui/SectionHeading.jsx';
import StatusMessage from '../../components/ui/StatusMessage.jsx';
-import {timeAgo, formatBytes, formatPlaytime} from '../../format';
+import {timeAgoText, formatBytes, formatPlaytime} from '../../format';
import styles from '../Admin.module.css';
import {buildSeries, num, percent, formatLoadTime} from './admin-format.js';
import StatTile from './StatTile.jsx';
@@ -205,7 +205,7 @@ const StatsOverview = ({view}) => {
icon={Cloud}
data={storage.r2}
detail={storage.r2Configured ? (storage.r2SyncedAt ?
- communityText('{value1} objects · synced {value2} ago', {value1: num(storage.r2.objects), value2: timeAgo(storage.r2SyncedAt)}) :
+ communityText('{value1} objects · synced {value2}', {value1: num(storage.r2.objects), value2: timeAgoText(storage.r2SyncedAt)}) :
communityText('{value1} objects', {value1: num(storage.r2.objects)})) : communityText('Local mode')}
/>
(
{report.subject && report.subject !== report.reporter ?
- communityText('Report on a {value1} by @{value2} about @{value3}', {value1: report.type, value2: report.reporter, value3: report.subject}) :
- communityText('Report on a {value1} by @{value2}', {value1: report.type, value2: report.reporter})}
+ communityText('{value1} report by @{value2} about @{value3}', {value1: reportTypeLabel(report.type, communityText), value2: report.reporter, value3: report.subject}) :
+ communityText('{value1} report by @{value2}', {value1: reportTypeLabel(report.type, communityText), value2: report.reporter})}
{' · '}{formatDateTime(report.created)}
- {report.resolved && report.action ? ` · ${report.action.replace(/_/g, ' ')}${report.resolvedBy ? ` by @${report.resolvedBy}` : ''}` : ''}
+ {report.resolved && report.action ? ` · ${report.resolvedBy ?
+ communityText('Closed as {value1} by @{value2}', {value1: report.action.replace(/_/g, ' '), value2: report.resolvedBy}) :
+ communityText('Closed as {value1}', {value1: report.action.replace(/_/g, ' ')})}` : ''}
{report.reason ? {report.reason} : null}
{report.snapshot ? {report.snapshot} : null}
@@ -86,7 +89,7 @@ ReportList.propTypes = {
communityText: PropTypes.func.isRequired
};
-const UserDetailCard = ({username, onBack}) => {
+const UserDetailCard = ({username, onBack, onChanged}) => {
const {text: communityText} = useCommunityText();
const [data, setData] = useState(null);
const [error, setError] = useState('');
@@ -100,7 +103,9 @@ const UserDetailCard = ({username, onBack}) => {
const [dialog, setDialog] = useState(null);
const [dialogBusy, setDialogBusy] = useState(false);
const [dialogError, setDialogError] = useState('');
+ const [busyAction, setBusyAction] = useState('');
const deleteInFlight = useRef(false);
+ const actionInFlight = useRef(false);
const currentUsername = useRef(username);
currentUsername.current = username;
@@ -114,6 +119,8 @@ const UserDetailCard = ({username, onBack}) => {
setDialog(null);
setDialogError('');
setDialogBusy(false);
+ setBusyAction('');
+ actionInFlight.current = false;
api.admin.getUser(username)
.then(result => {
if (!active) return;
@@ -126,51 +133,86 @@ const UserDetailCard = ({username, onBack}) => {
.catch(e => {
if (!active) return;
setData(null);
- setError(e.message || 'Could not load that user.');
+ setError(e.message || communityText('Could not load that user.'));
});
return () => {
active = false;
};
}, [username]);
- const refresh = () => {
+ const refresh = actionUser => {
if (!data) return;
- const actionUsername = data.username;
- api.admin.getUser(actionUsername)
+ api.admin.getUser(data.username)
.then(result => {
- if (currentUsername.current === actionUsername) setData(result);
+ if (currentUsername.current === actionUser) setData(result);
})
.catch(() => {});
};
- const run = async (action, success) => {
+ const run = async (key, action, success) => {
+ if (actionInFlight.current) return false;
+ const actionUser = currentUsername.current;
+ const releaseAction = () => {
+ actionInFlight.current = false;
+ };
+ actionInFlight.current = true;
+ setBusyAction(key);
setError('');
setNote('');
try {
await action();
+ if (currentUsername.current !== actionUser) return false;
if (success) setNote(success);
- refresh();
+ refresh(actionUser);
+ if (onChanged) onChanged();
+ return true;
} catch (e) {
- setError(e.message || 'Action failed.');
+ if (currentUsername.current === actionUser) setError(e.message || communityText('Action failed.'));
+ return false;
+ } finally {
+ if (currentUsername.current === actionUser) {
+ releaseAction();
+ setBusyAction('');
+ }
}
};
- const applyStanding = () => run(
- () => api.admin.setStanding(data.username, level, reasonText.trim()),
- communityText('Standing updated.')
- );
+ const submitStanding = async () => {
+ const done = await run(
+ 'standing',
+ () => api.admin.setStanding(data.username, level, reasonText.trim()),
+ communityText('Standing updated.')
+ );
+ if (done) setReasonText('');
+ return done;
+ };
+
+ const applyStanding = () => {
+ if (level !== 'suspended' && level !== 'banned') return submitStanding();
+ setDialogError('');
+ setDialog({
+ kind: 'standing',
+ title: level === 'banned' ? communityText('Ban @{value1}?', {value1: data.username}) : communityText('Suspend @{value1}?', {value1: data.username}),
+ description: level === 'banned' ?
+ communityText('They will be banned from MistWarp and Rotur and get a notification with your reason.') :
+ communityText('They will be suspended and get a notification with your reason.'),
+ action: level === 'banned' ? communityText('Ban user') : communityText('Suspend user'),
+ danger: true,
+ icon: Gavel
+ });
+ };
const sendMessage = async () => {
if (!message.trim()) return;
- await run(() => api.admin.messageUser(data.username, message.trim()), communityText('Message sent.'));
- setMessage('');
+ const done = await run('message', () => api.admin.messageUser(data.username, message.trim()), communityText('Message sent.'));
+ if (done) setMessage('');
};
- const toggleComments = () => run(() => api.admin.updateUserProfile(data.username, {commentsOff: !data.commentsOff}));
+ const toggleComments = () => run('comments', () => api.admin.updateUserProfile(data.username, {commentsOff: !data.commentsOff}));
const saveNote = async () => {
setNoteBusy(true);
- await run(() => api.admin.setUserNote(data.username, adminNote.trim()), communityText('Note saved.'));
+ await run('note', () => api.admin.setUserNote(data.username, adminNote.trim()), communityText('Note saved.'));
setNoteBusy(false);
};
@@ -178,16 +220,17 @@ const UserDetailCard = ({username, onBack}) => {
if (navigator.clipboard && data.userId) navigator.clipboard.writeText(data.userId).catch(() => {});
};
- const unshareProject = pid => run(() => api.unpublish(pid), communityText('Project unshared.'));
+ const unshareProject = pid => run(`unshare:${pid}`, () => api.unpublish(pid), communityText('Project unshared.'));
const deleteProject = pid => {
if (deleteInFlight.current) return;
const project = (data.projects || []).find(item => item.id === pid);
setDialogError('');
setDialog({
+ kind: 'delete',
id: pid,
title: communityText('Delete project?'),
- description: communityText('Delete {value1} permanently?', {value1: project ? project.title : communityText('this project')}),
+ description: communityText('Move {value1} to its owner\'s trash? They can restore it from there.', {value1: project ? project.title : communityText('this project')}),
action: communityText('Delete project'),
danger: true,
icon: FolderOpen
@@ -205,16 +248,29 @@ const UserDetailCard = ({username, onBack}) => {
setDialogError('');
await api.deleteProject(dialog.id);
setDialog(null);
- setNote(communityText('Project deleted.'));
- refresh();
+ setNote(communityText('Project moved to trash.'));
+ refresh(currentUsername.current);
+ if (onChanged) onChanged();
} catch (e) {
- setDialogError(e.message || 'Could not delete.');
+ setDialogError(e.message || communityText('Could not delete this project.'));
} finally {
releaseDelete();
setDialogBusy(false);
}
};
+ const confirmDialog = async () => {
+ if (!dialog) return;
+ if (dialog.kind === 'standing') {
+ setDialogBusy(true);
+ const done = await submitStanding();
+ setDialogBusy(false);
+ if (done) setDialog(null);
+ return;
+ }
+ confirmDeleteProject();
+ };
+
if (error && !data) {
return (
@@ -277,9 +333,9 @@ const UserDetailCard = ({username, onBack}) => {
error={dialogError}
onChange={() => {}}
onCancel={() => {
- if (!deleteInFlight.current) setDialog(null);
+ if (!deleteInFlight.current && !dialogBusy) setDialog(null);
}}
- onConfirm={confirmDeleteProject}
+ onConfirm={confirmDialog}
/>
@@ -295,7 +351,7 @@ const UserDetailCard = ({username, onBack}) => {
{data.banned ? (
{communityText('Banned')}
) : standing.level !== 'good' ? (
- {standing.level}
+ {standingLabel(standing.level, communityText)}
) : null}
{data.student ? {communityText('Student')} : null}
{data.minor && !data.student ? {communityText('Under 18')} : null}
@@ -320,12 +376,12 @@ const UserDetailCard = ({username, onBack}) => {
{
{error ? {error} : null}
{note ? {note} : null}
-
+
{tab === 'overview' ? (
@@ -367,7 +423,7 @@ const UserDetailCard = ({username, onBack}) => {
/>
- {data.note && data.note.updated ? communityText('Last edited by @{value1} {value2} ago', {value1: data.note.by, value2: timeAgo(data.note.updated)}) : ''}
+ {data.note && data.note.updated ? communityText('Last edited by @{value1}, {value2}', {value1: data.note.by, value2: timeAgoText(data.note.updated)}) : ''}
{
{project.shared ? (
- unshareProject(project.id)}>{communityText('Unshare')}
+ unshareProject(project.id)}>{communityText('Unshare')}
) : null}
deleteProject(project.id)}>{communityText('Delete')}
@@ -511,7 +567,7 @@ const UserDetailCard = ({username, onBack}) => {
setLevel(e.target.value)} aria-label={communityText('Standing')}>
{STANDING_LEVELS.map(l => (
- {l}
+ {standingLabel(l, communityText)}
))}
{
value={reasonText}
onChange={e => setReasonText(e.target.value)}
/>
- {communityText('Apply')}
+ {communityText('Apply')}
{standing.recoverAt ? (
{communityText('Goes back to good standing on {value1}.', {value1: formatDate(standing.recoverAt)})}
@@ -536,7 +596,7 @@ const UserDetailCard = ({username, onBack}) => {
{standing.history.map((entry, index) => (
- {communityText('Changed from {value1} to {value2}', {value1: entry.previous || 'good', value2: entry.level})}
+ {communityText('Changed from {value1} to {value2}', {value1: standingLabel(entry.previous || 'good', communityText), value2: standingLabel(entry.level, communityText)})}
{communityText('By @{value1} · {value2}', {value1: entry.by || '', value2: formatDateTime(entry.created)})}
{entry.reason ? {entry.reason} : null}
@@ -556,12 +616,12 @@ const UserDetailCard = ({username, onBack}) => {
/>
- {communityText('Send')}
+ {communityText('Send')}
-
+
{data.commentsOff ? communityText('Turn on profile comments') : communityText('Turn off profile comments')}
@@ -574,7 +634,8 @@ const UserDetailCard = ({username, onBack}) => {
UserDetailCard.propTypes = {
username: PropTypes.string.isRequired,
- onBack: PropTypes.func.isRequired
+ onBack: PropTypes.func.isRequired,
+ onChanged: PropTypes.func
};
export default UserDetailCard;
diff --git a/src/community/pages/admin/UserManager.jsx b/src/community/pages/admin/UserManager.jsx
index eeb2e9e1087..43519bc9191 100644
--- a/src/community/pages/admin/UserManager.jsx
+++ b/src/community/pages/admin/UserManager.jsx
@@ -11,13 +11,14 @@ import Button from '../../components/ui/Button.jsx';
import EmptyState from '../../components/ui/EmptyState.jsx';
import SectionHeading from '../../components/ui/SectionHeading.jsx';
import StatusMessage from '../../components/ui/StatusMessage.jsx';
-import {timeAgo, formatBytes} from '../../format';
+import {timeAgoText, formatBytes} from '../../format';
+import {standingLabel} from './labels.js';
import styles from '../Admin.module.css';
import UserDetailCard from './UserDetailCard.jsx';
const PAGE_SIZE = 30;
-const UserManager = ({selected: controlledSelected, onSelect}) => {
+const UserManager = ({selected: controlledSelected, onSelect, onUserChanged}) => {
const {text: communityText} = useCommunityText();
const [query, setQuery] = useState('');
const [users, setUsers] = useState([]);
@@ -48,7 +49,7 @@ const UserManager = ({selected: controlledSelected, onSelect}) => {
})
.catch(e => {
if (!active) return;
- setError(e.message || 'Could not load users.');
+ setError(e.message || communityText('Could not load users.'));
setLoading(false);
});
};
@@ -64,7 +65,14 @@ const UserManager = ({selected: controlledSelected, onSelect}) => {
return (
- select(null)} />
+ select(null)}
+ onChanged={() => {
+ setLoadAttempt(value => value + 1);
+ if (onUserChanged) onUserChanged();
+ }}
+ />
);
}
@@ -114,7 +122,7 @@ const UserManager = ({selected: controlledSelected, onSelect}) => {
setFilter(next);
setOffset(0);
}}
- ariaLabel="Filter users"
+ ariaLabel={communityText('Filter users')}
variant="buttons"
/>
{error ? (
@@ -126,7 +134,7 @@ const UserManager = ({selected: controlledSelected, onSelect}) => {
{users.map(user => {
const pct = user.quotaLimit > 0 ? (user.quotaUsed / user.quotaLimit) * 100 : 0;
- const joined = timeAgo(user.created);
+ const joined = timeAgoText(user.created);
return (
{
{user.banned ? (
{communityText('Banned')}
) : user.standingLevel && user.standingLevel !== 'good' ? (
- {user.standingLevel}
+ {standingLabel(user.standingLevel, communityText)}
) : null}
{user.minor ? {communityText('Under 18')} : null}
{joined ?
- communityText('Joined {value1} ago · {value2} projects · {value3} followers', {value1: joined, value2: user.projectCount, value3: user.followerCount}) :
+ communityText('Joined {value1} · {value2} projects · {value3} followers', {value1: joined, value2: user.projectCount, value3: user.followerCount}) :
communityText('{value1} projects · {value2} followers', {value1: user.projectCount, value2: user.followerCount})}
@@ -200,7 +208,8 @@ const UserManager = ({selected: controlledSelected, onSelect}) => {
UserManager.propTypes = {
selected: PropTypes.string,
- onSelect: PropTypes.func
+ onSelect: PropTypes.func,
+ onUserChanged: PropTypes.func
};
export default UserManager;
diff --git a/src/community/pages/admin/labels.js b/src/community/pages/admin/labels.js
new file mode 100644
index 00000000000..2592a18ecad
--- /dev/null
+++ b/src/community/pages/admin/labels.js
@@ -0,0 +1,15 @@
+const standingLabel = (level, communityText) => ({
+ good: communityText('Good standing'),
+ warning: communityText('Warning'),
+ suspended: communityText('Suspended'),
+ banned: communityText('Banned')
+}[level] || level);
+
+const reportTypeLabel = (type, communityText) => ({
+ project: communityText('Project'),
+ user: communityText('Profile'),
+ comment: communityText('Comment'),
+ bounty: communityText('Bounty')
+}[type] || type);
+
+export {standingLabel, reportTypeLabel};
diff --git a/src/community/pages/project/ProjectActivity.jsx b/src/community/pages/project/ProjectActivity.jsx
index 36807340a12..73f1e57a178 100644
--- a/src/community/pages/project/ProjectActivity.jsx
+++ b/src/community/pages/project/ProjectActivity.jsx
@@ -75,7 +75,7 @@ const ProjectActivity = ({
canPin={project.isOwner}
disabled={Boolean(project.commentsOff) || locked}
disabledReason={locked && !project.commentsOff ?
- 'Buy this project to comment.' : 'Comments are turned off.'}
+ communityText('Buy this project to comment.') : communityText('Comments are turned off.')}
reportContext={`project ${id}`}
draftKey={`project:${project.id}`}
composerAction={project.isOwner ? (
diff --git a/src/community/pages/project/ProjectStage.jsx b/src/community/pages/project/ProjectStage.jsx
index 2d5bcd560f7..a3ca1f1e2c6 100644
--- a/src/community/pages/project/ProjectStage.jsx
+++ b/src/community/pages/project/ProjectStage.jsx
@@ -107,7 +107,7 @@ const ProjectStage = ({
activeReaction={project.myReaction || ''}
onReact={react}
disabled={locked || reactionBusy}
- disabledTitle={locked ? 'Buy this project to react' : 'Saving…'}
+ disabledTitle={locked ? communityText('Buy this project to react.') : communityText('Saving…')}
/>
diff --git a/src/community/rotur.js b/src/community/rotur.js
index c60942f5c2f..4afd9f04215 100644
--- a/src/community/rotur.js
+++ b/src/community/rotur.js
@@ -43,7 +43,9 @@ const cache = new Map();
const cacheKey = (path, params) => `${path}|${JSON.stringify(params)}|${roturToken() || ''}`;
const mutate = async (path, {method = 'POST', params = {}, body, scopes = []} = {}) => {
- if (scopes.length) await ensureScopes(scopes, {prompt: true});
+ if (scopes.length && !(await ensureScopes(scopes, {prompt: true}))) {
+ throw new Error(formatCommunityMessage('MistWarp needs your permission on Rotur to do this.'));
+ }
const query = new URLSearchParams();
Object.entries(params).forEach(([key, value]) => {
if (value !== null && typeof value !== 'undefined') query.set(key, String(value));
diff --git a/src/community/translations/_sources.json b/src/community/translations/_sources.json
index 2235c50db36..8130e8795c4 100644
--- a/src/community/translations/_sources.json
+++ b/src/community/translations/_sources.json
@@ -11,8 +11,8 @@
"Sign in to continue": [
"src/community/api-errors.js:31",
"src/community/components/ui/EmptyState.jsx:36",
- "src/community/rotur.js:52",
- "src/community/rotur.js:145"
+ "src/community/rotur.js:54",
+ "src/community/rotur.js:147"
],
"You don't have permission to do that.": [
"src/community/api-errors.js:32"
@@ -36,10 +36,10 @@
"src/community/pages/ManageProject.jsx:76",
"src/community/pages/ManageProject.jsx:866",
"src/community/pages/ManageProject.jsx:901",
- "src/community/pages/Profile.jsx:928",
- "src/community/pages/Wallet.jsx:212",
+ "src/community/pages/Profile.jsx:938",
+ "src/community/pages/Wallet.jsx:232",
"src/community/pages/admin/StatsOverview.jsx:148",
- "src/community/pages/admin/UserDetailCard.jsx:268"
+ "src/community/pages/admin/UserDetailCard.jsx:324"
],
"On {value1}": [
"src/community/components/ActivityCard.jsx:76"
@@ -88,7 +88,7 @@
],
"All challenges": [
"src/community/components/ChallengeCalendar.jsx:144",
- "src/community/pages/Challenge.jsx:674",
+ "src/community/pages/Challenge.jsx:720",
"src/community/pages/Home.jsx:429"
],
"{value1}, {value2} to {value3}": [
@@ -103,22 +103,22 @@
"Public": [
"src/community/components/CollectionSaveModal.jsx:32",
"src/community/components/CollectionSaveModal.jsx:219",
- "src/community/components/MyStuffLibrary.jsx:70",
- "src/community/pages/ManageSpace.jsx:644",
+ "src/community/components/MyStuffLibrary.jsx:68",
+ "src/community/pages/ManageSpace.jsx:647",
"src/community/pages/Spaces.jsx:266"
],
"Unlisted": [
"src/community/components/CollectionSaveModal.jsx:33",
"src/community/components/CollectionSaveModal.jsx:220",
- "src/community/components/SpaceProjectPicker.jsx:234",
+ "src/community/components/SpaceProjectPicker.jsx:236",
"src/community/components/VisibilityMenu.jsx:9",
- "src/community/pages/ManageSpace.jsx:644",
+ "src/community/pages/ManageSpace.jsx:647",
"src/community/pages/Spaces.jsx:267"
],
"Private": [
"src/community/components/CollectionSaveModal.jsx:34",
"src/community/components/CollectionSaveModal.jsx:221",
- "src/community/pages/ManageSpace.jsx:644",
+ "src/community/pages/ManageSpace.jsx:647",
"src/community/pages/Spaces.jsx:268"
],
"Could not load your collections.": [
@@ -162,8 +162,8 @@
"src/community/components/ProjectInfoPanel.jsx:392",
"src/community/components/SocialPost.jsx:267",
"src/community/components/SocialPost.jsx:309",
- "src/community/pages/Challenge.jsx:446",
- "src/community/pages/ManageSpace.jsx:715"
+ "src/community/pages/Challenge.jsx:465",
+ "src/community/pages/ManageSpace.jsx:718"
],
"Saving…": [
"src/community/components/CollectionSaveModal.jsx:167",
@@ -172,19 +172,20 @@
"src/community/components/NewsItem.jsx:275",
"src/community/components/ProfileBadges.jsx:204",
"src/community/components/ProjectInfoPanel.jsx:390",
- "src/community/pages/Challenge.jsx:447",
+ "src/community/pages/Challenge.jsx:466",
"src/community/pages/Commit.jsx:390",
"src/community/pages/ManageProject.jsx:650",
"src/community/pages/ManageProject.jsx:706",
"src/community/pages/ManageProject.jsx:759",
"src/community/pages/ManageProject.jsx:850",
"src/community/pages/ManageProject.jsx:1048",
- "src/community/pages/ManageSpace.jsx:653",
- "src/community/pages/ManageSpace.jsx:666",
- "src/community/pages/ManageSpace.jsx:715",
+ "src/community/pages/ManageSpace.jsx:656",
+ "src/community/pages/ManageSpace.jsx:669",
+ "src/community/pages/ManageSpace.jsx:718",
"src/community/pages/News.jsx:299",
"src/community/pages/Theme.jsx:225",
"src/community/pages/Theme.jsx:258",
+ "src/community/pages/project/ProjectStage.jsx:110",
"src/community/pages/project/ReviewPanel.jsx:172"
],
"Saved": [
@@ -225,7 +226,8 @@
"src/community/components/CommentThread.jsx:27",
"src/community/components/CommentThread.jsx:85",
"src/community/pages/Bounty.jsx:168",
- "src/community/pages/PullRequest.jsx:566"
+ "src/community/pages/PullRequest.jsx:566",
+ "src/community/pages/admin/labels.js:11"
],
"Bug report": [
"src/community/components/CommentThread.jsx:28",
@@ -287,7 +289,7 @@
],
"Delete comment": [
"src/community/components/CommentThread.jsx:203",
- "src/community/components/CommentThread.jsx:1093",
+ "src/community/components/CommentThread.jsx:1090",
"src/community/pages/Bounty.jsx:162",
"src/community/pages/PullRequest.jsx:539"
],
@@ -302,7 +304,7 @@
"src/community/components/SocialPost.jsx:265",
"src/community/components/ui/ConfirmModal.jsx:22",
"src/community/pages/ManageProject.jsx:1128",
- "src/community/pages/ManageSpace.jsx:759",
+ "src/community/pages/ManageSpace.jsx:762",
"src/community/pages/MyStuff.jsx:1283",
"src/community/pages/News.jsx:293",
"src/community/pages/Roadmap.jsx:501",
@@ -332,88 +334,89 @@
"src/community/components/CommentThread.jsx:307"
],
"Enter a donation between 0.01 and 100000 credits.": [
- "src/community/components/CommentThread.jsx:609"
+ "src/community/components/CommentThread.jsx:626"
],
"Payment cancelled.": [
- "src/community/components/CommentThread.jsx:650",
+ "src/community/components/CommentThread.jsx:657",
"src/community/components/GameMarketplaceModal.jsx:156",
"src/community/pages/Project.jsx:407"
],
"Could not post comment.": [
- "src/community/components/CommentThread.jsx:651"
+ "src/community/components/CommentThread.jsx:658"
],
"Could not delete comment.": [
- "src/community/components/CommentThread.jsx:686"
+ "src/community/components/CommentThread.jsx:683"
],
"Could not edit comment.": [
- "src/community/components/CommentThread.jsx:714"
+ "src/community/components/CommentThread.jsx:711"
],
"Could not react.": [
- "src/community/components/CommentThread.jsx:744",
+ "src/community/components/CommentThread.jsx:741",
"src/community/components/NewsItem.jsx:51"
],
"Could not pin comment.": [
- "src/community/components/CommentThread.jsx:769"
+ "src/community/components/CommentThread.jsx:766"
],
"Comments are turned off.": [
- "src/community/components/CommentThread.jsx:836"
+ "src/community/components/CommentThread.jsx:833",
+ "src/community/pages/project/ProjectActivity.jsx:78"
],
"Add a comment": [
- "src/community/components/CommentThread.jsx:847",
- "src/community/components/CommentThread.jsx:848"
+ "src/community/components/CommentThread.jsx:844",
+ "src/community/components/CommentThread.jsx:845"
],
"Search comments": [
- "src/community/components/CommentThread.jsx:868",
- "src/community/components/CommentThread.jsx:869"
+ "src/community/components/CommentThread.jsx:865",
+ "src/community/components/CommentThread.jsx:866"
],
"All types": [
- "src/community/components/CommentThread.jsx:879",
+ "src/community/components/CommentThread.jsx:876",
"src/community/pages/Roadmap.jsx:509"
],
"Filter comments by type": [
- "src/community/components/CommentThread.jsx:884"
+ "src/community/components/CommentThread.jsx:881"
],
"Newest": [
- "src/community/components/CommentThread.jsx:894",
+ "src/community/components/CommentThread.jsx:891",
"src/community/pages/Themes.jsx:23",
- "src/community/pages/admin/UserManager.jsx:104"
+ "src/community/pages/admin/UserManager.jsx:112"
],
"Highest donations": [
- "src/community/components/CommentThread.jsx:895"
+ "src/community/components/CommentThread.jsx:892"
],
"Sort comments": [
- "src/community/components/CommentThread.jsx:899"
+ "src/community/components/CommentThread.jsx:896"
],
"Show 1 more reply": [
- "src/community/components/CommentThread.jsx:998"
+ "src/community/components/CommentThread.jsx:995"
],
"Show {value1} more replies": [
- "src/community/components/CommentThread.jsx:999"
+ "src/community/components/CommentThread.jsx:996"
],
"Hide replies": [
- "src/community/components/CommentThread.jsx:1006"
+ "src/community/components/CommentThread.jsx:1003"
],
"Reply to {value1}": [
- "src/community/components/CommentThread.jsx:1019"
+ "src/community/components/CommentThread.jsx:1016"
],
"Write a reply": [
- "src/community/components/CommentThread.jsx:1020"
+ "src/community/components/CommentThread.jsx:1017"
],
"Show {value1} more comments": [
- "src/community/components/CommentThread.jsx:1034",
- "src/community/components/CommentThread.jsx:1046"
+ "src/community/components/CommentThread.jsx:1031",
+ "src/community/components/CommentThread.jsx:1043"
],
"Loading…": [
- "src/community/components/CommentThread.jsx:1045",
- "src/community/components/MyStuffLibrary.jsx:123",
- "src/community/components/PlaytimeLibrary.jsx:94",
- "src/community/components/SpaceProjectPicker.jsx:250",
+ "src/community/components/CommentThread.jsx:1042",
+ "src/community/components/MyStuffLibrary.jsx:121",
+ "src/community/components/PlaytimeLibrary.jsx:92",
+ "src/community/components/SpaceProjectPicker.jsx:252",
"src/community/components/ui/StatusMessage.jsx:24",
"src/community/pages/Explore.jsx:225",
"src/community/pages/MyStuff.jsx:1582",
- "src/community/pages/Profile.jsx:449",
- "src/community/pages/Profile.jsx:624",
- "src/community/pages/Project.jsx:643",
+ "src/community/pages/Profile.jsx:457",
+ "src/community/pages/Profile.jsx:634",
+ "src/community/pages/Project.jsx:646",
"src/community/pages/RemixTree.jsx:248",
"src/community/pages/Search.jsx:213",
"src/community/pages/Spaces.jsx:329",
@@ -421,48 +424,48 @@
"src/community/pages/admin/ExtensionManager.jsx:146"
],
"Could not load more comments. Try again.": [
- "src/community/components/CommentThread.jsx:1053"
+ "src/community/components/CommentThread.jsx:1050"
],
"Loading comments…": [
- "src/community/components/CommentThread.jsx:1060"
+ "src/community/components/CommentThread.jsx:1057"
],
"Comments could not be loaded right now.": [
- "src/community/components/CommentThread.jsx:1064"
+ "src/community/components/CommentThread.jsx:1061"
],
"No matching comments": [
- "src/community/components/CommentThread.jsx:1068"
+ "src/community/components/CommentThread.jsx:1065"
],
"No comments match those filters.": [
- "src/community/components/CommentThread.jsx:1069"
+ "src/community/components/CommentThread.jsx:1066"
],
"No comments yet": [
- "src/community/components/CommentThread.jsx:1073",
+ "src/community/components/CommentThread.jsx:1070",
"src/community/pages/Bounty.jsx:165"
],
"Be the first to leave a comment.": [
- "src/community/components/CommentThread.jsx:1074"
+ "src/community/components/CommentThread.jsx:1071"
],
"Delete comment?": [
- "src/community/components/CommentThread.jsx:1092"
+ "src/community/components/CommentThread.jsx:1089"
],
"Deleting…": [
- "src/community/components/CommentThread.jsx:1095",
+ "src/community/components/CommentThread.jsx:1092",
"src/community/components/NewsItem.jsx:132",
"src/community/components/ProfilePosts.jsx:220",
- "src/community/pages/ManageSpace.jsx:783",
+ "src/community/pages/ManageSpace.jsx:786",
"src/community/pages/MyStuff.jsx:1309",
"src/community/pages/MyStuff.jsx:1325",
- "src/community/pages/Project.jsx:728",
+ "src/community/pages/Project.jsx:731",
"src/community/pages/Settings.jsx:993",
"src/community/pages/Settings.jsx:1008",
"src/community/pages/Theme.jsx:239",
"src/community/pages/project/ReviewPanel.jsx:221"
],
"This comment will be deleted permanently.": [
- "src/community/components/CommentThread.jsx:1102"
+ "src/community/components/CommentThread.jsx:1099"
],
"This comment and its replies will be deleted permanently.": [
- "src/community/components/CommentThread.jsx:1103"
+ "src/community/components/CommentThread.jsx:1100"
],
"Code": [
"src/community/components/DiffView.jsx:18"
@@ -478,7 +481,7 @@
],
"Added": [
"src/community/components/DiffView.jsx:19",
- "src/community/components/SpaceProjectPicker.jsx:243"
+ "src/community/components/SpaceProjectPicker.jsx:245"
],
"Deleted": [
"src/community/components/DiffView.jsx:19"
@@ -608,21 +611,21 @@
"src/community/pages/Collection.jsx:38",
"src/community/pages/Group.jsx:175",
"src/community/pages/Home.jsx:370",
- "src/community/pages/ManageSpace.jsx:27",
- "src/community/pages/ManageSpace.jsx:767",
- "src/community/pages/Profile.jsx:541",
- "src/community/pages/Profile.jsx:610",
+ "src/community/pages/ManageSpace.jsx:28",
+ "src/community/pages/ManageSpace.jsx:770",
+ "src/community/pages/Profile.jsx:549",
+ "src/community/pages/Profile.jsx:620",
"src/community/pages/Search.jsx:224",
"src/community/pages/Settings.jsx:75",
- "src/community/pages/Space.jsx:306",
+ "src/community/pages/Space.jsx:310",
"src/community/pages/Studio.jsx:85",
"src/community/pages/Studio.jsx:137",
"src/community/pages/admin/ProjectManager.jsx:109",
"src/community/pages/admin/StatsOverview.jsx:255",
"src/community/pages/admin/StatsOverview.jsx:395",
"src/community/pages/admin/StatsOverview.jsx:402",
- "src/community/pages/admin/UserDetailCard.jsx:265",
- "src/community/pages/admin/UserDetailCard.jsx:341"
+ "src/community/pages/admin/UserDetailCard.jsx:321",
+ "src/community/pages/admin/UserDetailCard.jsx:397"
],
"Studios": [
"src/community/components/ExploreNav.jsx:10",
@@ -661,7 +664,7 @@
"src/community/components/Footer.jsx:41",
"src/community/components/MyStuffThemes.jsx:218",
"src/community/pages/MyStuff.jsx:511",
- "src/community/pages/Profile.jsx:543"
+ "src/community/pages/Profile.jsx:551"
],
"Explore sections": [
"src/community/components/ExploreNav.jsx:27"
@@ -733,7 +736,7 @@
],
"Community": [
"src/community/components/Footer.jsx:37",
- "src/community/pages/Challenge.jsx:760",
+ "src/community/pages/Challenge.jsx:806",
"src/community/pages/Roadmap.jsx:497",
"src/community/pages/Roadmap.jsx:511"
],
@@ -872,8 +875,8 @@
],
"Results": [
"src/community/components/GifPicker.jsx:61",
- "src/community/pages/Challenge.jsx:647",
- "src/community/pages/ManageSpace.jsx:730"
+ "src/community/pages/Challenge.jsx:693",
+ "src/community/pages/ManageSpace.jsx:733"
],
"Popular GIFs": [
"src/community/components/GifPicker.jsx:61"
@@ -921,16 +924,16 @@
"src/community/components/HomeDiscovery.jsx:76",
"src/community/pages/Collection.jsx:76",
"src/community/pages/Home.jsx:349",
- "src/community/pages/Profile.jsx:854",
- "src/community/pages/Space.jsx:243",
+ "src/community/pages/Profile.jsx:864",
+ "src/community/pages/Space.jsx:247",
"src/community/pages/Studio.jsx:120",
- "src/community/pages/admin/UserDetailCard.jsx:384"
+ "src/community/pages/admin/UserDetailCard.jsx:440"
],
"Follow": [
"src/community/components/HomeDiscovery.jsx:76",
"src/community/pages/Collection.jsx:76",
- "src/community/pages/Profile.jsx:854",
- "src/community/pages/Space.jsx:243"
+ "src/community/pages/Profile.jsx:864",
+ "src/community/pages/Space.jsx:247"
],
"Featured today": [
"src/community/components/HomeDiscovery.jsx:105"
@@ -1002,32 +1005,36 @@
],
"Challenge winner": [
"src/community/components/HomeWorkspace.jsx:234",
- "src/community/pages/Challenge.jsx:193"
+ "src/community/pages/Challenge.jsx:209"
],
"Winner of {value1}": [
"src/community/components/HomeWorkspace.jsx:244"
],
- "by": [
+ "by {user}": [
"src/community/components/HomeWorkspace.jsx:245",
- "src/community/components/MyStuffLibrary.jsx:59",
- "src/community/components/PlaytimeLibrary.jsx:78",
+ "src/community/components/MyStuffLibrary.jsx:56",
+ "src/community/components/NavBar.jsx:48",
+ "src/community/components/PlaytimeLibrary.jsx:75",
"src/community/components/ProjectCard.jsx:50",
+ "src/community/components/SpaceCard.jsx:49",
"src/community/components/SpaceProjectPicker.jsx:233",
- "src/community/pages/Challenge.jsx:416",
- "src/community/pages/Challenge.jsx:540",
- "src/community/pages/Challenge.jsx:555",
- "src/community/pages/Profile.jsx:581"
+ "src/community/components/ThemeCard.jsx:28",
+ "src/community/pages/Challenge.jsx:435",
+ "src/community/pages/Challenge.jsx:559",
+ "src/community/pages/Challenge.jsx:574",
+ "src/community/pages/ManageSpace.jsx:775",
+ "src/community/pages/Profile.jsx:589"
],
"Play the winner": [
"src/community/components/HomeWorkspace.jsx:248",
- "src/community/pages/Challenge.jsx:214"
+ "src/community/pages/Challenge.jsx:230"
],
"See the results": [
"src/community/components/HomeWorkspace.jsx:249"
],
"Replay the celebration": [
"src/community/components/HomeWorkspace.jsx:250",
- "src/community/pages/Challenge.jsx:215"
+ "src/community/pages/Challenge.jsx:231"
],
"Chat with the community on MistWarp's own chat.": [
"src/community/components/JoinCommunityModal.jsx:27"
@@ -1156,64 +1163,61 @@
],
"Not played yet": [
"src/community/components/MyStuffLibrary.jsx:20",
- "src/community/pages/project/ProjectStage.jsx:133"
+ "src/community/pages/project/ProjectStage.jsx:135"
],
"{duration} played": [
"src/community/components/MyStuffLibrary.jsx:21",
- "src/community/format.js:73"
+ "src/community/format.js:79"
],
- "Played just now": [
- "src/community/components/MyStuffLibrary.jsx:28",
- "src/community/components/PlaytimeLibrary.jsx:20"
- ],
- "Last played {value1} ago": [
- "src/community/components/MyStuffLibrary.jsx:29"
+ "Last played {value1}": [
+ "src/community/components/MyStuffLibrary.jsx:26",
+ "src/community/pages/Profile.jsx:117"
],
"Loading your library…": [
- "src/community/components/MyStuffLibrary.jsx:39"
+ "src/community/components/MyStuffLibrary.jsx:36"
],
"Could not load your library.": [
- "src/community/components/MyStuffLibrary.jsx:43"
+ "src/community/components/MyStuffLibrary.jsx:40"
],
"Hidden": [
- "src/community/components/MyStuffLibrary.jsx:70"
+ "src/community/components/MyStuffLibrary.jsx:68"
],
"Library options for {value1}": [
- "src/community/components/MyStuffLibrary.jsx:77"
+ "src/community/components/MyStuffLibrary.jsx:75"
],
"Show in public library": [
- "src/community/components/MyStuffLibrary.jsx:97"
+ "src/community/components/MyStuffLibrary.jsx:95"
],
"Hide from public library": [
- "src/community/components/MyStuffLibrary.jsx:98"
+ "src/community/components/MyStuffLibrary.jsx:96"
],
"Remove from library": [
- "src/community/components/MyStuffLibrary.jsx:109",
+ "src/community/components/MyStuffLibrary.jsx:107",
"src/community/pages/project/ProjectHeader.jsx:106"
],
"Load more games": [
- "src/community/components/MyStuffLibrary.jsx:126",
- "src/community/components/PlaytimeLibrary.jsx:97"
+ "src/community/components/MyStuffLibrary.jsx:124",
+ "src/community/components/PlaytimeLibrary.jsx:95"
],
"Your library is empty": [
- "src/community/components/MyStuffLibrary.jsx:134",
+ "src/community/components/MyStuffLibrary.jsx:132",
"src/community/components/MyStuffThemes.jsx:166"
],
"Use \"Save to library\" on a project to add it here.": [
- "src/community/components/MyStuffLibrary.jsx:135"
+ "src/community/components/MyStuffLibrary.jsx:133"
],
"Library": [
- "src/community/components/MyStuffLibrary.jsx:143",
+ "src/community/components/MyStuffLibrary.jsx:141",
"src/community/pages/MyStuff.jsx:508"
],
"Games you saved, with your playtime and public profile controls.": [
- "src/community/components/MyStuffLibrary.jsx:144"
+ "src/community/components/MyStuffLibrary.jsx:142"
],
"1 game": [
- "src/community/components/MyStuffLibrary.jsx:148"
+ "src/community/components/MyStuffLibrary.jsx:146"
],
"{value1} games": [
- "src/community/components/MyStuffLibrary.jsx:149"
+ "src/community/components/MyStuffLibrary.jsx:147"
],
"Could not load your spaces.": [
"src/community/components/MyStuffSpaces.jsx:21"
@@ -1232,7 +1236,7 @@
"src/community/components/NavBar.jsx:72",
"src/community/pages/MyStuff.jsx:510",
"src/community/pages/Search.jsx:226",
- "src/community/pages/admin/UserDetailCard.jsx:392"
+ "src/community/pages/admin/UserDetailCard.jsx:448"
],
"Studios you curate or follow, and challenges you host, join, judge, or follow.": [
"src/community/components/MyStuffSpaces.jsx:60"
@@ -1269,14 +1273,14 @@
],
"Apply": [
"src/community/components/MyStuffThemes.jsx:146",
- "src/community/pages/Profile.jsx:972",
- "src/community/pages/admin/UserDetailCard.jsx:523"
+ "src/community/pages/Profile.jsx:982",
+ "src/community/pages/admin/UserDetailCard.jsx:583"
],
"Remove {value1}": [
"src/community/components/MyStuffThemes.jsx:150",
"src/community/pages/Commit.jsx:369",
"src/community/pages/ManageProject.jsx:1027",
- "src/community/pages/ManageSpace.jsx:704"
+ "src/community/pages/ManageSpace.jsx:707"
],
"Create a theme": [
"src/community/components/MyStuffThemes.jsx:171"
@@ -1341,12 +1345,6 @@
"Space": [
"src/community/components/NavBar.jsx:29"
],
- "by ": [
- "src/community/components/NavBar.jsx:48",
- "src/community/components/SpaceCard.jsx:49",
- "src/community/components/ThemeCard.jsx:28",
- "src/community/pages/ManageSpace.jsx:772"
- ],
"People": [
"src/community/components/NavBar.jsx:55",
"src/community/pages/Search.jsx:225"
@@ -1366,8 +1364,8 @@
"Searching…": [
"src/community/components/NavBar.jsx:172",
"src/community/components/SpaceProjectPicker.jsx:205",
- "src/community/pages/ManageSpace.jsx:723",
- "src/community/pages/ManageSpace.jsx:744",
+ "src/community/pages/ManageSpace.jsx:726",
+ "src/community/pages/ManageSpace.jsx:747",
"src/community/pages/Search.jsx:203",
"src/community/pages/Search.jsx:272"
],
@@ -1501,7 +1499,7 @@
],
"Published {value1}": [
"src/community/components/NewsItem.jsx:200",
- "src/community/pages/ManageSpace.jsx:731"
+ "src/community/pages/ManageSpace.jsx:734"
],
"Updated {value1}": [
"src/community/components/NewsItem.jsx:202"
@@ -1515,7 +1513,7 @@
],
"{value1} likes": [
"src/community/components/NewsItem.jsx:215",
- "src/community/components/ThemeCard.jsx:32"
+ "src/community/components/ThemeCard.jsx:31"
],
"{value1} dislikes": [
"src/community/components/NewsItem.jsx:218"
@@ -1553,37 +1551,37 @@
"Disliked by {value1}": [
"src/community/components/NewsItem.jsx:294"
],
- "Played {value1} ago": [
- "src/community/components/PlaytimeLibrary.jsx:21"
+ "Played {value1}": [
+ "src/community/components/PlaytimeLibrary.jsx:18"
],
"Loading game library…": [
- "src/community/components/PlaytimeLibrary.jsx:28"
+ "src/community/components/PlaytimeLibrary.jsx:25"
],
"Could not load this game library.": [
- "src/community/components/PlaytimeLibrary.jsx:32"
+ "src/community/components/PlaytimeLibrary.jsx:29"
],
"This game library is private": [
- "src/community/components/PlaytimeLibrary.jsx:38"
+ "src/community/components/PlaytimeLibrary.jsx:35"
],
"This user has chosen not to share what they play.": [
- "src/community/components/PlaytimeLibrary.jsx:39",
- "src/community/pages/Profile.jsx:601"
+ "src/community/components/PlaytimeLibrary.jsx:36",
+ "src/community/pages/Profile.jsx:611"
],
"No library games with playtime yet": [
- "src/community/components/PlaytimeLibrary.jsx:46"
+ "src/community/components/PlaytimeLibrary.jsx:43"
],
"Games must be added to the library before their playtime appears here.": [
- "src/community/components/PlaytimeLibrary.jsx:47"
+ "src/community/components/PlaytimeLibrary.jsx:44"
],
"1 library game played": [
- "src/community/components/PlaytimeLibrary.jsx:56"
+ "src/community/components/PlaytimeLibrary.jsx:53"
],
"{value1} library games played": [
- "src/community/components/PlaytimeLibrary.jsx:57"
+ "src/community/components/PlaytimeLibrary.jsx:54"
],
"Only visible to you": [
- "src/community/components/PlaytimeLibrary.jsx:61",
- "src/community/pages/Profile.jsx:564"
+ "src/community/components/PlaytimeLibrary.jsx:58",
+ "src/community/pages/Profile.jsx:572"
],
"Open attachment": [
"src/community/components/PostAttachment.jsx:20"
@@ -1653,8 +1651,8 @@
],
"Schedule": [
"src/community/components/PostComposer.jsx:275",
- "src/community/pages/ManageSpace.jsx:33",
- "src/community/pages/ManageSpace.jsx:659"
+ "src/community/pages/ManageSpace.jsx:34",
+ "src/community/pages/ManageSpace.jsx:662"
],
"Level {value1}": [
"src/community/components/ProfileBadges.jsx:65"
@@ -1884,10 +1882,10 @@
"src/community/components/SharedProjects.jsx:50",
"src/community/components/SpaceCard.jsx:37",
"src/community/components/ThemeCard.jsx:20",
- "src/community/pages/Challenge.jsx:411",
+ "src/community/pages/Challenge.jsx:430",
"src/community/pages/Home.jsx:179",
"src/community/pages/ManageProject.jsx:643",
- "src/community/pages/Profile.jsx:572"
+ "src/community/pages/Profile.jsx:580"
],
"Owned": [
"src/community/components/ProjectCard.jsx:29"
@@ -1899,30 +1897,30 @@
"src/community/components/ProjectCard.jsx:35"
],
"{value1, plural, one {# love} other {# loves}}": [
- "src/community/components/ProjectCard.jsx:62"
+ "src/community/components/ProjectCard.jsx:63"
],
"{value1, plural, one {# view} other {# views}}": [
- "src/community/components/ProjectCard.jsx:69"
+ "src/community/components/ProjectCard.jsx:70"
],
"{value1} people have worked on this project": [
- "src/community/components/ProjectCard.jsx:75",
- "src/community/components/ProjectCard.jsx:80"
+ "src/community/components/ProjectCard.jsx:76",
+ "src/community/components/ProjectCard.jsx:81"
],
"1 accepted contribution": [
- "src/community/components/ProjectCard.jsx:88",
- "src/community/components/ProjectCard.jsx:95",
+ "src/community/components/ProjectCard.jsx:89",
+ "src/community/components/ProjectCard.jsx:96",
"src/community/components/ProjectInfoPanel.jsx:217"
],
"{value1} accepted contributions": [
- "src/community/components/ProjectCard.jsx:89",
- "src/community/components/ProjectCard.jsx:96",
+ "src/community/components/ProjectCard.jsx:90",
+ "src/community/components/ProjectCard.jsx:97",
"src/community/components/ProjectInfoPanel.jsx:218"
],
"Remixed from another MistWarp project": [
- "src/community/components/ProjectCard.jsx:101"
+ "src/community/components/ProjectCard.jsx:102"
],
"Remix": [
- "src/community/components/ProjectCard.jsx:103",
+ "src/community/components/ProjectCard.jsx:104",
"src/community/pages/project/ProjectBounties.jsx:54",
"src/community/pages/project/ProjectHeader.jsx:96",
"src/community/pages/project/ProjectHeader.jsx:204"
@@ -2030,7 +2028,7 @@
],
"Details": [
"src/community/components/ProjectInfoPanel.jsx:116",
- "src/community/pages/ManageSpace.jsx:32"
+ "src/community/pages/ManageSpace.jsx:33"
],
"Project information": [
"src/community/components/ProjectInfoPanel.jsx:121"
@@ -2072,7 +2070,8 @@
"src/community/components/ProjectInfoPanel.jsx:190",
"src/community/pages/PullRequest.jsx:490",
"src/community/pages/PullRequest.jsx:506",
- "src/community/pages/RemixTree.jsx:192"
+ "src/community/pages/RemixTree.jsx:192",
+ "src/community/pages/admin/labels.js:9"
],
"Team": [
"src/community/components/ProjectInfoPanel.jsx:195",
@@ -2087,7 +2086,7 @@
],
"Owner": [
"src/community/components/ProjectInfoPanel.jsx:204",
- "src/community/pages/ManageSpace.jsx:756",
+ "src/community/pages/ManageSpace.jsx:759",
"src/community/pages/Studio.jsx:159"
],
"Contributor": [
@@ -2477,13 +2476,13 @@
"src/community/pages/Theme.jsx:228",
"src/community/pages/admin/ErrorManager.jsx:249",
"src/community/pages/admin/ProjectManager.jsx:145",
- "src/community/pages/admin/UserDetailCard.jsx:433",
+ "src/community/pages/admin/UserDetailCard.jsx:489",
"src/community/pages/project/ReviewPanel.jsx:186"
],
"Report": [
"src/community/components/SocialPost.jsx:333",
"src/community/pages/Bounty.jsx:149",
- "src/community/pages/Profile.jsx:895",
+ "src/community/pages/Profile.jsx:905",
"src/community/pages/project/ProjectHeader.jsx:232"
],
"Unblocked {value1}.": [
@@ -2514,21 +2513,21 @@
"src/community/components/SpaceCard.jsx:46",
"src/community/pages/Collection.jsx:73",
"src/community/pages/Group.jsx:253",
- "src/community/pages/Space.jsx:238",
+ "src/community/pages/Space.jsx:242",
"src/community/pages/Studio.jsx:118"
],
" joined": [
- "src/community/components/SpaceCard.jsx:57"
+ "src/community/components/SpaceCard.jsx:58"
],
"follower": [
- "src/community/components/SpaceCard.jsx:61"
+ "src/community/components/SpaceCard.jsx:62"
],
"followers": [
- "src/community/components/SpaceCard.jsx:61",
- "src/community/pages/Profile.jsx:839"
+ "src/community/components/SpaceCard.jsx:62",
+ "src/community/pages/Profile.jsx:849"
],
"Ends ": [
- "src/community/components/SpaceCard.jsx:70"
+ "src/community/components/SpaceCard.jsx:71"
],
"Could not search projects.": [
"src/community/components/SpaceProjectPicker.jsx:134"
@@ -2568,19 +2567,19 @@
"src/community/components/SpaceProjectPicker.jsx:222"
],
"Adding…": [
- "src/community/components/SpaceProjectPicker.jsx:240"
+ "src/community/components/SpaceProjectPicker.jsx:242"
],
"Add": [
- "src/community/components/SpaceProjectPicker.jsx:243",
+ "src/community/components/SpaceProjectPicker.jsx:245",
"src/community/pages/Commit.jsx:392"
],
"Load more projects": [
- "src/community/components/SpaceProjectPicker.jsx:250",
+ "src/community/components/SpaceProjectPicker.jsx:252",
"src/community/pages/MyStuff.jsx:1584",
- "src/community/pages/Profile.jsx:626"
+ "src/community/pages/Profile.jsx:636"
],
"Could not load more projects. Try again.": [
- "src/community/components/SpaceProjectPicker.jsx:253"
+ "src/community/components/SpaceProjectPicker.jsx:255"
],
" changed file": [
"src/community/components/SpriteList.jsx:67"
@@ -2620,53 +2619,56 @@
"src/community/components/StatChart.jsx:81"
],
"{value1} downloads": [
- "src/community/components/ThemeCard.jsx:35"
+ "src/community/components/ThemeCard.jsx:34"
+ ],
+ "Date unknown": [
+ "src/community/components/TransactionHistory.jsx:76"
],
"Today": [
- "src/community/components/TransactionHistory.jsx:75",
+ "src/community/components/TransactionHistory.jsx:77",
"src/community/pages/admin/AnalyticsChart.jsx:61"
],
"Yesterday": [
- "src/community/components/TransactionHistory.jsx:76"
+ "src/community/components/TransactionHistory.jsx:78"
],
"Search transactions": [
- "src/community/components/TransactionHistory.jsx:87"
+ "src/community/components/TransactionHistory.jsx:89"
],
"Search by note or username": [
- "src/community/components/TransactionHistory.jsx:88"
+ "src/community/components/TransactionHistory.jsx:90"
],
"Transaction type": [
- "src/community/components/TransactionHistory.jsx:93"
+ "src/community/components/TransactionHistory.jsx:95"
],
"All activity": [
- "src/community/components/TransactionHistory.jsx:99"
+ "src/community/components/TransactionHistory.jsx:101"
],
"Money in": [
- "src/community/components/TransactionHistory.jsx:100"
+ "src/community/components/TransactionHistory.jsx:102"
],
"Money out": [
- "src/community/components/TransactionHistory.jsx:101"
+ "src/community/components/TransactionHistory.jsx:103"
],
"Received credits": [
- "src/community/components/TransactionHistory.jsx:125"
+ "src/community/components/TransactionHistory.jsx:127"
],
"Sent credits": [
- "src/community/components/TransactionHistory.jsx:126"
+ "src/community/components/TransactionHistory.jsx:128"
],
"Page {value1} of {value2}": [
- "src/community/components/TransactionHistory.jsx:153"
+ "src/community/components/TransactionHistory.jsx:157"
],
"Previous page": [
- "src/community/components/TransactionHistory.jsx:157"
+ "src/community/components/TransactionHistory.jsx:161"
],
"Next page": [
- "src/community/components/TransactionHistory.jsx:164"
+ "src/community/components/TransactionHistory.jsx:168"
],
"No matching transactions": [
- "src/community/components/TransactionHistory.jsx:175"
+ "src/community/components/TransactionHistory.jsx:179"
],
"Try another search or show all activity.": [
- "src/community/components/TransactionHistory.jsx:176"
+ "src/community/components/TransactionHistory.jsx:180"
],
"{size} of storage for your projects": [
"src/community/components/UpgradeCelebration.jsx:37"
@@ -2702,7 +2704,7 @@
"src/community/components/VisibilityMenu.jsx:8",
"src/community/pages/admin/ProjectManager.jsx:138",
"src/community/pages/admin/StatsOverview.jsx:287",
- "src/community/pages/admin/UserDetailCard.jsx:418"
+ "src/community/pages/admin/UserDetailCard.jsx:474"
],
"Unshared": [
"src/community/components/VisibilityMenu.jsx:10",
@@ -2733,6 +2735,9 @@
"Recently merged": [
"src/community/development.js:7"
],
+ "{value1} ago": [
+ "src/community/format.js:30"
+ ],
"Your project got {count} likes": [
"src/community/milestone-notifications.js:5"
],
@@ -2994,9 +2999,9 @@
],
"Overview": [
"src/community/pages/Admin.jsx:30",
- "src/community/pages/Challenge.jsx:644",
+ "src/community/pages/Challenge.jsx:690",
"src/community/pages/MyStuff.jsx:505",
- "src/community/pages/admin/UserDetailCard.jsx:264"
+ "src/community/pages/admin/UserDetailCard.jsx:320"
],
"Storage and runtime": [
"src/community/pages/Admin.jsx:31",
@@ -3010,15 +3015,15 @@
],
"Reports": [
"src/community/pages/Admin.jsx:34",
- "src/community/pages/admin/UserDetailCard.jsx:266"
+ "src/community/pages/admin/UserDetailCard.jsx:322"
],
"Users": [
"src/community/pages/Admin.jsx:35",
"src/community/pages/admin/StatsOverview.jsx:259",
"src/community/pages/admin/StatsOverview.jsx:418",
"src/community/pages/admin/StatsOverview.jsx:453",
- "src/community/pages/admin/UserManager.jsx:66",
- "src/community/pages/admin/UserManager.jsx:82"
+ "src/community/pages/admin/UserManager.jsx:67",
+ "src/community/pages/admin/UserManager.jsx:90"
],
"Bans": [
"src/community/pages/Admin.jsx:36",
@@ -3027,7 +3032,7 @@
"Admins": [
"src/community/pages/Admin.jsx:39",
"src/community/pages/admin/AdminsSection.jsx:14",
- "src/community/pages/admin/UserManager.jsx:77"
+ "src/community/pages/admin/UserManager.jsx:85"
],
"Reply to @{value1}": [
"src/community/pages/Admin.jsx:88"
@@ -3041,7 +3046,7 @@
"Message": [
"src/community/pages/Admin.jsx:91",
"src/community/pages/Support.jsx:139",
- "src/community/pages/admin/UserDetailCard.jsx:549"
+ "src/community/pages/admin/UserDetailCard.jsx:609"
],
"Warn user?": [
"src/community/pages/Admin.jsx:101"
@@ -3069,8 +3074,9 @@
"src/community/pages/Admin.jsx:118",
"src/community/pages/Admin.jsx:128",
"src/community/pages/Admin.jsx:130",
- "src/community/pages/Profile.jsx:1009",
- "src/community/pages/admin/ReportsSection.jsx:97"
+ "src/community/pages/Profile.jsx:1019",
+ "src/community/pages/admin/ReportsSection.jsx:97",
+ "src/community/pages/admin/UserDetailCard.jsx:199"
],
"The user will be locked out of MistWarp until an admin unbans them.": [
"src/community/pages/Admin.jsx:129"
@@ -3098,8 +3104,8 @@
"Admin": [
"src/community/pages/Admin.jsx:258",
"src/community/pages/admin/AdminsSection.jsx:37",
- "src/community/pages/admin/UserDetailCard.jsx:294",
- "src/community/pages/admin/UserManager.jsx:148"
+ "src/community/pages/admin/UserDetailCard.jsx:350",
+ "src/community/pages/admin/UserManager.jsx:156"
],
"Could not load bounties.": [
"src/community/pages/Bounties.jsx:63",
@@ -3125,7 +3131,7 @@
"On": [
"src/community/pages/Bounties.jsx:111",
"src/community/pages/Bounties.jsx:114",
- "src/community/pages/admin/UserDetailCard.jsx:389"
+ "src/community/pages/admin/UserDetailCard.jsx:445"
],
"by {owner}": [
"src/community/pages/Bounties.jsx:111",
@@ -3184,7 +3190,8 @@
"src/community/pages/Bounty.jsx:129"
],
"Bounty": [
- "src/community/pages/Bounty.jsx:117"
+ "src/community/pages/Bounty.jsx:117",
+ "src/community/pages/admin/labels.js:12"
],
"Loading bounty…": [
"src/community/pages/Bounty.jsx:122"
@@ -3194,7 +3201,7 @@
],
"Updating…": [
"src/community/pages/Bounty.jsx:151",
- "src/community/pages/Challenge.jsx:686",
+ "src/community/pages/Challenge.jsx:732",
"src/community/pages/Collection.jsx:76",
"src/community/pages/MyStuff.jsx:1494",
"src/community/pages/MyStuff.jsx:1501",
@@ -3244,13 +3251,13 @@
],
"Submissions open": [
"src/community/pages/Challenge.jsx:32",
- "src/community/pages/Challenge.jsx:464",
- "src/community/pages/ManageSpace.jsx:662",
+ "src/community/pages/Challenge.jsx:483",
+ "src/community/pages/ManageSpace.jsx:665",
"src/community/pages/Spaces.jsx:277"
],
"Judging": [
"src/community/pages/Challenge.jsx:33",
- "src/community/pages/ManageSpace.jsx:34"
+ "src/community/pages/ManageSpace.jsx:35"
],
"Results pending": [
"src/community/pages/Challenge.jsx:34"
@@ -3261,304 +3268,330 @@
"Voting open": [
"src/community/pages/Challenge.jsx:40"
],
+ "Not set": [
+ "src/community/pages/Challenge.jsx:51"
+ ],
"You rated this {value1} out of 5": [
- "src/community/pages/Challenge.jsx:145"
+ "src/community/pages/Challenge.jsx:159"
],
"Not rated yet": [
- "src/community/pages/Challenge.jsx:145"
+ "src/community/pages/Challenge.jsx:159"
],
"Rated {value1} out of 5 from {value2} ratings": [
- "src/community/pages/Challenge.jsx:146"
+ "src/community/pages/Challenge.jsx:160"
],
"No ratings yet": [
- "src/community/pages/Challenge.jsx:147"
+ "src/community/pages/Challenge.jsx:161"
],
"Your rating": [
- "src/community/pages/Challenge.jsx:158",
- "src/community/pages/Challenge.jsx:178"
+ "src/community/pages/Challenge.jsx:172",
+ "src/community/pages/Challenge.jsx:194"
],
"Rate {value1} out of 5": [
- "src/community/pages/Challenge.jsx:165"
+ "src/community/pages/Challenge.jsx:181"
],
"Rate it": [
- "src/community/pages/Challenge.jsx:178"
+ "src/community/pages/Challenge.jsx:194"
],
"({value1})": [
- "src/community/pages/Challenge.jsx:182"
+ "src/community/pages/Challenge.jsx:198"
],
"No ratings": [
- "src/community/pages/Challenge.jsx:184",
- "src/community/pages/Challenge.jsx:520"
+ "src/community/pages/Challenge.jsx:200",
+ "src/community/pages/Challenge.jsx:539"
],
- "Winning entry by": [
- "src/community/pages/Challenge.jsx:203"
+ "Winning entry by {user}": [
+ "src/community/pages/Challenge.jsx:219"
],
"{value1} average from {value2} ratings": [
- "src/community/pages/Challenge.jsx:210"
+ "src/community/pages/Challenge.jsx:226"
],
"Scored {value1} out of 10 by the judges": [
- "src/community/pages/Challenge.jsx:212"
+ "src/community/pages/Challenge.jsx:228"
+ ],
+ "Could not save your rating.": [
+ "src/community/pages/Challenge.jsx:271"
],
"Judge score": [
- "src/community/pages/Challenge.jsx:268"
+ "src/community/pages/Challenge.jsx:284"
],
"/ 10": [
- "src/community/pages/Challenge.jsx:268",
- "src/community/pages/Challenge.jsx:519"
+ "src/community/pages/Challenge.jsx:284",
+ "src/community/pages/Challenge.jsx:538"
],
"Your entry": [
- "src/community/pages/Challenge.jsx:277"
+ "src/community/pages/Challenge.jsx:293"
],
"You cannot rate your own entry.": [
- "src/community/pages/Challenge.jsx:278"
+ "src/community/pages/Challenge.jsx:294"
],
"Give every criterion a score from 1 to 10.": [
- "src/community/pages/Challenge.jsx:343"
+ "src/community/pages/Challenge.jsx:362"
],
"Saved {value1}.": [
- "src/community/pages/Challenge.jsx:369"
+ "src/community/pages/Challenge.jsx:388"
],
"Score saved.": [
- "src/community/pages/Challenge.jsx:369"
+ "src/community/pages/Challenge.jsx:388"
+ ],
+ "Could not save this score.": [
+ "src/community/pages/Challenge.jsx:390"
],
"Every entry has your score. You can still change them until judging ends.": [
- "src/community/pages/Challenge.jsx:381"
+ "src/community/pages/Challenge.jsx:400"
],
"{value1} of {value2} entries scored": [
- "src/community/pages/Challenge.jsx:381",
- "src/community/pages/ManageSpace.jsx:731"
+ "src/community/pages/Challenge.jsx:400",
+ "src/community/pages/ManageSpace.jsx:734"
],
"Entries to judge": [
- "src/community/pages/Challenge.jsx:385"
+ "src/community/pages/Challenge.jsx:404"
],
"Unsaved": [
- "src/community/pages/Challenge.jsx:395"
+ "src/community/pages/Challenge.jsx:414"
],
"To do": [
- "src/community/pages/Challenge.jsx:395"
+ "src/community/pages/Challenge.jsx:414"
],
"Play in new tab": [
- "src/community/pages/Challenge.jsx:417"
+ "src/community/pages/Challenge.jsx:436"
],
"×{value1} weight": [
- "src/community/pages/Challenge.jsx:425"
+ "src/community/pages/Challenge.jsx:444"
],
"No judging criteria are configured.": [
- "src/community/pages/Challenge.jsx:436",
- "src/community/pages/Challenge.jsx:746"
+ "src/community/pages/Challenge.jsx:455",
+ "src/community/pages/Challenge.jsx:792"
],
"Private feedback for the host": [
- "src/community/pages/Challenge.jsx:438"
+ "src/community/pages/Challenge.jsx:457"
],
"Optional notes on this entry": [
- "src/community/pages/Challenge.jsx:439"
+ "src/community/pages/Challenge.jsx:458"
],
"/ 10 overall": [
- "src/community/pages/Challenge.jsx:443"
+ "src/community/pages/Challenge.jsx:462"
],
"Score every criterion to save.": [
- "src/community/pages/Challenge.jsx:443"
+ "src/community/pages/Challenge.jsx:462"
],
"Save and next": [
- "src/community/pages/Challenge.jsx:447"
+ "src/community/pages/Challenge.jsx:466"
],
"Save score": [
- "src/community/pages/Challenge.jsx:447"
+ "src/community/pages/Challenge.jsx:466"
],
"Starts in {value1}": [
- "src/community/pages/Challenge.jsx:468"
+ "src/community/pages/Challenge.jsx:487"
],
"Submissions close": [
- "src/community/pages/Challenge.jsx:474",
- "src/community/pages/ManageSpace.jsx:663",
+ "src/community/pages/Challenge.jsx:493",
+ "src/community/pages/ManageSpace.jsx:666",
"src/community/pages/Spaces.jsx:278"
],
"{value1} left to enter": [
- "src/community/pages/Challenge.jsx:478"
+ "src/community/pages/Challenge.jsx:497"
],
"Voting ends": [
- "src/community/pages/Challenge.jsx:484",
- "src/community/pages/ManageSpace.jsx:664"
+ "src/community/pages/Challenge.jsx:503",
+ "src/community/pages/ManageSpace.jsx:667"
],
"Judging ends": [
- "src/community/pages/Challenge.jsx:484",
- "src/community/pages/ManageSpace.jsx:664"
+ "src/community/pages/Challenge.jsx:503",
+ "src/community/pages/ManageSpace.jsx:667"
],
"{value1} of voting left": [
- "src/community/pages/Challenge.jsx:488"
+ "src/community/pages/Challenge.jsx:507"
],
"{value1} of judging left": [
- "src/community/pages/Challenge.jsx:488"
+ "src/community/pages/Challenge.jsx:507"
],
"Winner announced": [
- "src/community/pages/Challenge.jsx:494"
+ "src/community/pages/Challenge.jsx:513"
],
"Challenge schedule": [
- "src/community/pages/Challenge.jsx:502"
+ "src/community/pages/Challenge.jsx:521"
],
"/ 5 from {value1} ratings": [
- "src/community/pages/Challenge.jsx:521"
+ "src/community/pages/Challenge.jsx:540"
],
"Top three": [
- "src/community/pages/Challenge.jsx:531"
+ "src/community/pages/Challenge.jsx:550"
],
"Other entries": [
- "src/community/pages/Challenge.jsx:548"
+ "src/community/pages/Challenge.jsx:567"
],
"All entries": [
- "src/community/pages/Challenge.jsx:548"
+ "src/community/pages/Challenge.jsx:567"
],
"Winner": [
- "src/community/pages/Challenge.jsx:581"
+ "src/community/pages/Challenge.jsx:602"
+ ],
+ "Could not respond to the invitation.": [
+ "src/community/pages/Challenge.jsx:650",
+ "src/community/pages/Space.jsx:189",
+ "src/community/pages/Studio.jsx:76"
+ ],
+ "Remove your submission before leaving the challenge.": [
+ "src/community/pages/Challenge.jsx:664"
+ ],
+ "Could not update your participation.": [
+ "src/community/pages/Challenge.jsx:681"
],
"Submissions": [
- "src/community/pages/Challenge.jsx:645",
- "src/community/pages/Challenge.jsx:718",
- "src/community/pages/Challenge.jsx:769",
- "src/community/pages/ManageSpace.jsx:35",
- "src/community/pages/ManageSpace.jsx:767"
+ "src/community/pages/Challenge.jsx:691",
+ "src/community/pages/Challenge.jsx:764",
+ "src/community/pages/Challenge.jsx:815",
+ "src/community/pages/ManageSpace.jsx:36",
+ "src/community/pages/ManageSpace.jsx:770"
],
"Judge entries": [
- "src/community/pages/Challenge.jsx:646",
- "src/community/pages/Challenge.jsx:788"
+ "src/community/pages/Challenge.jsx:692",
+ "src/community/pages/Challenge.jsx:834"
],
- "invited you to judge this challenge.": [
- "src/community/pages/Challenge.jsx:661"
+ "{user} invited you to judge this challenge.": [
+ "src/community/pages/Challenge.jsx:707"
],
"Responding…": [
- "src/community/pages/Challenge.jsx:664",
+ "src/community/pages/Challenge.jsx:710",
"src/community/pages/Studio.jsx:106"
],
"Accept": [
- "src/community/pages/Challenge.jsx:664",
+ "src/community/pages/Challenge.jsx:710",
"src/community/pages/Studio.jsx:106"
],
"Decline": [
- "src/community/pages/Challenge.jsx:665",
- "src/community/pages/Space.jsx:261",
+ "src/community/pages/Challenge.jsx:711",
+ "src/community/pages/Space.jsx:265",
"src/community/pages/Studio.jsx:107"
],
"Judges score every submission against the published criteria.": [
- "src/community/pages/Challenge.jsx:669"
+ "src/community/pages/Challenge.jsx:715"
],
"Hosted by {value1}": [
- "src/community/pages/Challenge.jsx:680"
+ "src/community/pages/Challenge.jsx:726"
],
"Leave challenge": [
- "src/community/pages/Challenge.jsx:686"
+ "src/community/pages/Challenge.jsx:732"
],
"Join challenge": [
- "src/community/pages/Challenge.jsx:686"
+ "src/community/pages/Challenge.jsx:732"
],
"Manage challenge": [
- "src/community/pages/Challenge.jsx:687"
+ "src/community/pages/Challenge.jsx:733"
+ ],
+ "Challenge sections": [
+ "src/community/pages/Challenge.jsx:740"
],
"Theme": [
- "src/community/pages/Challenge.jsx:703",
- "src/community/pages/ManageSpace.jsx:642",
+ "src/community/pages/Challenge.jsx:749",
+ "src/community/pages/ManageSpace.jsx:645",
"src/community/pages/Settings.jsx:103",
"src/community/pages/Theme.jsx:118",
"src/community/pages/Theme.jsx:200"
],
"About this challenge": [
- "src/community/pages/Challenge.jsx:707"
+ "src/community/pages/Challenge.jsx:753"
],
"The host has not added a description yet.": [
- "src/community/pages/Challenge.jsx:708"
+ "src/community/pages/Challenge.jsx:754"
],
"Rules": [
- "src/community/pages/Challenge.jsx:711",
- "src/community/pages/ManageSpace.jsx:642"
+ "src/community/pages/Challenge.jsx:757",
+ "src/community/pages/ManageSpace.jsx:645"
],
"The host has not added rules yet.": [
- "src/community/pages/Challenge.jsx:712"
+ "src/community/pages/Challenge.jsx:758"
],
"Joined": [
- "src/community/pages/Challenge.jsx:717"
+ "src/community/pages/Challenge.jsx:763"
],
"Winner picked by": [
- "src/community/pages/Challenge.jsx:719"
+ "src/community/pages/Challenge.jsx:765"
],
"Audience": [
- "src/community/pages/Challenge.jsx:719"
+ "src/community/pages/Challenge.jsx:765"
],
"Judges": [
- "src/community/pages/Challenge.jsx:719",
- "src/community/pages/Challenge.jsx:749",
- "src/community/pages/ManageSpace.jsx:686",
- "src/community/pages/ManageSpace.jsx:719",
+ "src/community/pages/Challenge.jsx:765",
+ "src/community/pages/Challenge.jsx:795",
+ "src/community/pages/ManageSpace.jsx:689",
+ "src/community/pages/ManageSpace.jsx:722",
"src/community/pages/Spaces.jsx:288"
],
"Audience vote": [
- "src/community/pages/Challenge.jsx:723",
- "src/community/pages/ManageSpace.jsx:691",
+ "src/community/pages/Challenge.jsx:769",
+ "src/community/pages/ManageSpace.jsx:694",
"src/community/pages/Spaces.jsx:293"
],
"Voting has closed. Signed-in members rated each entry from 1 to 5 stars, and the entry with the highest average rating won.": [
- "src/community/pages/Challenge.jsx:724"
+ "src/community/pages/Challenge.jsx:770"
],
"Voting has closed. The winner will be announced when the host publishes the results.": [
- "src/community/pages/Challenge.jsx:725"
+ "src/community/pages/Challenge.jsx:771"
],
"Once submissions close, anyone signed in can rate each entry from 1 to 5 stars. Ratings stay hidden until voting ends, and the entry with the highest average rating wins.": [
- "src/community/pages/Challenge.jsx:726"
+ "src/community/pages/Challenge.jsx:772"
],
"Audience ratings are open during judging. They are shown next to each entry but do not decide the winner.": [
- "src/community/pages/Challenge.jsx:729"
+ "src/community/pages/Challenge.jsx:775"
],
"Judging criteria": [
- "src/community/pages/Challenge.jsx:733"
+ "src/community/pages/Challenge.jsx:779"
],
"Weight {value1} of 5": [
- "src/community/pages/Challenge.jsx:740"
+ "src/community/pages/Challenge.jsx:786"
],
"No judges announced yet.": [
- "src/community/pages/Challenge.jsx:754"
+ "src/community/pages/Challenge.jsx:800"
],
"Questions, progress updates, and discussion about the challenge.": [
- "src/community/pages/Challenge.jsx:760"
+ "src/community/pages/Challenge.jsx:806"
],
"Enter a shared or unlisted project before submissions close.": [
- "src/community/pages/Challenge.jsx:771"
+ "src/community/pages/Challenge.jsx:817"
],
"Click the stars to rate an entry. Ratings stay hidden until voting ends, and you can change yours until then.": [
- "src/community/pages/Challenge.jsx:772"
+ "src/community/pages/Challenge.jsx:818"
],
"This challenge has finished. Entries are shown in their final ranking.": [
- "src/community/pages/Challenge.jsx:773"
+ "src/community/pages/Challenge.jsx:819"
],
"Submissions are locked for this challenge.": [
- "src/community/pages/Challenge.jsx:774"
+ "src/community/pages/Challenge.jsx:820"
],
"No submissions yet": [
- "src/community/pages/Challenge.jsx:777"
+ "src/community/pages/Challenge.jsx:823"
],
"The first entry will appear here.": [
- "src/community/pages/Challenge.jsx:777"
+ "src/community/pages/Challenge.jsx:823"
],
"Final results": [
- "src/community/pages/Challenge.jsx:782"
+ "src/community/pages/Challenge.jsx:828"
],
"Ranked by average audience rating. Ties go to the entry with more ratings.": [
- "src/community/pages/Challenge.jsx:782"
+ "src/community/pages/Challenge.jsx:828"
],
"Ranked by the judges using the criteria shown on the overview.": [
- "src/community/pages/Challenge.jsx:782"
+ "src/community/pages/Challenge.jsx:828"
],
"No results": [
- "src/community/pages/Challenge.jsx:783"
+ "src/community/pages/Challenge.jsx:829"
],
"This challenge did not receive any submissions.": [
- "src/community/pages/Challenge.jsx:783"
+ "src/community/pages/Challenge.jsx:829"
],
"Play each entry, then score it from 1 to 10 on every criterion. Only the host sees your feedback.": [
- "src/community/pages/Challenge.jsx:788"
+ "src/community/pages/Challenge.jsx:834"
],
"No entries to judge": [
- "src/community/pages/Challenge.jsx:789"
+ "src/community/pages/Challenge.jsx:835"
+ ],
+ "The only entry is your own, and judges cannot score their own entry.": [
+ "src/community/pages/Challenge.jsx:835"
],
"Submissions will appear here after the deadline.": [
- "src/community/pages/Challenge.jsx:789"
+ "src/community/pages/Challenge.jsx:835"
],
"Discussion": [
"src/community/pages/Collection.jsx:39",
@@ -3566,7 +3599,7 @@
],
"Could not update follow status.": [
"src/community/pages/Collection.jsx:58",
- "src/community/pages/Space.jsx:171",
+ "src/community/pages/Space.jsx:175",
"src/community/pages/Studio.jsx:57"
],
"All collections": [
@@ -3579,7 +3612,7 @@
],
"Curated by": [
"src/community/pages/Collection.jsx:81",
- "src/community/pages/Space.jsx:292"
+ "src/community/pages/Space.jsx:296"
],
"In this collection": [
"src/community/pages/Collection.jsx:90"
@@ -3621,7 +3654,7 @@
],
"Finding project…": [
"src/community/pages/Commit.jsx:263",
- "src/community/pages/Project.jsx:643",
+ "src/community/pages/Project.jsx:646",
"src/community/pages/PullRequest.jsx:463",
"src/community/pages/PullRequests.jsx:58",
"src/community/pages/RemixTree.jsx:197"
@@ -3673,7 +3706,7 @@
"src/community/pages/Commit.jsx:382",
"src/community/pages/ManageProject.jsx:857",
"src/community/pages/ManageProject.jsx:980",
- "src/community/pages/ManageSpace.jsx:640",
+ "src/community/pages/ManageSpace.jsx:643",
"src/community/pages/Support.jsx:137"
],
"MistWarp compared with Scratch and TurboWarp": [
@@ -3715,7 +3748,7 @@
"Could not load more projects.": [
"src/community/pages/Explore.jsx:172",
"src/community/pages/MyStuff.jsx:1588",
- "src/community/pages/Profile.jsx:630",
+ "src/community/pages/Profile.jsx:640",
"src/community/pages/Search.jsx:125"
],
"Filter by category": [
@@ -3751,7 +3784,7 @@
],
"No followers yet": [
"src/community/pages/Followers.jsx:30",
- "src/community/pages/Profile.jsx:722"
+ "src/community/pages/Profile.jsx:732"
],
"Could not load who this user follows.": [
"src/community/pages/Followers.jsx:44"
@@ -3790,7 +3823,7 @@
"src/community/pages/Group.jsx:217",
"src/community/pages/MyStuff.jsx:209",
"src/community/pages/MyStuff.jsx:1594",
- "src/community/pages/Space.jsx:313",
+ "src/community/pages/Space.jsx:317",
"src/community/pages/Studio.jsx:144"
],
"Projects assigned to this group will appear here.": [
@@ -3853,7 +3886,7 @@
],
"credits": [
"src/community/pages/Group.jsx:256",
- "src/community/pages/Wallet.jsx:165"
+ "src/community/pages/Wallet.jsx:180"
],
"Request to join": [
"src/community/pages/Group.jsx:259"
@@ -3942,7 +3975,7 @@
],
"Explore projects": [
"src/community/pages/Home.jsx:120",
- "src/community/pages/Wallet.jsx:283"
+ "src/community/pages/Wallet.jsx:306"
],
"Find a project you like and follow its creator.": [
"src/community/pages/Home.jsx:120"
@@ -4067,9 +4100,9 @@
],
"Followers": [
"src/community/pages/Leaderboard.jsx:23",
- "src/community/pages/Profile.jsx:701",
+ "src/community/pages/Profile.jsx:711",
"src/community/pages/Studio.jsx:125",
- "src/community/pages/admin/UserDetailCard.jsx:382"
+ "src/community/pages/admin/UserDetailCard.jsx:438"
],
"Loves": [
"src/community/pages/Leaderboard.jsx:29",
@@ -4095,7 +4128,7 @@
],
"Account #{value1}": [
"src/community/pages/Leaderboard.jsx:156",
- "src/community/pages/Profile.jsx:924"
+ "src/community/pages/Profile.jsx:934"
],
"Account number unavailable": [
"src/community/pages/Leaderboard.jsx:157"
@@ -4130,7 +4163,7 @@
],
"Could not load this project.": [
"src/community/pages/ManageProject.jsx:201",
- "src/community/pages/Project.jsx:635"
+ "src/community/pages/Project.jsx:638"
],
"Project titles cannot be empty.": [
"src/community/pages/ManageProject.jsx:299"
@@ -4183,7 +4216,7 @@
"Credits earned": [
"src/community/pages/ManageProject.jsx:562",
"src/community/pages/MyStuff.jsx:239",
- "src/community/pages/admin/UserDetailCard.jsx:386"
+ "src/community/pages/admin/UserDetailCard.jsx:442"
],
"Credits per buyer": [
"src/community/pages/ManageProject.jsx:573"
@@ -4258,7 +4291,7 @@
],
"Save changes": [
"src/community/pages/ManageProject.jsx:653",
- "src/community/pages/ManageSpace.jsx:653",
+ "src/community/pages/ManageSpace.jsx:656",
"src/community/pages/News.jsx:300",
"src/community/pages/Theme.jsx:258"
],
@@ -4282,7 +4315,7 @@
],
"Visibility": [
"src/community/pages/ManageProject.jsx:688",
- "src/community/pages/ManageSpace.jsx:644",
+ "src/community/pages/ManageSpace.jsx:647",
"src/community/pages/Spaces.jsx:264",
"src/community/pages/project/ForkSetupModal.jsx:59"
],
@@ -4300,7 +4333,7 @@
],
"Turn off comments": [
"src/community/pages/ManageProject.jsx:702",
- "src/community/pages/Profile.jsx:741",
+ "src/community/pages/Profile.jsx:751",
"src/community/pages/project/ProjectActivity.jsx:90"
],
"Save publishing settings": [
@@ -4379,7 +4412,7 @@
],
"Owning group": [
"src/community/pages/ManageProject.jsx:841",
- "src/community/pages/ManageSpace.jsx:637"
+ "src/community/pages/ManageSpace.jsx:640"
],
"Rotur group tag": [
"src/community/pages/ManageProject.jsx:844"
@@ -4404,7 +4437,7 @@
],
"Transfer": [
"src/community/pages/ManageProject.jsx:858",
- "src/community/pages/ManageSpace.jsx:640"
+ "src/community/pages/ManageSpace.jsx:643"
],
"Review player feedback and recent runtime health.": [
"src/community/pages/ManageProject.jsx:866",
@@ -4465,7 +4498,7 @@
"src/community/pages/ManageProject.jsx:929",
"src/community/pages/PullRequest.jsx:497",
"src/community/pages/admin/ErrorManager.jsx:206",
- "src/community/pages/admin/UserDetailCard.jsx:64"
+ "src/community/pages/admin/UserDetailCard.jsx:65"
],
"Working": [
"src/community/pages/ManageProject.jsx:930"
@@ -4524,282 +4557,320 @@
"src/community/pages/ManageProject.jsx:1134"
],
"General": [
- "src/community/pages/ManageSpace.jsx:25",
+ "src/community/pages/ManageSpace.jsx:26",
"src/community/pages/News.jsx:236"
],
"Curators": [
- "src/community/pages/ManageSpace.jsx:26",
- "src/community/pages/ManageSpace.jsx:739",
+ "src/community/pages/ManageSpace.jsx:27",
+ "src/community/pages/ManageSpace.jsx:742",
"src/community/pages/Studio.jsx:87",
"src/community/pages/Studio.jsx:158"
],
"Danger zone": [
- "src/community/pages/ManageSpace.jsx:28",
- "src/community/pages/ManageSpace.jsx:37"
+ "src/community/pages/ManageSpace.jsx:29",
+ "src/community/pages/ManageSpace.jsx:38"
],
"Host team": [
- "src/community/pages/ManageSpace.jsx:36"
+ "src/community/pages/ManageSpace.jsx:37"
+ ],
+ "Remove project?": [
+ "src/community/pages/ManageSpace.jsx:68"
+ ],
+ "Remove {project} from {space}? The project itself will not be deleted.": [
+ "src/community/pages/ManageSpace.jsx:69"
+ ],
+ "Remove project": [
+ "src/community/pages/ManageSpace.jsx:70"
+ ],
+ "Publish final results?": [
+ "src/community/pages/ManageSpace.jsx:75"
+ ],
+ "Voting and judging are still open. Publishing now closes them and reveals the final rankings to participants. You cannot hide the results again.": [
+ "src/community/pages/ManageSpace.jsx:77"
+ ],
+ "This reveals the final rankings to participants. You cannot hide the results again.": [
+ "src/community/pages/ManageSpace.jsx:78"
+ ],
+ "Publish results": [
+ "src/community/pages/ManageSpace.jsx:79",
+ "src/community/pages/ManageSpace.jsx:736"
+ ],
+ "Delete {space}?": [
+ "src/community/pages/ManageSpace.jsx:84"
+ ],
+ "This permanently deletes the space. Its projects will not be deleted.": [
+ "src/community/pages/ManageSpace.jsx:85"
+ ],
+ "Delete space": [
+ "src/community/pages/ManageSpace.jsx:86",
+ "src/community/pages/ManageSpace.jsx:782",
+ "src/community/pages/ManageSpace.jsx:788"
+ ],
+ "Transfer space?": [
+ "src/community/pages/ManageSpace.jsx:91"
+ ],
+ "Transfer \"{space}\" to @{owner}? Its group assignment will be cleared and your access may change.": [
+ "src/community/pages/ManageSpace.jsx:92"
+ ],
+ "Transfer to @{owner}": [
+ "src/community/pages/ManageSpace.jsx:93"
],
"Choose an image smaller than 1 MB.": [
- "src/community/pages/ManageSpace.jsx:283"
+ "src/community/pages/ManageSpace.jsx:286"
],
"Submissions must open first, close later, and judging must end last.": [
- "src/community/pages/ManageSpace.jsx:317"
+ "src/community/pages/ManageSpace.jsx:320"
],
"Loading management tools…": [
- "src/community/pages/ManageSpace.jsx:545",
- "src/community/pages/ManageSpace.jsx:566"
+ "src/community/pages/ManageSpace.jsx:548",
+ "src/community/pages/ManageSpace.jsx:569"
],
"Sign in to manage this space.": [
- "src/community/pages/ManageSpace.jsx:550"
+ "src/community/pages/ManageSpace.jsx:553"
],
"Working…": [
- "src/community/pages/ManageSpace.jsx:585",
+ "src/community/pages/ManageSpace.jsx:588",
"src/community/pages/admin/AdminActionDialog.jsx:16"
],
"Back to {value1}": [
- "src/community/pages/ManageSpace.jsx:599"
+ "src/community/pages/ManageSpace.jsx:602"
],
"Manage {value1}": [
- "src/community/pages/ManageSpace.jsx:600"
+ "src/community/pages/ManageSpace.jsx:603"
],
"View public page": [
- "src/community/pages/ManageSpace.jsx:603"
+ "src/community/pages/ManageSpace.jsx:606"
],
"Space settings": [
- "src/community/pages/ManageSpace.jsx:607"
+ "src/community/pages/ManageSpace.jsx:610"
],
"Voting": [
- "src/community/pages/ManageSpace.jsx:619"
+ "src/community/pages/ManageSpace.jsx:622"
],
"Challenge details": [
- "src/community/pages/ManageSpace.jsx:630"
+ "src/community/pages/ManageSpace.jsx:633"
],
"General details": [
- "src/community/pages/ManageSpace.jsx:630"
+ "src/community/pages/ManageSpace.jsx:633"
],
"Give participants the context they need before they enter.": [
- "src/community/pages/ManageSpace.jsx:631"
+ "src/community/pages/ManageSpace.jsx:634"
],
"Change how this space appears and who can submit projects.": [
- "src/community/pages/ManageSpace.jsx:631"
+ "src/community/pages/ManageSpace.jsx:634"
],
"No thumbnail": [
- "src/community/pages/ManageSpace.jsx:634"
+ "src/community/pages/ManageSpace.jsx:637"
],
"Uploading…": [
- "src/community/pages/ManageSpace.jsx:634",
+ "src/community/pages/ManageSpace.jsx:637",
"src/community/pages/MyStuff.jsx:1243"
],
"Choose image": [
- "src/community/pages/ManageSpace.jsx:634"
+ "src/community/pages/ManageSpace.jsx:637"
],
"PNG, JPG, or WebP up to 1 MB. A 4:3 image works best.": [
- "src/community/pages/ManageSpace.jsx:634"
+ "src/community/pages/ManageSpace.jsx:637"
],
"Name": [
- "src/community/pages/ManageSpace.jsx:635",
- "src/community/pages/ManageSpace.jsx:704",
+ "src/community/pages/ManageSpace.jsx:638",
+ "src/community/pages/ManageSpace.jsx:707",
"src/community/pages/Spaces.jsx:241",
"src/community/pages/Theme.jsx:263",
"src/community/pages/Themes.jsx:213",
- "src/community/pages/admin/UserManager.jsx:105"
+ "src/community/pages/admin/UserManager.jsx:113"
],
"Description": [
- "src/community/pages/ManageSpace.jsx:636",
- "src/community/pages/ManageSpace.jsx:704",
+ "src/community/pages/ManageSpace.jsx:639",
+ "src/community/pages/ManageSpace.jsx:707",
"src/community/pages/Roadmap.jsx:495",
"src/community/pages/Theme.jsx:264",
"src/community/pages/Themes.jsx:214"
],
"Optional Rotur group tag": [
- "src/community/pages/ManageSpace.jsx:637"
+ "src/community/pages/ManageSpace.jsx:640"
],
"Enter a group tag to transfer this space into the group. Clear it to move the space back out.": [
- "src/community/pages/ManageSpace.jsx:637"
+ "src/community/pages/ManageSpace.jsx:640"
],
"Transfer to another user": [
- "src/community/pages/ManageSpace.jsx:639"
+ "src/community/pages/ManageSpace.jsx:642"
],
"The new owner receives this {value1}. Its group assignment is cleared.": [
- "src/community/pages/ManageSpace.jsx:639"
+ "src/community/pages/ManageSpace.jsx:642"
],
"Optional theme or prompt": [
- "src/community/pages/ManageSpace.jsx:642"
+ "src/community/pages/ManageSpace.jsx:645"
],
"Eligibility, team rules, allowed tools, and anything that could disqualify an entry": [
- "src/community/pages/ManageSpace.jsx:642"
+ "src/community/pages/ManageSpace.jsx:645"
],
"Let people add their own shared or unlisted projects.": [
- "src/community/pages/ManageSpace.jsx:648"
+ "src/community/pages/ManageSpace.jsx:651"
],
"Open submissions": [
- "src/community/pages/ManageSpace.jsx:649"
+ "src/community/pages/ManageSpace.jsx:652"
],
"Each deadline changes what participants and voters can do.": [
- "src/community/pages/ManageSpace.jsx:659"
+ "src/community/pages/ManageSpace.jsx:662"
],
"Each deadline changes what participants and judges can do.": [
- "src/community/pages/ManageSpace.jsx:659"
+ "src/community/pages/ManageSpace.jsx:662"
],
"People can start entering projects.": [
- "src/community/pages/ManageSpace.jsx:662"
+ "src/community/pages/ManageSpace.jsx:665"
],
"Entries lock and voting starts.": [
- "src/community/pages/ManageSpace.jsx:663"
+ "src/community/pages/ManageSpace.jsx:666"
],
"Entries lock and judging starts.": [
- "src/community/pages/ManageSpace.jsx:663"
+ "src/community/pages/ManageSpace.jsx:666"
],
"The host can publish the final results.": [
- "src/community/pages/ManageSpace.jsx:664"
+ "src/community/pages/ManageSpace.jsx:667"
],
"Save schedule": [
- "src/community/pages/ManageSpace.jsx:666"
+ "src/community/pages/ManageSpace.jsx:669"
],
"Who picks the winner?": [
- "src/community/pages/ManageSpace.jsx:676",
- "src/community/pages/ManageSpace.jsx:681",
+ "src/community/pages/ManageSpace.jsx:679",
+ "src/community/pages/ManageSpace.jsx:684",
"src/community/pages/Spaces.jsx:283"
],
"Results are published, so this can no longer change.": [
- "src/community/pages/ManageSpace.jsx:677"
+ "src/community/pages/ManageSpace.jsx:680"
],
"You can switch until results are published.": [
- "src/community/pages/ManageSpace.jsx:677"
+ "src/community/pages/ManageSpace.jsx:680"
],
"Invited judges score each entry from 1 to 10 against your criteria.": [
- "src/community/pages/ManageSpace.jsx:686",
+ "src/community/pages/ManageSpace.jsx:689",
"src/community/pages/Spaces.jsx:288"
],
"Anyone signed in rates entries from 1 to 5 stars. The highest average wins. No judges needed.": [
- "src/community/pages/ManageSpace.jsx:691",
+ "src/community/pages/ManageSpace.jsx:694",
"src/community/pages/Spaces.jsx:293"
],
"Scoring criteria": [
- "src/community/pages/ManageSpace.jsx:700"
+ "src/community/pages/ManageSpace.jsx:703"
],
"Scoring has started, so the criteria are locked.": [
- "src/community/pages/ManageSpace.jsx:701"
+ "src/community/pages/ManageSpace.jsx:704"
],
"Judges score each entry from 1 to 10. Weights decide how much each criterion counts.": [
- "src/community/pages/ManageSpace.jsx:701"
+ "src/community/pages/ManageSpace.jsx:704"
],
"Weight {value1}": [
- "src/community/pages/ManageSpace.jsx:704"
+ "src/community/pages/ManageSpace.jsx:707"
],
"{value1} weight, {value2} of 5": [
- "src/community/pages/ManageSpace.jsx:704"
+ "src/community/pages/ManageSpace.jsx:707"
],
"Add criterion": [
- "src/community/pages/ManageSpace.jsx:706"
+ "src/community/pages/ManageSpace.jsx:709"
],
"Signed-in users can rate entries from 1 to 5 during judging. Audience ratings are shown separately and do not change the winner.": [
- "src/community/pages/ManageSpace.jsx:709"
+ "src/community/pages/ManageSpace.jsx:712"
],
"Audience ratings": [
- "src/community/pages/ManageSpace.jsx:710"
+ "src/community/pages/ManageSpace.jsx:713"
],
"Judges accept an invitation before they can score entries.": [
- "src/community/pages/ManageSpace.jsx:719"
+ "src/community/pages/ManageSpace.jsx:722"
],
"Search for a judge": [
- "src/community/pages/ManageSpace.jsx:722"
+ "src/community/pages/ManageSpace.jsx:725"
],
"Inviting…": [
- "src/community/pages/ManageSpace.jsx:724",
- "src/community/pages/ManageSpace.jsx:748"
+ "src/community/pages/ManageSpace.jsx:727",
+ "src/community/pages/ManageSpace.jsx:751"
],
"MistWarp user": [
- "src/community/pages/ManageSpace.jsx:724",
- "src/community/pages/ManageSpace.jsx:748"
+ "src/community/pages/ManageSpace.jsx:727",
+ "src/community/pages/ManageSpace.jsx:751"
],
"No available users found.": [
- "src/community/pages/ManageSpace.jsx:724",
- "src/community/pages/ManageSpace.jsx:750"
+ "src/community/pages/ManageSpace.jsx:727",
+ "src/community/pages/ManageSpace.jsx:753"
],
"Judge": [
- "src/community/pages/ManageSpace.jsx:726"
+ "src/community/pages/ManageSpace.jsx:729"
],
"Removing…": [
- "src/community/pages/ManageSpace.jsx:726",
- "src/community/pages/ManageSpace.jsx:757",
- "src/community/pages/ManageSpace.jsx:772",
+ "src/community/pages/ManageSpace.jsx:729",
+ "src/community/pages/ManageSpace.jsx:760",
+ "src/community/pages/ManageSpace.jsx:775",
"src/community/pages/Settings.jsx:790",
"src/community/pages/Settings.jsx:808"
],
"Remove": [
- "src/community/pages/ManageSpace.jsx:726",
- "src/community/pages/ManageSpace.jsx:757",
- "src/community/pages/ManageSpace.jsx:772",
+ "src/community/pages/ManageSpace.jsx:729",
+ "src/community/pages/ManageSpace.jsx:760",
+ "src/community/pages/ManageSpace.jsx:775",
"src/community/pages/News.jsx:279",
"src/community/pages/admin/AdminsSection.jsx:42"
],
"No judges have accepted yet.": [
- "src/community/pages/ManageSpace.jsx:726"
+ "src/community/pages/ManageSpace.jsx:729"
],
"Pending invitations": [
- "src/community/pages/ManageSpace.jsx:727",
- "src/community/pages/ManageSpace.jsx:759"
+ "src/community/pages/ManageSpace.jsx:730",
+ "src/community/pages/ManageSpace.jsx:762"
],
"Invited": [
- "src/community/pages/ManageSpace.jsx:727",
- "src/community/pages/ManageSpace.jsx:759"
+ "src/community/pages/ManageSpace.jsx:730",
+ "src/community/pages/ManageSpace.jsx:762"
],
"Publishing reveals the ranking by average audience rating on the public challenge page.": [
- "src/community/pages/ManageSpace.jsx:730"
+ "src/community/pages/ManageSpace.jsx:733"
],
"Publishing reveals the ranked judge scores on the public challenge page.": [
- "src/community/pages/ManageSpace.jsx:730"
+ "src/community/pages/ManageSpace.jsx:733"
],
"{value1} of {value2} entries rated": [
- "src/community/pages/ManageSpace.jsx:731"
+ "src/community/pages/ManageSpace.jsx:734"
],
"Publishing…": [
- "src/community/pages/ManageSpace.jsx:732",
+ "src/community/pages/ManageSpace.jsx:735",
"src/community/pages/Themes.jsx:216",
"src/community/pages/project/ReleaseList.jsx:95"
],
- "Publish results": [
- "src/community/pages/ManageSpace.jsx:733"
+ "You can publish results after submissions close.": [
+ "src/community/pages/ManageSpace.jsx:735"
],
"Results are live": [
- "src/community/pages/ManageSpace.jsx:733"
+ "src/community/pages/ManageSpace.jsx:736"
],
"Curators can edit this space and organise its projects. Invitations must be accepted before access is granted.": [
- "src/community/pages/ManageSpace.jsx:739"
+ "src/community/pages/ManageSpace.jsx:742"
],
"Search for someone to invite": [
- "src/community/pages/ManageSpace.jsx:743"
+ "src/community/pages/ManageSpace.jsx:746"
],
"Curator": [
- "src/community/pages/ManageSpace.jsx:757",
+ "src/community/pages/ManageSpace.jsx:760",
"src/community/pages/Studio.jsx:159"
],
"Cancelling…": [
- "src/community/pages/ManageSpace.jsx:759"
+ "src/community/pages/ManageSpace.jsx:762"
],
"Review entries or remove one that breaks the rules.": [
- "src/community/pages/ManageSpace.jsx:768"
+ "src/community/pages/ManageSpace.jsx:771"
],
"Add, find, and remove projects from this space.": [
- "src/community/pages/ManageSpace.jsx:768"
+ "src/community/pages/ManageSpace.jsx:771"
],
"Score submitted": [
- "src/community/pages/ManageSpace.jsx:772"
+ "src/community/pages/ManageSpace.jsx:775"
],
"View": [
- "src/community/pages/ManageSpace.jsx:772"
+ "src/community/pages/ManageSpace.jsx:775"
],
"No projects have been added yet.": [
- "src/community/pages/ManageSpace.jsx:773"
- ],
- "Delete space": [
- "src/community/pages/ManageSpace.jsx:779",
- "src/community/pages/ManageSpace.jsx:785"
+ "src/community/pages/ManageSpace.jsx:776"
],
"This permanently removes the space. Projects are not deleted.": [
- "src/community/pages/ManageSpace.jsx:779"
+ "src/community/pages/ManageSpace.jsx:782"
],
"Performance": [
"src/community/pages/MyStuff.jsx:134",
@@ -4841,7 +4912,7 @@
],
"Wallet": [
"src/community/pages/MyStuff.jsx:226",
- "src/community/pages/Wallet.jsx:156"
+ "src/community/pages/Wallet.jsx:171"
],
"Credits on Rotur": [
"src/community/pages/MyStuff.jsx:233"
@@ -4860,7 +4931,7 @@
"src/community/pages/MyStuff.jsx:513",
"src/community/pages/PaidPerks.jsx:218",
"src/community/pages/admin/QuotaTile.jsx:15",
- "src/community/pages/admin/UserDetailCard.jsx:336"
+ "src/community/pages/admin/UserDetailCard.jsx:392"
],
"of {value1} used": [
"src/community/pages/MyStuff.jsx:258",
@@ -5009,15 +5080,15 @@
],
"Delete project?": [
"src/community/pages/MyStuff.jsx:1306",
- "src/community/pages/Project.jsx:725",
+ "src/community/pages/Project.jsx:728",
"src/community/pages/admin/ProjectManager.jsx:68",
- "src/community/pages/admin/UserDetailCard.jsx:189"
+ "src/community/pages/admin/UserDetailCard.jsx:232"
],
"Delete project": [
"src/community/pages/MyStuff.jsx:1307",
- "src/community/pages/Project.jsx:726",
+ "src/community/pages/Project.jsx:729",
"src/community/pages/admin/ProjectManager.jsx:70",
- "src/community/pages/admin/UserDetailCard.jsx:191",
+ "src/community/pages/admin/UserDetailCard.jsx:234",
"src/community/pages/project/ProjectHeader.jsx:245"
],
"{value1} will move to Trash. You can restore it until its recovery period ends.": [
@@ -5057,7 +5128,7 @@
"src/community/pages/MyStuff.jsx:1496",
"src/community/pages/admin/ProjectManager.jsx:143",
"src/community/pages/admin/ReportsSection.jsx:88",
- "src/community/pages/admin/UserDetailCard.jsx:431"
+ "src/community/pages/admin/UserDetailCard.jsx:487"
],
"Share": [
"src/community/pages/MyStuff.jsx:1503"
@@ -5385,272 +5456,274 @@
"src/community/pages/Post.jsx:53"
],
"Moderation action failed.": [
- "src/community/pages/Profile.jsx:288"
+ "src/community/pages/Profile.jsx:293"
],
"Banned from MistWarp by site admins.": [
- "src/community/pages/Profile.jsx:297",
- "src/community/pages/Profile.jsx:456"
+ "src/community/pages/Profile.jsx:303",
+ "src/community/pages/Profile.jsx:464"
],
"Could not update follow.": [
- "src/community/pages/Profile.jsx:349"
+ "src/community/pages/Profile.jsx:355"
],
"Could not load this profile.": [
- "src/community/pages/Profile.jsx:465"
+ "src/community/pages/Profile.jsx:473"
],
"User not found": [
- "src/community/pages/Profile.jsx:469"
+ "src/community/pages/Profile.jsx:477"
],
"Browse projects": [
- "src/community/pages/Profile.jsx:470",
- "src/community/pages/Project.jsx:620",
- "src/community/pages/Project.jsx:632"
+ "src/community/pages/Profile.jsx:478",
+ "src/community/pages/Project.jsx:623",
+ "src/community/pages/Project.jsx:635"
],
"This user does not exist on Rotur.": [
- "src/community/pages/Profile.jsx:471"
+ "src/community/pages/Profile.jsx:479"
],
"Block {value1}?": [
- "src/community/pages/Profile.jsx:506"
+ "src/community/pages/Profile.jsx:514"
],
"Block user": [
- "src/community/pages/Profile.jsx:507"
+ "src/community/pages/Profile.jsx:515"
],
"Blocking…": [
- "src/community/pages/Profile.jsx:509"
+ "src/community/pages/Profile.jsx:517"
],
"You will stop receiving MistWarp comments and notifications from each other.": [
- "src/community/pages/Profile.jsx:513"
+ "src/community/pages/Profile.jsx:521"
],
"Not on MistWarp yet. This is {value1}'s Rotur profile.": [
- "src/community/pages/Profile.jsx:530"
+ "src/community/pages/Profile.jsx:538"
],
"Posts": [
- "src/community/pages/Profile.jsx:542"
+ "src/community/pages/Profile.jsx:550"
],
"Recent activity": [
- "src/community/pages/Profile.jsx:561"
+ "src/community/pages/Profile.jsx:569"
],
"View game library": [
- "src/community/pages/Profile.jsx:563"
+ "src/community/pages/Profile.jsx:571"
],
"Activity is private": [
- "src/community/pages/Profile.jsx:597"
+ "src/community/pages/Profile.jsx:607"
],
"No recent activity": [
- "src/community/pages/Profile.jsx:598",
- "src/community/pages/admin/UserDetailCard.jsx:501"
+ "src/community/pages/Profile.jsx:608",
+ "src/community/pages/admin/UserDetailCard.jsx:557"
],
"Games added to the library will appear here after they are played.": [
- "src/community/pages/Profile.jsx:602"
+ "src/community/pages/Profile.jsx:612"
],
"Unshared projects": [
- "src/community/pages/Profile.jsx:639"
+ "src/community/pages/Profile.jsx:649"
],
"Only admins can see these projects.": [
- "src/community/pages/Profile.jsx:640"
+ "src/community/pages/Profile.jsx:650"
],
"Recent reviews": [
- "src/community/pages/Profile.jsx:655"
+ "src/community/pages/Profile.jsx:665"
],
"Loading reviews…": [
- "src/community/pages/Profile.jsx:656",
+ "src/community/pages/Profile.jsx:666",
"src/community/pages/project/ReviewPanel.jsx:192"
],
"No reviews yet": [
- "src/community/pages/Profile.jsx:658",
+ "src/community/pages/Profile.jsx:668",
"src/community/pages/project/ReviewPanel.jsx:195"
],
"Reviews this user writes on projects will appear here.": [
- "src/community/pages/Profile.jsx:659"
+ "src/community/pages/Profile.jsx:669"
],
"{value1} out of 5 stars": [
- "src/community/pages/Profile.jsx:676",
+ "src/community/pages/Profile.jsx:686",
"src/community/pages/project/ReviewPanel.jsx:22"
],
"No written review.": [
- "src/community/pages/Profile.jsx:689"
+ "src/community/pages/Profile.jsx:699"
],
"People who follow this user will appear here.": [
- "src/community/pages/Profile.jsx:723"
+ "src/community/pages/Profile.jsx:733"
],
"Comments": [
- "src/community/pages/Profile.jsx:732",
- "src/community/pages/Space.jsx:319",
+ "src/community/pages/Profile.jsx:742",
+ "src/community/pages/Space.jsx:323",
"src/community/pages/Studio.jsx:86",
"src/community/pages/Studio.jsx:152",
- "src/community/pages/admin/UserDetailCard.jsx:267",
+ "src/community/pages/admin/UserDetailCard.jsx:323",
"src/community/pages/project/ProjectActivity.jsx:35"
],
"Turning on…": [
- "src/community/pages/Profile.jsx:738"
+ "src/community/pages/Profile.jsx:748"
],
"Turning off…": [
- "src/community/pages/Profile.jsx:738"
+ "src/community/pages/Profile.jsx:748"
],
"Turn on comments": [
- "src/community/pages/Profile.jsx:741",
+ "src/community/pages/Profile.jsx:751",
"src/community/pages/project/ProjectActivity.jsx:90"
],
"Published themes": [
- "src/community/pages/Profile.jsx:776"
+ "src/community/pages/Profile.jsx:786"
],
"Loading themes…": [
- "src/community/pages/Profile.jsx:778",
+ "src/community/pages/Profile.jsx:788",
"src/community/pages/Themes.jsx:198"
],
"Could not load published themes.": [
- "src/community/pages/Profile.jsx:780"
+ "src/community/pages/Profile.jsx:790"
],
"No published themes yet": [
- "src/community/pages/Profile.jsx:786"
+ "src/community/pages/Profile.jsx:796"
],
"Themes this user publishes will appear here.": [
- "src/community/pages/Profile.jsx:787"
+ "src/community/pages/Profile.jsx:797"
],
"following": [
- "src/community/pages/Profile.jsx:840"
+ "src/community/pages/Profile.jsx:850"
],
"Unfollowing…": [
- "src/community/pages/Profile.jsx:850"
+ "src/community/pages/Profile.jsx:860"
],
"Following…": [
- "src/community/pages/Profile.jsx:850"
+ "src/community/pages/Profile.jsx:860"
],
"Send {value1} credits on Rotur": [
- "src/community/pages/Profile.jsx:863",
+ "src/community/pages/Profile.jsx:873",
"src/community/pages/project/ProjectHeader.jsx:79"
],
"Donate": [
- "src/community/pages/Profile.jsx:865"
+ "src/community/pages/Profile.jsx:875"
],
"Unmute": [
- "src/community/pages/Profile.jsx:876",
+ "src/community/pages/Profile.jsx:886",
"src/community/pages/Settings.jsx:811"
],
"Mute": [
- "src/community/pages/Profile.jsx:876"
+ "src/community/pages/Profile.jsx:886"
],
"Unblock": [
- "src/community/pages/Profile.jsx:887",
+ "src/community/pages/Profile.jsx:897",
"src/community/pages/Settings.jsx:793",
"src/community/pages/admin/ExtensionManager.jsx:299"
],
"Block": [
- "src/community/pages/Profile.jsx:887"
+ "src/community/pages/Profile.jsx:897"
],
"Sign in to follow": [
- "src/community/pages/Profile.jsx:900"
+ "src/community/pages/Profile.jsx:910"
],
"Edit profile": [
- "src/community/pages/Profile.jsx:911"
+ "src/community/pages/Profile.jsx:921"
],
"About me": [
- "src/community/pages/Profile.jsx:915"
+ "src/community/pages/Profile.jsx:925"
],
"No bio yet.": [
- "src/community/pages/Profile.jsx:917"
+ "src/community/pages/Profile.jsx:927"
],
"Joined {value1}": [
- "src/community/pages/Profile.jsx:922"
+ "src/community/pages/Profile.jsx:932"
],
"Moderate @{value1}": [
- "src/community/pages/Profile.jsx:943"
+ "src/community/pages/Profile.jsx:953"
],
"Only admins can see these tools.": [
- "src/community/pages/Profile.jsx:944"
+ "src/community/pages/Profile.jsx:954"
],
"Banned": [
- "src/community/pages/Profile.jsx:947",
- "src/community/pages/admin/UserDetailCard.jsx:296",
- "src/community/pages/admin/UserManager.jsx:150"
+ "src/community/pages/Profile.jsx:957",
+ "src/community/pages/admin/UserDetailCard.jsx:352",
+ "src/community/pages/admin/UserManager.jsx:158",
+ "src/community/pages/admin/labels.js:5"
],
"Good standing": [
- "src/community/pages/Profile.jsx:947"
+ "src/community/pages/Profile.jsx:957",
+ "src/community/pages/admin/labels.js:2"
],
"Account standing": [
- "src/community/pages/Profile.jsx:953",
- "src/community/pages/admin/UserDetailCard.jsx:510"
+ "src/community/pages/Profile.jsx:963",
+ "src/community/pages/admin/UserDetailCard.jsx:566"
],
"Reason shown to the user": [
- "src/community/pages/Profile.jsx:961"
+ "src/community/pages/Profile.jsx:971"
],
"Standing updated.": [
- "src/community/pages/Profile.jsx:970",
- "src/community/pages/admin/UserDetailCard.jsx:160"
+ "src/community/pages/Profile.jsx:980",
+ "src/community/pages/admin/UserDetailCard.jsx:184"
],
"Private moderation message": [
- "src/community/pages/Profile.jsx:976"
+ "src/community/pages/Profile.jsx:986"
],
"Message sent.": [
- "src/community/pages/Profile.jsx:986",
- "src/community/pages/admin/UserDetailCard.jsx:165"
+ "src/community/pages/Profile.jsx:996",
+ "src/community/pages/admin/UserDetailCard.jsx:207"
],
"Send message": [
- "src/community/pages/Profile.jsx:988"
+ "src/community/pages/Profile.jsx:998"
],
"Profile comments enabled.": [
- "src/community/pages/Profile.jsx:997"
+ "src/community/pages/Profile.jsx:1007"
],
"Profile comments disabled.": [
- "src/community/pages/Profile.jsx:997"
+ "src/community/pages/Profile.jsx:1007"
],
"Enable comments": [
- "src/community/pages/Profile.jsx:999"
+ "src/community/pages/Profile.jsx:1009"
],
"Disable comments": [
- "src/community/pages/Profile.jsx:999"
+ "src/community/pages/Profile.jsx:1009"
],
"User unbanned.": [
- "src/community/pages/Profile.jsx:1007"
+ "src/community/pages/Profile.jsx:1017"
],
"User banned.": [
- "src/community/pages/Profile.jsx:1007"
+ "src/community/pages/Profile.jsx:1017"
],
"Unban user": [
- "src/community/pages/Profile.jsx:1009"
+ "src/community/pages/Profile.jsx:1019"
],
"Project not found": [
- "src/community/pages/Project.jsx:619",
- "src/community/pages/Project.jsx:631"
+ "src/community/pages/Project.jsx:622",
+ "src/community/pages/Project.jsx:634"
],
"This project link does not exist.": [
- "src/community/pages/Project.jsx:621"
+ "src/community/pages/Project.jsx:624"
],
"This project may have been deleted or unshared.": [
- "src/community/pages/Project.jsx:633"
+ "src/community/pages/Project.jsx:636"
],
"{value1} will be deleted permanently. This cannot be undone.": [
- "src/community/pages/Project.jsx:732"
+ "src/community/pages/Project.jsx:735"
],
"Run custom extensions without the sandbox?": [
- "src/community/pages/Project.jsx:738"
+ "src/community/pages/Project.jsx:741"
],
"Keep sandbox": [
- "src/community/pages/Project.jsx:739"
+ "src/community/pages/Project.jsx:742"
],
"Run anyway": [
- "src/community/pages/Project.jsx:740"
+ "src/community/pages/Project.jsx:743"
],
"This gives the project full access to your MistWarp account. It could read your login session, act as you, or change your data. Continue only if you trust the creator.": [
- "src/community/pages/Project.jsx:743"
+ "src/community/pages/Project.jsx:746"
],
"Confirm purchase": [
- "src/community/pages/Project.jsx:773"
+ "src/community/pages/Project.jsx:776"
],
"Pay {value1} credits": [
- "src/community/pages/Project.jsx:777"
+ "src/community/pages/Project.jsx:780"
],
"Waiting for Rotur…": [
- "src/community/pages/Project.jsx:781",
- "src/community/pages/Wallet.jsx:177"
+ "src/community/pages/Project.jsx:784",
+ "src/community/pages/Wallet.jsx:197"
],
"Buy {value1} for a one-time payment of {value2} credits and support its creator?": [
- "src/community/pages/Project.jsx:786"
+ "src/community/pages/Project.jsx:789"
],
"Rotur opens in a new window to take the payment.": [
- "src/community/pages/Project.jsx:788"
+ "src/community/pages/Project.jsx:791"
],
"{value1} blocks": [
- "src/community/pages/Project.jsx:842"
+ "src/community/pages/Project.jsx:845"
],
"{title} · Pull request #{index}": [
"src/community/pages/PullRequest.jsx:263"
@@ -5666,7 +5739,7 @@
],
"Closed": [
"src/community/pages/PullRequest.jsx:497",
- "src/community/pages/admin/UserDetailCard.jsx:64"
+ "src/community/pages/admin/UserDetailCard.jsx:65"
],
"wants to merge from": [
"src/community/pages/PullRequest.jsx:500"
@@ -6081,14 +6154,14 @@
],
"Previous": [
"src/community/pages/Roadmap.jsx:568",
- "src/community/pages/admin/UserManager.jsx:189"
+ "src/community/pages/admin/UserManager.jsx:197"
],
"Page {page} of {total}": [
"src/community/pages/Roadmap.jsx:569"
],
"Next": [
"src/community/pages/Roadmap.jsx:570",
- "src/community/pages/admin/UserManager.jsx:194"
+ "src/community/pages/admin/UserManager.jsx:202"
],
"View all": [
"src/community/pages/Roadmap.jsx:591",
@@ -6435,68 +6508,64 @@
"Delete your production save for {value1}? The project will start you with a new save next time.": [
"src/community/pages/Settings.jsx:1013"
],
- "Could not respond to the invitation.": [
- "src/community/pages/Space.jsx:185",
- "src/community/pages/Studio.jsx:76"
- ],
"Could not rate this space.": [
- "src/community/pages/Space.jsx:204"
+ "src/community/pages/Space.jsx:208"
],
"Loading space…": [
- "src/community/pages/Space.jsx:222"
+ "src/community/pages/Space.jsx:226"
],
"All spaces": [
- "src/community/pages/Space.jsx:235"
+ "src/community/pages/Space.jsx:239"
],
"Manage space": [
- "src/community/pages/Space.jsx:245"
+ "src/community/pages/Space.jsx:249"
],
"Created by": [
- "src/community/pages/Space.jsx:251",
+ "src/community/pages/Space.jsx:255",
"src/community/pages/Studio.jsx:126"
],
"You have been invited to curate this space.": [
- "src/community/pages/Space.jsx:257"
+ "src/community/pages/Space.jsx:261"
],
"Accept invitation": [
- "src/community/pages/Space.jsx:260"
+ "src/community/pages/Space.jsx:264"
],
"Curators can add and remove projects and update its details.": [
- "src/community/pages/Space.jsx:265"
+ "src/community/pages/Space.jsx:269"
],
"{count} comments": [
- "src/community/pages/Space.jsx:277"
+ "src/community/pages/Space.jsx:281"
],
"{count, plural, one {project} other {projects}}": [
- "src/community/pages/Space.jsx:281"
+ "src/community/pages/Space.jsx:285"
],
"{count, plural, one {follower} other {followers}}": [
- "src/community/pages/Space.jsx:282"
+ "src/community/pages/Space.jsx:286"
],
"{count, plural, one {team member} other {team members}}": [
- "src/community/pages/Space.jsx:283"
+ "src/community/pages/Space.jsx:287"
],
"Ends {date}": [
- "src/community/pages/Space.jsx:285"
+ "src/community/pages/Space.jsx:289"
],
"The people who choose and organise projects in this space.": [
- "src/community/pages/Space.jsx:293"
+ "src/community/pages/Space.jsx:297"
],
"This space is open for project submissions.": [
- "src/community/pages/Space.jsx:307"
+ "src/community/pages/Space.jsx:311"
],
"Curators choose the projects shown here.": [
- "src/community/pages/Space.jsx:307"
+ "src/community/pages/Space.jsx:311"
],
"Add the first project to get this space started.": [
- "src/community/pages/Space.jsx:314"
+ "src/community/pages/Space.jsx:318"
],
"The curators have not added anything yet.": [
- "src/community/pages/Space.jsx:314",
+ "src/community/pages/Space.jsx:318",
"src/community/pages/Studio.jsx:145"
],
"Talk about this space and reply to other people.": [
- "src/community/pages/Space.jsx:319"
+ "src/community/pages/Space.jsx:323"
],
"Your spaces": [
"src/community/pages/Spaces.jsx:20",
@@ -6957,73 +7026,82 @@
"src/community/pages/UserLibrary.jsx:84"
],
"Could not load your balance from Rotur.": [
- "src/community/pages/Wallet.jsx:73"
+ "src/community/pages/Wallet.jsx:76"
],
"Could not load purchase history.": [
- "src/community/pages/Wallet.jsx:90"
+ "src/community/pages/Wallet.jsx:100"
],
"Sign in to see your wallet.": [
- "src/community/pages/Wallet.jsx:102"
+ "src/community/pages/Wallet.jsx:112"
+ ],
+ "Could not get permission from Rotur. Try again.": [
+ "src/community/pages/Wallet.jsx:131"
],
"Daily credits claimed.": [
- "src/community/pages/Wallet.jsx:133"
+ "src/community/pages/Wallet.jsx:147"
],
"MistWarp needs your permission on Rotur to claim daily credits.": [
- "src/community/pages/Wallet.jsx:137"
+ "src/community/pages/Wallet.jsx:151"
],
"Could not claim daily credits.": [
- "src/community/pages/Wallet.jsx:143"
+ "src/community/pages/Wallet.jsx:157"
],
"Your balance": [
- "src/community/pages/Wallet.jsx:161"
+ "src/community/pages/Wallet.jsx:176"
+ ],
+ "Rotur is not sharing your balance with MistWarp. You can still see it on rotur.dev.": [
+ "src/community/pages/Wallet.jsx:185"
],
"Let MistWarp see your balance and transactions on Rotur.": [
- "src/community/pages/Wallet.jsx:170"
+ "src/community/pages/Wallet.jsx:190"
],
"Show my balance": [
- "src/community/pages/Wallet.jsx:179"
+ "src/community/pages/Wallet.jsx:199"
],
"You can claim daily credits again in {value1}h.": [
- "src/community/pages/Wallet.jsx:187"
+ "src/community/pages/Wallet.jsx:207"
],
"Claiming…": [
- "src/community/pages/Wallet.jsx:196"
+ "src/community/pages/Wallet.jsx:216"
],
"Claim daily credits": [
- "src/community/pages/Wallet.jsx:199"
+ "src/community/pages/Wallet.jsx:219"
],
"Open Rotur": [
- "src/community/pages/Wallet.jsx:201"
+ "src/community/pages/Wallet.jsx:221"
],
"Purchases": [
- "src/community/pages/Wallet.jsx:213"
+ "src/community/pages/Wallet.jsx:233"
],
"Wallet sections": [
- "src/community/pages/Wallet.jsx:218"
+ "src/community/pages/Wallet.jsx:238"
],
"Credits you spent and earned on MistWarp.": [
- "src/community/pages/Wallet.jsx:228"
+ "src/community/pages/Wallet.jsx:248"
],
"See your full wallet on rotur.dev": [
- "src/community/pages/Wallet.jsx:230"
+ "src/community/pages/Wallet.jsx:250"
],
"No MistWarp transactions yet": [
- "src/community/pages/Wallet.jsx:240"
+ "src/community/pages/Wallet.jsx:260"
],
"Buying projects and game items, donations and sales show up here.": [
- "src/community/pages/Wallet.jsx:242"
+ "src/community/pages/Wallet.jsx:262"
],
"Your transactions are on Rotur": [
- "src/community/pages/Wallet.jsx:247"
+ "src/community/pages/Wallet.jsx:267"
+ ],
+ "Rotur is not sharing them with MistWarp. See your full wallet on rotur.dev.": [
+ "src/community/pages/Wallet.jsx:270"
],
"Show your balance to see them here too.": [
- "src/community/pages/Wallet.jsx:248"
+ "src/community/pages/Wallet.jsx:271"
],
"No purchases yet": [
- "src/community/pages/Wallet.jsx:282"
+ "src/community/pages/Wallet.jsx:305"
],
"You have not bought any projects yet.": [
- "src/community/pages/Wallet.jsx:285"
+ "src/community/pages/Wallet.jsx:308"
],
"Add admin": [
"src/community/pages/admin/AdminsSection.jsx:22"
@@ -7249,19 +7327,17 @@
],
"Project unshared.": [
"src/community/pages/admin/ProjectManager.jsx:53",
- "src/community/pages/admin/UserDetailCard.jsx:181"
+ "src/community/pages/admin/UserDetailCard.jsx:223"
],
"Delete {value1} permanently?": [
- "src/community/pages/admin/ProjectManager.jsx:69",
- "src/community/pages/admin/UserDetailCard.jsx:190"
+ "src/community/pages/admin/ProjectManager.jsx:69"
],
"this project": [
"src/community/pages/admin/ProjectManager.jsx:69",
- "src/community/pages/admin/UserDetailCard.jsx:190"
+ "src/community/pages/admin/UserDetailCard.jsx:233"
],
"Project deleted.": [
- "src/community/pages/admin/ProjectManager.jsx:87",
- "src/community/pages/admin/UserDetailCard.jsx:208"
+ "src/community/pages/admin/ProjectManager.jsx:87"
],
"Search title, owner, or id": [
"src/community/pages/admin/ProjectManager.jsx:113"
@@ -7362,7 +7438,7 @@
"R2 storage": [
"src/community/pages/admin/StatsOverview.jsx:204"
],
- "{value1} objects · synced {value2} ago": [
+ "{value1} objects · synced {value2}": [
"src/community/pages/admin/StatsOverview.jsx:208"
],
"{value1} objects": [
@@ -7596,264 +7672,312 @@
"No data stored.": [
"src/community/pages/admin/StorageBreakdown.jsx:49"
],
- "Report on a {value1} by @{value2} about @{value3}": [
- "src/community/pages/admin/UserDetailCard.jsx:69"
- ],
- "Report on a {value1} by @{value2}": [
+ "{value1} report by @{value2} about @{value3}": [
"src/community/pages/admin/UserDetailCard.jsx:70"
],
+ "{value1} report by @{value2}": [
+ "src/community/pages/admin/UserDetailCard.jsx:71"
+ ],
+ "Closed as {value1} by @{value2}": [
+ "src/community/pages/admin/UserDetailCard.jsx:74"
+ ],
+ "Closed as {value1}": [
+ "src/community/pages/admin/UserDetailCard.jsx:75"
+ ],
+ "Could not load that user.": [
+ "src/community/pages/admin/UserDetailCard.jsx:136"
+ ],
+ "Action failed.": [
+ "src/community/pages/admin/UserDetailCard.jsx:170"
+ ],
+ "Ban @{value1}?": [
+ "src/community/pages/admin/UserDetailCard.jsx:195"
+ ],
+ "Suspend @{value1}?": [
+ "src/community/pages/admin/UserDetailCard.jsx:195"
+ ],
+ "They will be banned from MistWarp and Rotur and get a notification with your reason.": [
+ "src/community/pages/admin/UserDetailCard.jsx:197"
+ ],
+ "They will be suspended and get a notification with your reason.": [
+ "src/community/pages/admin/UserDetailCard.jsx:198"
+ ],
+ "Suspend user": [
+ "src/community/pages/admin/UserDetailCard.jsx:199"
+ ],
"Note saved.": [
- "src/community/pages/admin/UserDetailCard.jsx:173"
+ "src/community/pages/admin/UserDetailCard.jsx:215"
+ ],
+ "Move {value1} to its owner's trash? They can restore it from there.": [
+ "src/community/pages/admin/UserDetailCard.jsx:233"
+ ],
+ "Project moved to trash.": [
+ "src/community/pages/admin/UserDetailCard.jsx:251"
+ ],
+ "Could not delete this project.": [
+ "src/community/pages/admin/UserDetailCard.jsx:255"
],
"Back to list": [
- "src/community/pages/admin/UserDetailCard.jsx:224",
- "src/community/pages/admin/UserDetailCard.jsx:286"
+ "src/community/pages/admin/UserDetailCard.jsx:280",
+ "src/community/pages/admin/UserDetailCard.jsx:342"
],
"Loading user details…": [
- "src/community/pages/admin/UserDetailCard.jsx:229"
+ "src/community/pages/admin/UserDetailCard.jsx:285"
],
"Loved {value1}": [
- "src/community/pages/admin/UserDetailCard.jsx:244"
+ "src/community/pages/admin/UserDetailCard.jsx:300"
],
"Favorited {value1}": [
- "src/community/pages/admin/UserDetailCard.jsx:245"
+ "src/community/pages/admin/UserDetailCard.jsx:301"
],
"Shared {value1}": [
- "src/community/pages/admin/UserDetailCard.jsx:246"
+ "src/community/pages/admin/UserDetailCard.jsx:302"
],
"Remixed {value1} as {value2}": [
- "src/community/pages/admin/UserDetailCard.jsx:247"
+ "src/community/pages/admin/UserDetailCard.jsx:303"
],
"Released {value1} of {value2}": [
- "src/community/pages/admin/UserDetailCard.jsx:248"
+ "src/community/pages/admin/UserDetailCard.jsx:304"
],
"On project {value1}": [
- "src/community/pages/admin/UserDetailCard.jsx:254"
+ "src/community/pages/admin/UserDetailCard.jsx:310"
],
"On the profile of @{value1}": [
- "src/community/pages/admin/UserDetailCard.jsx:255"
+ "src/community/pages/admin/UserDetailCard.jsx:311"
],
"In space {value1}": [
- "src/community/pages/admin/UserDetailCard.jsx:256"
+ "src/community/pages/admin/UserDetailCard.jsx:312"
],
"On bounty {value1}": [
- "src/community/pages/admin/UserDetailCard.jsx:257"
+ "src/community/pages/admin/UserDetailCard.jsx:313"
],
"On a roadmap idea": [
- "src/community/pages/admin/UserDetailCard.jsx:258"
+ "src/community/pages/admin/UserDetailCard.jsx:314"
],
"On pull request {value1} of project {value2}": [
- "src/community/pages/admin/UserDetailCard.jsx:259"
+ "src/community/pages/admin/UserDetailCard.jsx:315"
],
"Moderation": [
- "src/community/pages/admin/UserDetailCard.jsx:269"
+ "src/community/pages/admin/UserDetailCard.jsx:325"
],
"Student": [
- "src/community/pages/admin/UserDetailCard.jsx:300"
+ "src/community/pages/admin/UserDetailCard.jsx:356"
],
"Under 18": [
- "src/community/pages/admin/UserDetailCard.jsx:301",
- "src/community/pages/admin/UserManager.jsx:76",
- "src/community/pages/admin/UserManager.jsx:154"
+ "src/community/pages/admin/UserDetailCard.jsx:357",
+ "src/community/pages/admin/UserManager.jsx:84",
+ "src/community/pages/admin/UserManager.jsx:162"
],
"Copy Rotur ID": [
- "src/community/pages/admin/UserDetailCard.jsx:305"
+ "src/community/pages/admin/UserDetailCard.jsx:361"
],
"No Rotur ID recorded": [
- "src/community/pages/admin/UserDetailCard.jsx:309"
+ "src/community/pages/admin/UserDetailCard.jsx:365"
],
"Public profile": [
- "src/community/pages/admin/UserDetailCard.jsx:315"
+ "src/community/pages/admin/UserDetailCard.jsx:371"
],
"Joined MistWarp": [
- "src/community/pages/admin/UserDetailCard.jsx:321"
+ "src/community/pages/admin/UserDetailCard.jsx:377"
],
"Unknown": [
- "src/community/pages/admin/UserDetailCard.jsx:322",
- "src/community/pages/admin/UserDetailCard.jsx:337"
- ],
- "{value1} ago": [
- "src/community/pages/admin/UserDetailCard.jsx:323",
- "src/community/pages/admin/UserDetailCard.jsx:327"
+ "src/community/pages/admin/UserDetailCard.jsx:378",
+ "src/community/pages/admin/UserDetailCard.jsx:393"
],
"Last signed in": [
- "src/community/pages/admin/UserDetailCard.jsx:326"
+ "src/community/pages/admin/UserDetailCard.jsx:382"
],
"Not in the last 7 days": [
- "src/community/pages/admin/UserDetailCard.jsx:327"
+ "src/community/pages/admin/UserDetailCard.jsx:383"
],
- "{value1} active sessions": [
- "src/community/pages/admin/UserDetailCard.jsx:328"
+ "{value1, plural, one {# active session} other {# active sessions}}": [
+ "src/community/pages/admin/UserDetailCard.jsx:384"
],
"Plan": [
- "src/community/pages/admin/UserDetailCard.jsx:331"
+ "src/community/pages/admin/UserDetailCard.jsx:387"
],
"Free": [
- "src/community/pages/admin/UserDetailCard.jsx:332"
+ "src/community/pages/admin/UserDetailCard.jsx:388"
],
"Last known; Rotur did not answer": [
- "src/community/pages/admin/UserDetailCard.jsx:333"
+ "src/community/pages/admin/UserDetailCard.jsx:389"
],
"{value1} of {value2}": [
- "src/community/pages/admin/UserDetailCard.jsx:338"
+ "src/community/pages/admin/UserDetailCard.jsx:394"
],
"{value1} shared · {value2} views · {value3} hearts": [
- "src/community/pages/admin/UserDetailCard.jsx:343"
+ "src/community/pages/admin/UserDetailCard.jsx:399"
],
"Reports about them": [
- "src/community/pages/admin/UserDetailCard.jsx:346"
+ "src/community/pages/admin/UserDetailCard.jsx:402"
],
"{value1} open": [
- "src/community/pages/admin/UserDetailCard.jsx:348",
+ "src/community/pages/admin/UserDetailCard.jsx:404",
"src/community/pages/project/PullList.jsx:58"
],
"None open": [
- "src/community/pages/admin/UserDetailCard.jsx:348"
+ "src/community/pages/admin/UserDetailCard.jsx:404"
+ ],
+ "User sections": [
+ "src/community/pages/admin/UserDetailCard.jsx:411"
],
"Admin note": [
- "src/community/pages/admin/UserDetailCard.jsx:360"
+ "src/community/pages/admin/UserDetailCard.jsx:416"
],
"Only admins see this. Note context for whoever looks at this account next.": [
- "src/community/pages/admin/UserDetailCard.jsx:363"
+ "src/community/pages/admin/UserDetailCard.jsx:419"
],
- "Last edited by @{value1} {value2} ago": [
- "src/community/pages/admin/UserDetailCard.jsx:370"
+ "Last edited by @{value1}, {value2}": [
+ "src/community/pages/admin/UserDetailCard.jsx:426"
],
"Save note": [
- "src/community/pages/admin/UserDetailCard.jsx:376"
+ "src/community/pages/admin/UserDetailCard.jsx:432"
],
"Account": [
- "src/community/pages/admin/UserDetailCard.jsx:380"
+ "src/community/pages/admin/UserDetailCard.jsx:436"
],
"Profile comments": [
- "src/community/pages/admin/UserDetailCard.jsx:388"
+ "src/community/pages/admin/UserDetailCard.jsx:444"
],
"Off": [
- "src/community/pages/admin/UserDetailCard.jsx:389"
+ "src/community/pages/admin/UserDetailCard.jsx:445"
],
"Reports they filed": [
- "src/community/pages/admin/UserDetailCard.jsx:390"
+ "src/community/pages/admin/UserDetailCard.jsx:446"
],
"None": [
- "src/community/pages/admin/UserDetailCard.jsx:396",
- "src/community/pages/admin/UserDetailCard.jsx:399"
+ "src/community/pages/admin/UserDetailCard.jsx:452",
+ "src/community/pages/admin/UserDetailCard.jsx:455"
],
"Classes they teach": [
- "src/community/pages/admin/UserDetailCard.jsx:398"
+ "src/community/pages/admin/UserDetailCard.jsx:454"
],
"Rotur marks accounts without a date of birth as under 18, so this may be an adult who has not added one.": [
- "src/community/pages/admin/UserDetailCard.jsx:403"
+ "src/community/pages/admin/UserDetailCard.jsx:459"
],
"Not shared": [
- "src/community/pages/admin/UserDetailCard.jsx:418"
+ "src/community/pages/admin/UserDetailCard.jsx:474"
],
"{value1} views · {value2} hearts · {value3} · edited {value4}": [
- "src/community/pages/admin/UserDetailCard.jsx:421"
+ "src/community/pages/admin/UserDetailCard.jsx:477"
],
"No projects": [
- "src/community/pages/admin/UserDetailCard.jsx:439"
+ "src/community/pages/admin/UserDetailCard.jsx:495"
],
"This account has not saved any projects.": [
- "src/community/pages/admin/UserDetailCard.jsx:440"
+ "src/community/pages/admin/UserDetailCard.jsx:496"
],
"About @{value1}": [
- "src/community/pages/admin/UserDetailCard.jsx:448"
+ "src/community/pages/admin/UserDetailCard.jsx:504"
],
"Nobody has reported this account or its content.": [
- "src/community/pages/admin/UserDetailCard.jsx:449"
+ "src/community/pages/admin/UserDetailCard.jsx:505"
],
"Filed by @{value1}": [
- "src/community/pages/admin/UserDetailCard.jsx:452"
+ "src/community/pages/admin/UserDetailCard.jsx:508"
],
"This account has not filed any reports.": [
- "src/community/pages/admin/UserDetailCard.jsx:453"
+ "src/community/pages/admin/UserDetailCard.jsx:509"
],
"reply": [
- "src/community/pages/admin/UserDetailCard.jsx:469"
+ "src/community/pages/admin/UserDetailCard.jsx:525"
],
"No comments": [
- "src/community/pages/admin/UserDetailCard.jsx:478"
+ "src/community/pages/admin/UserDetailCard.jsx:534"
],
"This account has not posted any comments that are still up.": [
- "src/community/pages/admin/UserDetailCard.jsx:479"
+ "src/community/pages/admin/UserDetailCard.jsx:535"
],
"Hearts, favorites, shares, remixes and releases show up here.": [
- "src/community/pages/admin/UserDetailCard.jsx:502"
+ "src/community/pages/admin/UserDetailCard.jsx:558"
],
"Standing": [
- "src/community/pages/admin/UserDetailCard.jsx:512"
+ "src/community/pages/admin/UserDetailCard.jsx:568"
],
"Reason (shown to the user)": [
- "src/community/pages/admin/UserDetailCard.jsx:519"
+ "src/community/pages/admin/UserDetailCard.jsx:575"
],
"Goes back to good standing on {value1}.": [
- "src/community/pages/admin/UserDetailCard.jsx:526"
+ "src/community/pages/admin/UserDetailCard.jsx:586"
],
"Banned by @{value1} on {value2}.": [
- "src/community/pages/admin/UserDetailCard.jsx:530"
+ "src/community/pages/admin/UserDetailCard.jsx:590"
],
"Changed from {value1} to {value2}": [
- "src/community/pages/admin/UserDetailCard.jsx:539"
+ "src/community/pages/admin/UserDetailCard.jsx:599"
],
"By @{value1} · {value2}": [
- "src/community/pages/admin/UserDetailCard.jsx:540"
+ "src/community/pages/admin/UserDetailCard.jsx:600"
],
"No standing changes recorded.": [
- "src/community/pages/admin/UserDetailCard.jsx:546"
+ "src/community/pages/admin/UserDetailCard.jsx:606"
],
"Sent to their notifications as a moderation message.": [
- "src/community/pages/admin/UserDetailCard.jsx:552"
+ "src/community/pages/admin/UserDetailCard.jsx:612"
],
"Send": [
- "src/community/pages/admin/UserDetailCard.jsx:559"
+ "src/community/pages/admin/UserDetailCard.jsx:619"
],
"Profile": [
- "src/community/pages/admin/UserDetailCard.jsx:563"
+ "src/community/pages/admin/UserDetailCard.jsx:623",
+ "src/community/pages/admin/labels.js:10"
],
"Turn on profile comments": [
- "src/community/pages/admin/UserDetailCard.jsx:565"
+ "src/community/pages/admin/UserDetailCard.jsx:625"
],
"Turn off profile comments": [
- "src/community/pages/admin/UserDetailCard.jsx:565"
+ "src/community/pages/admin/UserDetailCard.jsx:625"
+ ],
+ "Could not load users.": [
+ "src/community/pages/admin/UserManager.jsx:52"
],
"Everyone": [
- "src/community/pages/admin/UserManager.jsx:73"
+ "src/community/pages/admin/UserManager.jsx:81"
],
"Warned or banned": [
- "src/community/pages/admin/UserManager.jsx:74"
+ "src/community/pages/admin/UserManager.jsx:82"
],
"Joined this week": [
- "src/community/pages/admin/UserManager.jsx:75"
+ "src/community/pages/admin/UserManager.jsx:83"
],
"Search by username or Rotur ID": [
- "src/community/pages/admin/UserManager.jsx:87"
+ "src/community/pages/admin/UserManager.jsx:95"
],
"Search users": [
- "src/community/pages/admin/UserManager.jsx:88"
+ "src/community/pages/admin/UserManager.jsx:96"
],
"Sort users": [
- "src/community/pages/admin/UserManager.jsx:97"
+ "src/community/pages/admin/UserManager.jsx:105"
],
"Most followed": [
- "src/community/pages/admin/UserManager.jsx:106"
+ "src/community/pages/admin/UserManager.jsx:114"
+ ],
+ "Filter users": [
+ "src/community/pages/admin/UserManager.jsx:125"
],
"Loading users…": [
- "src/community/pages/admin/UserManager.jsx:124"
+ "src/community/pages/admin/UserManager.jsx:132"
],
- "Joined {value1} ago · {value2} projects · {value3} followers": [
- "src/community/pages/admin/UserManager.jsx:158"
+ "Joined {value1} · {value2} projects · {value3} followers": [
+ "src/community/pages/admin/UserManager.jsx:166"
],
"{value1} projects · {value2} followers": [
- "src/community/pages/admin/UserManager.jsx:159"
+ "src/community/pages/admin/UserManager.jsx:167"
],
"No users found": [
- "src/community/pages/admin/UserManager.jsx:180"
+ "src/community/pages/admin/UserManager.jsx:188"
],
"No users match that search or filter.": [
- "src/community/pages/admin/UserManager.jsx:181"
+ "src/community/pages/admin/UserManager.jsx:189"
],
"{value1}–{value2} of {value3}": [
- "src/community/pages/admin/UserManager.jsx:190"
+ "src/community/pages/admin/UserManager.jsx:198"
+ ],
+ "Warning": [
+ "src/community/pages/admin/labels.js:3"
+ ],
+ "Suspended": [
+ "src/community/pages/admin/labels.js:4"
],
"Add a fork project ID and title before sending.": [
"src/community/pages/project/ContributionPanel.jsx:111"
@@ -8007,6 +8131,9 @@
"Contribute": [
"src/community/pages/project/ProjectActivity.jsx:40"
],
+ "Buy this project to comment.": [
+ "src/community/pages/project/ProjectActivity.jsx:78"
+ ],
"Bounties on the parent project": [
"src/community/pages/project/ProjectBounties.jsx:47"
],
@@ -8130,6 +8257,9 @@
"Uses custom extensions, running in a sandbox. Saved data can persist to browser storage.": [
"src/community/pages/project/ProjectStage.jsx:100"
],
+ "Buy this project to react.": [
+ "src/community/pages/project/ProjectStage.jsx:110"
+ ],
"Remove from your library": [
"src/community/pages/project/ProjectStage.jsx:116"
],
@@ -8139,14 +8269,17 @@
"Sign in to save to your library": [
"src/community/pages/project/ProjectStage.jsx:117"
],
- "{value1} library, {value2} saves": [
- "src/community/pages/project/ProjectStage.jsx:118"
+ "Remove from library, {value1} saves": [
+ "src/community/pages/project/ProjectStage.jsx:119"
+ ],
+ "Save to library, {value1} saves": [
+ "src/community/pages/project/ProjectStage.jsx:120"
],
"Your playtime on this project": [
- "src/community/pages/project/ProjectStage.jsx:130"
+ "src/community/pages/project/ProjectStage.jsx:132"
],
"{value1} played": [
- "src/community/pages/project/ProjectStage.jsx:133"
+ "src/community/pages/project/ProjectStage.jsx:135"
],
"{value1} closed": [
"src/community/pages/project/PullList.jsx:59"
@@ -8282,5 +8415,8 @@
],
"Releases": [
"src/community/pages/project/VersionControlPanel.jsx:25"
+ ],
+ "MistWarp needs your permission on Rotur to do this.": [
+ "src/community/rotur.js:47"
]
}
diff --git a/src/community/translations/en.json b/src/community/translations/en.json
index 5f260e51d18..ebee8fb3b1a 100644
--- a/src/community/translations/en.json
+++ b/src/community/translations/en.json
@@ -101,7 +101,6 @@
"Asset changed": "Asset changed",
"No line changes to show.": "No line changes to show.",
"Explore sections": "Explore sections",
- "by ": "by ",
"Project page": "Project page",
"Loading project…": "Loading project…",
"Play project": "Play project",
@@ -1464,7 +1463,6 @@
"Paywalled at {value1} credits.": "Paywalled at {value1} credits.",
"{value1} credits to play this project.": "{value1} credits to play this project.",
"Buy for {value1} credits": "Buy for {value1} credits",
- "{value1} library, {value2} saves": "{value1} library, {value2} saves",
"{value1} played": "{value1} played",
"{value1} projects branch from the same original.": "{value1} projects branch from the same original.",
"Enter a version before publishing.": "Enter a version before publishing.",
@@ -1717,9 +1715,6 @@
"1 creator has joined.": "1 creator has joined.",
"{value1} creators have joined.": "{value1} creators have joined.",
"View challenge and enter": "View challenge and enter",
- "Played just now": "Played just now",
- "Last played {value1} ago": "Last played {value1} ago",
- "by": "by",
"1 game": "1 game",
"{value1} games": "{value1} games",
"Could not load your spaces.": "Could not load your spaces.",
@@ -1749,7 +1744,6 @@
"Sign in to react": "Sign in to react",
"Liked by {value1}": "Liked by {value1}",
"Disliked by {value1}": "Disliked by {value1}",
- "Played {value1} ago": "Played {value1} ago",
"This game library is private": "This game library is private",
"No library games with playtime yet": "No library games with playtime yet",
"1 library game played": "1 library game played",
@@ -1883,7 +1877,6 @@
"Local cache, durable R2 objects, upload queue, and memory.": "Local cache, durable R2 objects, upload queue, and memory.",
"Traffic, publishing, sessions, and player performance over time.": "Traffic, publishing, sessions, and player performance over time.",
"{value1} disk free": "{value1} disk free",
- "{value1} objects · synced {value2} ago": "{value1} objects · synced {value2} ago",
"{value1} objects": "{value1} objects",
"Local mode": "Local mode",
"{value1} waiting": "{value1} waiting",
@@ -1968,7 +1961,6 @@
"/ 10": "/ 10",
"audience": "audience",
"{value1} ratings": "{value1} ratings",
- "invited you to judge this challenge.": "invited you to judge this challenge.",
"Manage challenge": "Manage challenge",
"The host has not added rules yet.": "The host has not added rules yet.",
"Weight {value1} of 5": "Weight {value1} of 5",
@@ -2653,7 +2645,6 @@
"First place": "First place",
"1st": "1st",
"for": "for",
- "Winning entry by": "Winning entry by",
"{value1} average from {value2} ratings": "{value1} average from {value2} ratings",
"Scored {value1} out of 10 by the judges": "Scored {value1} out of 10 by the judges",
"/ 5 from {value1} ratings": "/ 5 from {value1} ratings",
@@ -2682,8 +2673,6 @@
"Your transactions are on Rotur": "Your transactions are on Rotur",
"Show your balance to see them here too.": "Show your balance to see them here too.",
"View account": "View account",
- "Report on a {value1} by @{value2} about @{value3}": "Report on a {value1} by @{value2} about @{value3}",
- "Report on a {value1} by @{value2}": "Report on a {value1} by @{value2}",
"Note saved.": "Note saved.",
"Loved {value1}": "Loved {value1}",
"Favorited {value1}": "Favorited {value1}",
@@ -2701,7 +2690,6 @@
"{value1} ago": "{value1} ago",
"Last signed in": "Last signed in",
"Not in the last 7 days": "Not in the last 7 days",
- "{value1} active sessions": "{value1} active sessions",
"Plan": "Plan",
"Free": "Free",
"Last known; Rotur did not answer": "Last known; Rotur did not answer",
@@ -2710,7 +2698,6 @@
"None open": "None open",
"Admin note": "Admin note",
"Only admins see this. Note context for whoever looks at this account next.": "Only admins see this. Note context for whoever looks at this account next.",
- "Last edited by @{value1} {value2} ago": "Last edited by @{value1} {value2} ago",
"Save note": "Save note",
"Account": "Account",
"Profile comments": "Profile comments",
@@ -2743,7 +2730,6 @@
"Joined this week": "Joined this week",
"Search by username or Rotur ID": "Search by username or Rotur ID",
"Search users": "Search users",
- "Joined {value1} ago · {value2} projects · {value3} followers": "Joined {value1} ago · {value2} projects · {value3} followers",
"{value1} projects · {value2} followers": "{value1} projects · {value2} followers",
"No users match that search or filter.": "No users match that search or filter.",
"On project {value1}": "On project {value1}",
@@ -2776,5 +2762,61 @@
"All entries": "All entries",
"Voting has closed. Signed-in members rated each entry from 1 to 5 stars, and the entry with the highest average rating won.": "Voting has closed. Signed-in members rated each entry from 1 to 5 stars, and the entry with the highest average rating won.",
"Voting has closed. The winner will be announced when the host publishes the results.": "Voting has closed. The winner will be announced when the host publishes the results.",
- "This challenge has finished. Entries are shown in their final ranking.": "This challenge has finished. Entries are shown in their final ranking."
+ "This challenge has finished. Entries are shown in their final ranking.": "This challenge has finished. Entries are shown in their final ranking.",
+ "You can publish results after submissions close.": "You can publish results after submissions close.",
+ "Could not get permission from Rotur. Try again.": "Could not get permission from Rotur. Try again.",
+ "{value1} objects · synced {value2}": "{value1} objects · synced {value2}",
+ "Action failed.": "Action failed.",
+ "Ban @{value1}?": "Ban @{value1}?",
+ "Suspend @{value1}?": "Suspend @{value1}?",
+ "They will be banned from MistWarp and Rotur and get a notification with your reason.": "They will be banned from MistWarp and Rotur and get a notification with your reason.",
+ "They will be suspended and get a notification with your reason.": "They will be suspended and get a notification with your reason.",
+ "Suspend user": "Suspend user",
+ "Move {value1} to its owner's trash? They can restore it from there.": "Move {value1} to its owner's trash? They can restore it from there.",
+ "Project moved to trash.": "Project moved to trash.",
+ "Last edited by @{value1}, {value2}": "Last edited by @{value1}, {value2}",
+ "Joined {value1} · {value2} projects · {value3} followers": "Joined {value1} · {value2} projects · {value3} followers",
+ "MistWarp needs your permission on Rotur to do this.": "MistWarp needs your permission on Rotur to do this.",
+ "by {user}": "by {user}",
+ "Last played {value1}": "Last played {value1}",
+ "Played {value1}": "Played {value1}",
+ "Date unknown": "Date unknown",
+ "Not set": "Not set",
+ "Winning entry by {user}": "Winning entry by {user}",
+ "Could not save your rating.": "Could not save your rating.",
+ "Could not save this score.": "Could not save this score.",
+ "Could not update your participation.": "Could not update your participation.",
+ "{user} invited you to judge this challenge.": "{user} invited you to judge this challenge.",
+ "Remove your submission before leaving the challenge.": "Remove your submission before leaving the challenge.",
+ "Challenge sections": "Challenge sections",
+ "The only entry is your own, and judges cannot score their own entry.": "The only entry is your own, and judges cannot score their own entry.",
+ "Remove project?": "Remove project?",
+ "Remove {project} from {space}? The project itself will not be deleted.": "Remove {project} from {space}? The project itself will not be deleted.",
+ "Remove project": "Remove project",
+ "Publish final results?": "Publish final results?",
+ "Voting and judging are still open. Publishing now closes them and reveals the final rankings to participants. You cannot hide the results again.": "Voting and judging are still open. Publishing now closes them and reveals the final rankings to participants. You cannot hide the results again.",
+ "This reveals the final rankings to participants. You cannot hide the results again.": "This reveals the final rankings to participants. You cannot hide the results again.",
+ "Delete {space}?": "Delete {space}?",
+ "This permanently deletes the space. Its projects will not be deleted.": "This permanently deletes the space. Its projects will not be deleted.",
+ "Transfer space?": "Transfer space?",
+ "Transfer \"{space}\" to @{owner}? Its group assignment will be cleared and your access may change.": "Transfer \"{space}\" to @{owner}? Its group assignment will be cleared and your access may change.",
+ "Transfer to @{owner}": "Transfer to @{owner}",
+ "Rotur is not sharing your balance with MistWarp. You can still see it on rotur.dev.": "Rotur is not sharing your balance with MistWarp. You can still see it on rotur.dev.",
+ "Rotur is not sharing them with MistWarp. See your full wallet on rotur.dev.": "Rotur is not sharing them with MistWarp. See your full wallet on rotur.dev.",
+ "{value1} report by @{value2} about @{value3}": "{value1} report by @{value2} about @{value3}",
+ "{value1} report by @{value2}": "{value1} report by @{value2}",
+ "Closed as {value1} by @{value2}": "Closed as {value1} by @{value2}",
+ "Closed as {value1}": "Closed as {value1}",
+ "Could not load that user.": "Could not load that user.",
+ "Could not delete this project.": "Could not delete this project.",
+ "{value1, plural, one {# active session} other {# active sessions}}": "{value1, plural, one {# active session} other {# active sessions}}",
+ "User sections": "User sections",
+ "Could not load users.": "Could not load users.",
+ "Filter users": "Filter users",
+ "Warning": "Warning",
+ "Suspended": "Suspended",
+ "Buy this project to comment.": "Buy this project to comment.",
+ "Buy this project to react.": "Buy this project to react.",
+ "Remove from library, {value1} saves": "Remove from library, {value1} saves",
+ "Save to library, {value1} saves": "Save to library, {value1} saves"
}
diff --git a/src/components/mw-chat/chat-composer.jsx b/src/components/mw-chat/chat-composer.jsx
index 93ffadfcd61..82fdab98982 100644
--- a/src/components/mw-chat/chat-composer.jsx
+++ b/src/components/mw-chat/chat-composer.jsx
@@ -186,6 +186,11 @@ const messages = defineMessages({
description: 'Button that asks Rotur for permission to sign chat messages',
id: 'mw.chat.signingEnable'
},
+ signingEnableFailed: {
+ defaultMessage: 'Could not turn on signing. Try again.',
+ description: 'Shown in the chat message box when asking Rotur for permission to sign messages fails',
+ id: 'mw.chat.signingEnableFailed'
+ },
signingDismiss: {
defaultMessage: 'Not now',
description: 'Button that hides the chat message signing prompt',
@@ -412,6 +417,7 @@ const Composer = ({apiRef, connection, intl, onClearReply, onEditLast, onJump, o
const [draft, setDraft] = useState('');
const [uploads, setUploads] = useState([]);
const [dismissed, setDismissed] = useState(readDismissed);
+ const [signingFailed, setSigningFailed] = useState(false);
const [, setTick] = useState(0);
const inputRef = useRef(null);
const fileRef = useRef(null);
@@ -547,6 +553,9 @@ const Composer = ({apiRef, connection, intl, onClearReply, onEditLast, onJump, o
else if (state.notice.kind === 'sign_failed') notice = intl.formatMessage(messages.signFailed);
else notice = state.notice.text;
}
+ if (!notice && signingFailed && state.signing === 'needs_permission') {
+ notice = intl.formatMessage(messages.signingEnableFailed);
+ }
return (
{
const status = response.status;
const error = new Error(data.error || 'Could not validate Rotur login');
error.status = status;
- if (status === 403) error.code = data.code || 'account_blocked';
+ const permissionError = /lacks permission|OAuth access tokens/i.test(data.error || '');
+ if (status === 403 && !permissionError) error.code = data.code || 'account_blocked';
else if (status === 429 || status >= 500) error.code = data.code || 'VALIDATOR_UNAVAILABLE';
else error.code = data.code || 'VALIDATOR_GENERATION_FAILED';
error.redirectUrl = data.redirect_url || 'https://rotur.dev/me';
@@ -207,6 +208,7 @@ const exchangeValidator = async roturToken => {
try {
validator = await requestValidator(roturToken, key);
} catch (error) {
+ if (error.data && RESTRICTED_CODES.includes(error.data.code)) throw error;
// Only MistWarp's own sign-in token can make app-ID validators, so
// the desktop app's and older tokens get 403 and use the old key.
// That needs validators:generate; without it, keep an earlier 401.
diff --git a/src/lib/originchats/device-key.js b/src/lib/originchats/device-key.js
index b263ae85f1e..aa0f3595265 100644
--- a/src/lib/originchats/device-key.js
+++ b/src/lib/originchats/device-key.js
@@ -65,7 +65,7 @@ const registerKey = async account => {
checkAccount(account);
if (!response.ok) {
const error = new Error(record.error || `Signing key registration failed (${response.status})`);
- if (response.status >= 400 && response.status < 500) {
+ if (response.status === 400 || response.status === 403 || response.status === 409) {
refused.add(account);
error.signingUnavailable = true;
}
diff --git a/src/lib/originchats/signing.js b/src/lib/originchats/signing.js
index 72a1639cbd4..81d048c735e 100644
--- a/src/lib/originchats/signing.js
+++ b/src/lib/originchats/signing.js
@@ -73,7 +73,11 @@ const verifyMessage = (message, signingUrl) => {
}, content)
.then(valid => (valid ? 'verified' : 'invalid'));
})
- .catch(() => 'unavailable'));
+ .catch(() => {
+ verifications.delete(key);
+ return 'unavailable';
+ }));
+ if (verifications.size > 500) verifications.delete(verifications.keys().next().value);
}
return verifications.get(key);
};
diff --git a/src/lib/rotur/oauth.js b/src/lib/rotur/oauth.js
index 21f9d306355..4f9526e8f41 100644
--- a/src/lib/rotur/oauth.js
+++ b/src/lib/rotur/oauth.js
@@ -21,6 +21,7 @@ const config = {
const STORAGE_KEY = 'mw:rotur-oauth';
const PENDING_KEY = 'mw:rotur-oauth-pending';
+const REDIRECT_ERROR_KEY = 'mw:rotur-oauth-error';
const CHANNEL = 'mw:rotur-oauth';
const LOCK = 'mw:rotur-oauth-refresh';
const POPUP_NAME = 'rotur-signin';
@@ -204,7 +205,14 @@ const awaitPopup = (popup, state) => new Promise((resolve, reject) => {
const signIn = async (scopes, {redirectFallback = true} = {}) => {
const popup = window.open('about:blank', POPUP_NAME, `popup,width=480,height=720,left=${
Math.max(0, (screen.width - 480) / 2)},top=${Math.max(0, (screen.height - 720) / 2)}`);
- const {verifier, challenge} = await pkce();
+ let verifier;
+ let challenge;
+ try {
+ ({verifier, challenge} = await pkce());
+ } catch (error) {
+ if (popup && !popup.closed) popup.close();
+ throw error;
+ }
const state = randomString();
if (!popup) {
if (!redirectFallback) throw oauthError('popup_blocked', 'Allow pop-ups for this site to sign in with Rotur');
@@ -261,6 +269,14 @@ const completeRedirect = async () => {
if (params.has('code')) {
session = await exchangeCode(params.get('code'), pending.verifier, redirectUriFor(false));
writeSession(session);
+ } else if (!isCancelled({code: params.get('error')})) {
+ throw oauthError(params.get('error'), params.get('error_description') || 'Rotur sign-in failed');
+ }
+ } catch (error) {
+ try {
+ sessionStorage.setItem(REDIRECT_ERROR_KEY, error.message || 'Rotur sign-in failed');
+ } catch (e) {
+ session = null;
}
} finally {
// A full load of the page they were on, so the router sees it too,
@@ -286,13 +302,16 @@ const refresh = stale => withLock(async () => {
}
let next;
try {
+ const fresh = await tokenRequest({grant_type: 'refresh_token', refresh_token: current.refreshToken});
next = {
- ...await tokenRequest({grant_type: 'refresh_token', refresh_token: current.refreshToken}),
+ ...fresh,
+ refreshToken: fresh.refreshToken || current.refreshToken,
+ scopes: fresh.scopes.length ? fresh.scopes : current.scopes,
subject: current.subject,
username: current.username
};
} catch (error) {
- if (error.code !== 'invalid_grant') throw error;
+ if (error.code !== 'invalid_grant' && error.code !== 'invalid_token' && error.status !== 401) throw error;
// Another tab without Web Locks may have won the race.
const latest = readSession();
if (latest && latest.refreshToken !== current.refreshToken) return latest;
@@ -328,7 +347,14 @@ const getAccessToken = async () => {
scheduleRefresh = session => {
clearTimeout(refreshTimer);
- if (!session || !session.refreshToken) return;
+ if (!session) return;
+ if (!session.refreshToken) {
+ refreshTimer = setTimeout(() => {
+ const latest = readSession();
+ if (latest && !latest.refreshToken && latest.expiresAt <= Date.now()) writeSession(null);
+ }, Math.max(0, session.expiresAt - Date.now()) + 1000);
+ return;
+ }
refreshTimer = setTimeout(() => {
getAccessToken().catch(() => {
refreshTimer = setTimeout(() => scheduleRefresh(readSession()), RETRY_DELAY);
@@ -372,7 +398,18 @@ if (typeof window !== 'undefined') {
scheduleRefresh(readSession());
}
+const takeRedirectError = () => {
+ try {
+ const message = sessionStorage.getItem(REDIRECT_ERROR_KEY);
+ sessionStorage.removeItem(REDIRECT_ERROR_KEY);
+ return message || '';
+ } catch (e) {
+ return '';
+ }
+};
+
export {
+ takeRedirectError,
completeRedirect,
configure,
getAccessToken,
diff --git a/src/lib/rotur/wallet.js b/src/lib/rotur/wallet.js
index d34c1511c23..aabd29eadf3 100644
--- a/src/lib/rotur/wallet.js
+++ b/src/lib/rotur/wallet.js
@@ -38,7 +38,7 @@ const getWallet = async () => {
}
const me = await rotur.me.get();
if (!me || typeof me['sys.currency'] !== 'number') {
- return {allowed: false, balance: null, transactions: []};
+ return {allowed: false, hidden: true, balance: null, transactions: []};
}
return {
allowed: true,
diff --git a/src/lib/themes/custom-themes.js b/src/lib/themes/custom-themes.js
index 212f81f2079..6f183df5b13 100644
--- a/src/lib/themes/custom-themes.js
+++ b/src/lib/themes/custom-themes.js
@@ -791,6 +791,7 @@ class CustomThemeManager {
}
}
} catch (e) {
+ if (e && e.name === 'SecurityError') return;
console.error('Failed to load custom themes from storage:', e);
}
}
diff --git a/src/lib/tw-translations/default-messages.json b/src/lib/tw-translations/default-messages.json
index 80721edde8f..6552db825d9 100644
--- a/src/lib/tw-translations/default-messages.json
+++ b/src/lib/tw-translations/default-messages.json
@@ -439,6 +439,7 @@
"mw.chat.signFailed": "Your message could not be signed, so it was not sent. Try again.",
"mw.chat.signingPrompt": "Sign your messages so others can check they really came from you.",
"mw.chat.signingEnable": "Turn on signing",
+ "mw.chat.signingEnableFailed": "Could not turn on signing. Try again.",
"mw.chat.signingDismiss": "Not now",
"mw.chat.direct.newLabel": "Rotur username",
"mw.chat.direct.newButton": "Message",
diff --git a/test/unit/community-rich-text.test.jsx b/test/unit/community-rich-text.test.jsx
new file mode 100644
index 00000000000..89425dcab2d
--- /dev/null
+++ b/test/unit/community-rich-text.test.jsx
@@ -0,0 +1,26 @@
+import React from 'react';
+import {renderToStaticMarkup} from 'react-dom/server';
+import {createRichTranslator, createTranslator} from '../../src/community/i18n.jsx';
+import {timeAgoText} from '../../src/community/format.js';
+
+describe('community rich text', () => {
+ test('puts elements inside a translated sentence', () => {
+ const rich = createRichTranslator(createTranslator('en', {}));
+ const markup = renderToStaticMarkup(
+ {rich('by {user}', {user: {'sam'} })}
+ );
+ expect(markup).toBe('by sam
');
+ });
+
+ test('follows the word order of the translation', () => {
+ const rich = createRichTranslator(createTranslator('fr', {'by {user}': '{user} l’a créé'}));
+ const markup = renderToStaticMarkup({rich('by {user}', {user: {'sam'} })}
);
+ expect(markup).toBe('sam l’a créé
');
+ });
+
+ test('says "just now" without adding "ago"', () => {
+ expect(timeAgoText(Date.now())).toBe('just now');
+ expect(timeAgoText(Date.now() - (5 * 60 * 1000))).toBe('5m ago');
+ expect(timeAgoText(0)).toBe('');
+ });
+});
diff --git a/test/unit/community-space.test.js b/test/unit/community-space.test.js
index 9872becf92e..e92ebb6d8d8 100644
--- a/test/unit/community-space.test.js
+++ b/test/unit/community-space.test.js
@@ -47,4 +47,16 @@ describe('Space follow and project loading', () => {
getProject.mockRestore();
}
});
+
+ test('ranked projects keep the server order when some are fetched separately', async () => {
+ const getProject = jest.spyOn(api, 'getProject').mockImplementation(id => Promise.resolve({project: {id}}));
+ const space = {projectIds: ['a', 'b', 'c', 'd'], projects: [{id: 'c'}, {id: 'a'}, {id: 'd'}]};
+ try {
+ await expect(loadMissingProjects(space, new Map())).resolves.toMatchObject({
+ projects: [{id: 'c'}, {id: 'a'}, {id: 'd'}, {id: 'b'}]
+ });
+ } finally {
+ getProject.mockRestore();
+ }
+ });
});
diff --git a/test/unit/rotur-oauth.test.js b/test/unit/rotur-oauth.test.js
index 0a26c28f39a..b285b5f037b 100644
--- a/test/unit/rotur-oauth.test.js
+++ b/test/unit/rotur-oauth.test.js
@@ -225,6 +225,22 @@ test('a revoked refresh token signs out and tells listeners', async () => {
stop();
});
+test('a refresh that leaves out the scopes and refresh token keeps the old ones', async () => {
+ store({accessToken: 'old', refreshToken: 'rrt_old', expiresAt: Date.now() + 1000, scopes: ['profile', 'credits:view']});
+ global.fetch.mockReturnValue(tokenResponse({access_token: 'new', expires_in: 3600}));
+ await expect(oauth.getAccessToken()).resolves.toBe('new');
+ expect(oauth.readSession()).toMatchObject({
+ accessToken: 'new', refreshToken: 'rrt_old', scopes: ['profile', 'credits:view']
+ });
+});
+
+test('a refresh token Rotur no longer accepts signs out instead of retrying', async () => {
+ store({accessToken: 'old', refreshToken: 'rrt_old', expiresAt: Date.now() - 1, scopes: []});
+ global.fetch.mockReturnValue(tokenResponse({error: 'invalid_token'}, false, 401));
+ await expect(oauth.getAccessToken()).resolves.toBeNull();
+ expect(oauth.readSession()).toBeNull();
+});
+
test('a session from another tab keeps refreshing here, retries after errors, and catches up on waking', async () => {
jest.useFakeTimers();
const soon = {accessToken: 'old', refreshToken: 'rrt_old', expiresAt: Date.now() + (3 * 60 * 1000), scopes: []};
diff --git a/test/unit/rotur-wallet.test.js b/test/unit/rotur-wallet.test.js
index 5cd6a0232bc..3eb07720f72 100644
--- a/test/unit/rotur-wallet.test.js
+++ b/test/unit/rotur-wallet.test.js
@@ -50,7 +50,7 @@ describe('Rotur wallet', () => {
test('treats a hidden balance as not allowed', async () => {
me.get.mockResolvedValue({username: 'sam'});
- expect((await getWallet()).allowed).toBe(false);
+ expect(await getWallet()).toMatchObject({allowed: false, hidden: true});
});
test('claims daily credits, asking for the permission from the click', async () => {