Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

feat(labs): ability to filter by status on labs screen #2033

Conversation

sotous
Copy link
Contributor

@sotous sotous commented May 1, 2020

Fixes #1971.

Changes proposed in this pull request:

  • Added dropdown to make searchs by lab status
  • Added a search box
  • Created the functionality to search by all statuses and specific status, depending on the dropdown choice.
  • Added a new slice for labs
  • Labs fetching is now being performed in the slice
  • Changed the Repository file in order to modify the function findAll, adding a mapping iterator to create indexes for each field of the SortRequest parameter sent in.
  • New tests for new code

sotous added 5 commits April 28, 2020 10:14
Created a new slice for labs, from there are made queries referring to labs, including search
functionalities. Fixed a very small bug on the sidebar, and also added english translation variables
for the new components.

fix HospitalRun#1971
Modified the Repository, added a mapping function to add an index for each sort field required.
Tests were failing due to the lack of index when sorting

fix HospitalRun#1971
@vercel
Copy link

vercel bot commented May 1, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hospitalrun/hospitalrun-frontend/58yth7bb8
✅ Preview: https://hospitalrun-fr-git-fork-sotous-feature-ability-to-filter-1838e3.hospitalrun.now.sh

@gitpod-io
Copy link

gitpod-io bot commented May 1, 2020

@sotous
Copy link
Contributor Author

sotous commented May 1, 2020

Hey guys, could you please review?, thanks! @jackcmeyer @fox1t

@jackcmeyer jackcmeyer added labs issue/pull request that interacts with labs module 🚀enhancement an issue/pull request that adds a feature to the application labels May 1, 2020
@jackcmeyer jackcmeyer added this to the v2.0 milestone May 1, 2020
@jackcmeyer jackcmeyer linked an issue May 1, 2020 that may be closed by this pull request
Copy link
Member

@jackcmeyer jackcmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome work! Thanks for the contribution. Few changes requested.

src/locales/enUs/translations/labs/index.ts Outdated Show resolved Hide resolved
src/labs/labs-slice.ts Outdated Show resolved Hide resolved
src/labs/labs-slice.ts Outdated Show resolved Hide resolved
src/labs/ViewLabs.tsx Outdated Show resolved Hide resolved
src/labs/ViewLabs.tsx Outdated Show resolved Hide resolved
src/components/Sidebar.tsx Show resolved Hide resolved
src/clients/db/LabRepository.ts Outdated Show resolved Hide resolved
src/__tests__/labs/ViewLabs.test.tsx Outdated Show resolved Hide resolved
src/__tests__/clients/db/LabRepository.tests.ts Outdated Show resolved Hide resolved
src/__tests__/labs/ViewLabs.test.tsx Show resolved Hide resolved
@matteovivona matteovivona added the in progress indicates that issue/pull request is currently being worked on label May 3, 2020
sotous added 3 commits May 6, 2020 11:26
Suggested changes according to PR HospitalRun#2033 were added

fix HospitalRun#1971
Pulled changes from upstream

fix HospitalRun#1971
Improved search process by adding code search criteria to the pouchdb query

fix HospitalRun#1971
Added a test to prove search labs by code functionality

fix HospitalRun#1971
@jackcmeyer jackcmeyer changed the title Feature/ability to filter by status on labs screen feat(labs): ability to filter by status on labs screen May 6, 2020
@jackcmeyer jackcmeyer merged commit 2b5c789 into HospitalRun:master May 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚀enhancement an issue/pull request that adds a feature to the application in progress indicates that issue/pull request is currently being worked on labs issue/pull request that interacts with labs module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ability to filter by status on /labs screen
3 participants