From 03b16ac2363fb78a01d1b0bf95e0c857a78437f9 Mon Sep 17 00:00:00 2001 From: Lokesh Agarwal Date: Sat, 27 Jul 2024 15:22:20 +0530 Subject: [PATCH] added meaning of colors in the grid --- .../src/pages/TablePage/index.tsx | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/atcoder-problems-frontend/src/pages/TablePage/index.tsx b/atcoder-problems-frontend/src/pages/TablePage/index.tsx index e1c899941..3d369dab8 100644 --- a/atcoder-problems-frontend/src/pages/TablePage/index.tsx +++ b/atcoder-problems-frontend/src/pages/TablePage/index.tsx @@ -1,5 +1,6 @@ import React, { useMemo, useState } from "react"; import { List } from "immutable"; +import { Collapse, Button, CardBody, Card } from "reactstrap"; import { useContests, useContestToMergedProblems, @@ -33,6 +34,10 @@ interface OuterProps { } export const TablePage: React.FC = (props) => { + const [isOpen, setIsOpen] = useState(false); + + const toggle = () => setIsOpen(!isOpen); + const [activeTab, setActiveTab] = useLocalStorage( "contestTableTab", "ABC" @@ -99,6 +104,48 @@ export const TablePage: React.FC = (props) => { return (
+ + + + +

+ By Default, User ID takes the AtCoder User ID of the logged in + user. If the user is not logged in or we want to compare two + different users, then we can specify AtCoder User ID of a user and + a list of User IDs in Rivals. +

+

+ After adding the User IDs, the grid below shows cells in 3 + different colors. +

+
    +
  1. Green
  2. +
  3. Yellow
  4. +
  5. Red
  6. +
+ Lets say User ID of user = abcd, and User ID of Rivals = [acde, + tourist] +
    +
  • + A cell is colored Green when user with User ID = abcd has solved + that Problem +
  • +
  • + A cell is colored Red when user with User ID = abcd have not + solved the problem but the Rivals have solved the problem. could + not solve it and someone from the Rival list has solved that + problem. +
  • +
  • + A cell is colored Yello when the person with User ID = abcd has + tried but could not solve the problem +
  • +
+
+
+