Skip to content

Improve UI to manage competition tasks - #2793

Open
Didayolo wants to merge 2 commits into
developfrom
task-convenient-access
Open

Didayolo wants to merge 2 commits into
developfrom
task-convenient-access

Conversation

@Didayolo

@Didayolo Didayolo commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Description

Funcionning

  • The tasks API can list the tasks of one competition with ?competition=<id>, limited to competitions the user can see.
  • The tasks API returns each task's competitions (ID and title), leaving out private competitions the user doesn't organize.
    /tasks/<pk>/ now redirects to the Resources page with that task's modal open, and the old unused task page is deleted.
  • The Resources page opens the Tasks tab and filters or opens a task based on the URL (?tab=, ?competition=, ?task=).

UI

  • A label shows the active competition filter (than can be removed by clicking on the cross).

  • Opening a task puts its link in the address bar so it can be copied and shared.

Capture d’écran 2026-12-02 à 04 07 23
  • The "In Use" column is now "Competitions" and shows a linked #id for each competition.
Capture d’écran 2026-12-02 à 04 07 55
  • The task modal shows the task ID, and everyone can see its competitions as #id – title.
Capture d’écran 2026-12-02 à 04 17 22
  • The task modal has an Edit Task button for anyone allowed to edit the task.
Capture d’écran 2026-12-02 à 04 07 30
  • Making a task public or private no longer leaves out data the modal needs, such as the Edit Task button.

  • The phase editor's button now opens Resources filtered to the competition's tasks.

Capture d’écran 2026-12-02 à 04 07 02 Capture d’écran 2026-12-02 à 04 16 19
  • The phase editor shows a link to each selected task under the tasks dropdown.
Capture d’écran 2026-12-02 à 04 06 53
  • The phases table lists each phase's tasks as links.
Capture d’écran 2026-12-02 à 04 06 27

Misc.

  • The task dropdown in the phase editor now also finds co-organized tasks.
  • The Share Task button is now shown only to the task's owner.
  • Two tests cover the competition filter and check that private competitions aren't revealed.

Issues this PR resolves

Point 1 from #2180

A checklist for hand testing

  • Test the points mentioned above

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@Didayolo Didayolo mentioned this pull request Dec 2, 2026
6 tasks done

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant