Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Add search functionality & tests #194

Merged
merged 25 commits into from
Nov 12, 2019
Merged

Add search functionality & tests #194

merged 25 commits into from
Nov 12, 2019

Conversation

S3B4S
Copy link
Collaborator

@S3B4S S3B4S commented Oct 21, 2019

You can search on tags or words.

Tags

#ux will return all the resources that have the #ux tag.
#ux #educational will return all the resources that have the #ux OR the #educational tag.
There is no autocomplete or partially matching for tags (eg. #u won't match #ux).

Words

user will return all the resources that include the string user in either the url, cleanTitle or description.
user a11y works in an OR fashion aswell.

Combined

Same goes for searching for both tags and words; #ux user will return the resources as described above in OR fashion.

This behaviour is not set in stone, I just wanted to start somewhere. If there are libraries and/or suggestions for other behaviour expected from searching I'd like to hear it. This is by no means anything final yet.

Tests

Figured while I'm at it I'll also add tests
https://medium.com/@gogl.alex/nuxt-jest-setup-from-scratch-8905d3880daa

Search on word/name, if partially found in resource it will return the resource
@netlify
Copy link

netlify bot commented Oct 21, 2019

Deploy preview for upbeat-albattani-cbe0ee ready!

Built with commit b96b04f

https://deploy-preview-194--upbeat-albattani-cbe0ee.netlify.com

@S3B4S S3B4S changed the title [WIP] Add search functionality [WIP] Add search functionality & tests Oct 22, 2019
- add test for getting all tags
- add test for transforming resources
- output.json -> mockOutput.json
- add whitelines to end
- add curried version of partiallyIncludesElOf
- add non-curried version includesElOf
@S3B4S S3B4S mentioned this pull request Oct 25, 2019
@S3B4S S3B4S mentioned this pull request Nov 9, 2019
@S3B4S S3B4S changed the title [WIP] Add search functionality & tests Add search functionality & tests Nov 9, 2019
@lostdesign lostdesign merged commit 64d015b into dev Nov 12, 2019
@lostdesign lostdesign deleted the features/search branch November 12, 2019 19:24
@S3B4S S3B4S mentioned this pull request Nov 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants