Skip to content

Commit

Permalink
Merge pull request #456 from ReCodEx/ux-improvements
Browse files Browse the repository at this point in the history
Ux improvements
  • Loading branch information
krulis-martin committed Feb 11, 2022
2 parents 98946c0 + 9d17ad9 commit b25b7b0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { BugIcon } from '../../icons';
import './EvaluationTable.css';

const EvaluationTable = ({ evaluations, renderButtons, selectedRowId = '' }) => (
<Table>
<Table className="mb-0">
<thead>
<tr>
<th />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class TestResultsTable extends Component {
showLogButton && results.reduce((out, { testName }) => out && !this.isLogOpen(testName), true);

return (
<Table responsive>
<Table responsive className="mb-0">
<thead>
<tr>
<th />
Expand Down
6 changes: 5 additions & 1 deletion src/containers/App/recodex.css
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ a:focus {
* Bootstrap Enhancements
*/
code {
color: #063;
color: #072;
}

.recodex-markdown-container code {
white-space: pre-wrap;
}

.wider-tooltip {
Expand Down
24 changes: 6 additions & 18 deletions src/pages/ReferenceSolution/ReferenceSolution.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ReferenceSolutionNavigation } from '../../components/layout/Navigation'
import ReferenceSolutionDetail from '../../components/ReferenceSolutions/ReferenceSolutionDetail';
import FetchManyResourceRenderer from '../../components/helpers/FetchManyResourceRenderer';
import ResourceRenderer from '../../components/helpers/ResourceRenderer';
import Button, { TheButtonGroup } from '../../components/widgets/TheButton';
import { TheButtonGroup } from '../../components/widgets/TheButton';
import Callout from '../../components/widgets/Callout';
import { ReferenceSolutionIcon } from '../../components/icons';

Expand All @@ -34,7 +34,6 @@ import {
fetchManyStatus,
} from '../../redux/selectors/referenceSolutionEvaluations';

import { ENV_CS_DOTNET_CORE_ID } from '../../helpers/exercise/environments';
import { hasPermissions } from '../../helpers/common';

const exerciseHasRuntime = defaultMemoize(
Expand Down Expand Up @@ -116,22 +115,11 @@ class ReferenceSolution extends Component {
isDebug={false}
locale={locale}
/>

{referenceSolution.runtimeEnvironmentId ===
ENV_CS_DOTNET_CORE_ID /* temporary disable debug resubmits of .NET Core */ ? (
<Button disabled={true}>
<FormattedMessage
id="app.solution.dotnetResubmitTemporaryDisabled"
defaultMessage="Debug Resubmit Temporary Disabled"
/>
</Button>
) : (
<ResubmitReferenceSolutionContainer
id={referenceSolution.id}
isDebug={true}
locale={locale}
/>
)}
<ResubmitReferenceSolutionContainer
id={referenceSolution.id}
isDebug={true}
locale={locale}
/>
</TheButtonGroup>
</div>
)}
Expand Down
28 changes: 8 additions & 20 deletions src/pages/Solution/Solution.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import AcceptSolutionContainer from '../../containers/AcceptSolutionContainer';
import ReviewSolutionContainer from '../../containers/ReviewSolutionContainer';
import ResubmitSolutionContainer from '../../containers/ResubmitSolutionContainer';
import FetchManyResourceRenderer from '../../components/helpers/FetchManyResourceRenderer';
import Button, { TheButtonGroup } from '../../components/widgets/TheButton';
import { TheButtonGroup } from '../../components/widgets/TheButton';

import { fetchRuntimeEnvironments } from '../../redux/modules/runtimeEnvironments';
import { fetchAssignmentIfNeeded } from '../../redux/modules/assignments';
Expand All @@ -35,7 +35,6 @@ import {
import { evaluationsForSubmissionSelector, fetchManyStatus } from '../../redux/selectors/submissionEvaluations';
import { assignmentSubmissionScoreConfigSelector } from '../../redux/selectors/exerciseScoreConfig';

import { ENV_CS_DOTNET_CORE_ID } from '../../helpers/exercise/environments';
import { hasPermissions } from '../../helpers/common';
import { SolutionResultsIcon, WarningIcon } from '../../components/icons';

Expand Down Expand Up @@ -130,24 +129,13 @@ class Solution extends Component {
userId={solution.authorId}
locale={locale}
/>

{solution.runtimeEnvironmentId ===
ENV_CS_DOTNET_CORE_ID /* temporary disable debug resubmits of .NET Core */ ? (
<Button disabled={true}>
<FormattedMessage
id="app.solution.dotnetResubmitTemporaryDisabled"
defaultMessage="Debug Resubmit Temporary Disabled"
/>
</Button>
) : (
<ResubmitSolutionContainer
id={solution.id}
assignmentId={assignment.id}
isDebug={true}
userId={solution.authorId}
locale={locale}
/>
)}
<ResubmitSolutionContainer
id={solution.id}
assignmentId={assignment.id}
isDebug={true}
userId={solution.authorId}
locale={locale}
/>
</>
)}
</TheButtonGroup>
Expand Down

0 comments on commit b25b7b0

Please sign in to comment.