Skip to content

Conversation

@JJ-8
Copy link
Collaborator

@JJ-8 JJ-8 commented Aug 10, 2024

Now we just try to parse the input with each parser, ignoring errors. Then we select the parser with the most parsed challenges, except for some conditions with the raw parser. The raw parser will see every newline as a new task and when pasting a beautified JSON object, it should not be the best parser when other parsers also detect challenges.
The isValid function is now dropped which simplifies creating a parser.

This PR implements the logic as described in #269 (comment).

Screenshots:
parsed task
parsed task dropdown view

JJ-8 added 4 commits August 10, 2024 21:44
Now we just try to parse the input with each parser, ignoring errors. Then we select the parser with the most parsed challenges,
except for some conditions with the raw parser.
The raw parser will see every newline as a new task and when pasting a beautified JSON object,
it should not be the best parser when other parsers also detect challenges.
An array is expected for the categories of justCTF tasks.
Not in use anymore so we can safely drop it.
Due to dropping the `isValid` function, these imports are not used anymore.
@B-i-t-K
Copy link
Member

B-i-t-K commented Aug 23, 2024

This looks good to me with a tiny issue, right now it's difficult to scan le number of tasks parsed by each parser, is it possible to add a justify-between to pull the counter to the right ?

@JJ-8
Copy link
Collaborator Author

JJ-8 commented Aug 23, 2024

@B-i-t-K, like this? Pulling the counter to the right in the selected field looks a bit ugly because it cannot align with the other numbers due to the dropdown arrow. And it will always duplicate since the item selected is also in the list already.

image

@B-i-t-K
Copy link
Member

B-i-t-K commented Aug 23, 2024

perfect 👌

@JJ-8 JJ-8 merged commit 4ea6b91 into main Aug 24, 2024
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.

2 participants