Battlesquid / qnaplus

QoL tools and applications for the VEX Q&A.
https://battlesquid.github.io/qnaplus/
1 stars 0 forks source link

Create new question route #20

Closed Battlesquid closed 3 weeks ago

Battlesquid commented 2 months ago

Currently, the app only provides search functionality; some data is shown, but for questions that have large questions/answers, their content is truncated. The user can navigate to the actual Q&A to see the full content, but it would be nice to have a route that renders this data.

Each question contains the raw html from the Q&A, meaning there's an additional opportunity to utilize that to improve the presentation of the Q&A.; for example, images on Q&As are repositioned to a gallery pane at the bottom, so the webapp could render them in place instead. Some work needs to be done to figure out how to transform the Q&A html into a suitable format for the webapp, but this method seems the most promising.

Battlesquid commented 2 months ago

Potentially useful libraries:

Battlesquid commented 4 weeks ago

Addendum: Currently, there is no indicator of whether a question is "archived", that is, a question on the Q&A was stored, but later becomes unavailable on the Q&A. These questions aren't normally visible on the official Q&A, which presumably means that they are not valid for competition purposes. While the webapp should retain this information for archival purposes, it should clearly indicate that it is no longer suitable for competition purposes.

A simple ping to the Q&A page should be enough, and this should be done when the user navigates to the question page. When the user is offline, it should fallback to some message that advises the user to exercise caution when using the Q&A for competition purposes, since the ping to the Q&A page would fail.

Some additional work could also be done to keep track of archived/unarchived questions and when their status was last checked.