Commit Graph

30 Commits

Author SHA1 Message Date
David Poeschl
22bc7460df
Merge shared code for submission running (extension/sandbox) and team submission info (extension/web) (#16)
* Unify submission execution implementations into submissionRunner

* Unify contestMonitorTypes definitions between extension & web

* Make line separator in entry use LF

* Add entry.sh for sandbox

* Fix web imports

* Sandbox read from .env

---------

Co-authored-by: orosmatthew <orosmatthew@pm.me>
2024-03-11 13:32:23 -04:00
dpoeschl
85b511457c Extension: make sidebar background color use theme color 2024-03-06 19:50:34 -08:00
fde6b0019b [extension] Format 2024-03-05 19:31:11 -05:00
David Poeschl
4a3ff56e7a
VSCode Extension: Sidebar UI showing team's submissions, automatically updating and showing alerts as submissions are judged (#14)
* Add an Output Panel channel named "BWContest Log"

* Allow client logout when no contest

And make login/logout error messages clearer

* Show contest name & team name in Code extension side panel

* submission icons for sidebar panel

* Start VSCode extension "onStartupFinished"

instead of waiting for Sidebar to be opened

* VSCode: Sidebar UI for up-to-date problem/submissions status

- VSCode: poll API every 30 seconds to get contest metadata and all submission metadata for the logged in team
- The Sidebar now shows all problems in the contest, along with their submissions and overall status, which automatically updates as submissions are submitted & judged
- Web: "contestState" API to get all info for an activeTeam via their token
- Update submit API to return the submission id, allowing the VSCode UI to immediately render it as Pending without waiting for a polling cycle
-

* Add "Compilation Failed" message to submissions that fail to build

* Contest Import - Option to create repos & immediately activate the imported contest

Useful for testing with old contests (including the submissions)

* Test/Submit panel, use fixed-width font in input/output areas

* Fix build error for 'pluralize'

* Clear all state & halt polling loops on logout, restart them on login

* Improve the debug fastPolling option

- Toggleable via package.json config
- Setting the option changes the initial state as well as ability to toggle states

* Web project 'npm run format'
2024-03-05 17:50:16 -05:00
2d839e279d [extension] Copy runners from sandbox 2024-02-17 15:43:38 -05:00
17d9a6e0a4 [extension] Add cpp support 2024-02-17 15:02:33 -05:00
8f91b6848b [extension] Fix import 2024-01-31 18:27:25 -05:00
85d3b66b40 [extension] Fix tree kill import 2024-01-15 15:42:30 -05:00
93b18d6caa [extension] Add CSharp runner 2023-11-15 21:01:12 -05:00
David Poeschl
f81f4124b4
Bugfix: Run the selected problem's code when teams Test in VSCode (#6)
It was previously always picking the first problem from the list (with a non-zero id).
2023-11-05 20:57:18 -05:00
8691bcfcd1 [extension] Clean up sidebar provider 2023-10-17 12:58:34 -04:00
cb7383a437 [extension] Fix submitting 2023-10-17 12:50:13 -04:00
dfa16b714a [extension] Improve code running 2023-10-16 15:32:26 -04:00
697dfb968d [extension] Add eslint 2023-10-16 13:51:50 -04:00
6fb6f57ece [extension] More cleanup 2023-10-16 13:11:54 -04:00
88be84bb62 [extension] Fix path 2023-10-15 21:01:05 -04:00
5405e38ef9 [sandbox] Use isomorphic git 2023-10-15 18:44:17 -04:00
74b9b50d8e [sandbox] Clean up 2023-10-15 18:35:49 -04:00
5019d516a1 Update extension deps 2023-08-26 10:33:31 -04:00
9540e6eb48 [extension] Auto and manual stop process 2023-05-09 17:55:13 -04:00
6261ee0bde [extension] Save on run and submit 2023-05-09 17:23:11 -04:00
05761d811e [extension] Better error when submitting 2023-05-09 17:19:43 -04:00
4bb261a8a5 [extension] Submit problems 2023-05-08 14:37:52 -04:00
8ace5a0061 [extension] Run java files 2023-05-07 16:30:42 -04:00
234ce83d9d [extension] Problem panel 2023-05-07 11:01:27 -04:00
5d48bd0b37 [extension] Clone and open correct repo 2023-05-06 12:36:34 -04:00
559666e34a Clone repo 2023-05-06 11:33:10 -04:00
Admin
d43ffb680a Login with extension 2023-05-06 00:01:27 -04:00
093ff3af56 Modify initial project 2023-05-04 22:32:46 -04:00
Admin
f976c750ae Add vscode extension project 2023-05-04 22:09:35 -04:00