FiveIT / eseuri

Cea mai mare colecție de eseuri și caracterizări pentru bac, la degetul elevului.
https://eseuri.vercel.app
0 stars 0 forks source link

Integrate GraphQL with client and implement work summaries fetching #45

Closed tmaxmax closed 3 years ago

tmaxmax commented 3 years ago

This PR installs urql as the GraphQL client used in the application. It also implements work summaries fetching for the homepage and the search page and fixes the Hasura endpoint passed to Vite in development.

The changes also add a TypeSelector component, which is used to encapsulate the work type picker logic. The search functionality is revamped: debounced navigation to not spam browser history, reactive query and navigation based on input, not on the keyup event and input trimmed in the SearchBar component to ensure the same input behaviour in both the home and search pages.

A getLayout utility function for retrieving the layout context is also added to the Layout component's module, due to the fact that obtaining the layout's context implied a lot of boilerplate (imports for Svelte's getContext, and the Layout's context key and context interface, and explicit typing for getContext afterwards).

It also adds an .editorconfig, to ensure consistent line endings and indentation.

cypress[bot] commented 3 years ago



Test summary

1 0 0 0


Run details

Project Eseuri
Status Passed
Commit 636e1d4610
Started Apr 28, 2021 10:10 AM
Ended Apr 28, 2021 10:11 AM
Duration 01:18 💡
OS Linux Ubuntu - 16.04
Browser Custom chromium 90

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard