Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fuzzy search to column type select popup #1529

Closed
bofeiw opened this issue Jan 25, 2024 · 6 comments · Fixed by #1535
Closed

Add fuzzy search to column type select popup #1529

bofeiw opened this issue Jan 25, 2024 · 6 comments · Fixed by #1535

Comments

@bofeiw
Copy link
Contributor

bofeiw commented Jan 25, 2024

When selecting a column type and search for "string", I expect it to show the text field options, but it shows empty results.
Screenshot 2024-01-23 at 07 23 38

Fuzzy search can be enabled in the column select popup. A possible package is Fuse.js, we can define relevant keywords to associate to column types, for example:

const columnTypes = [
  {
    id: "shortText",
    title: "Short Text",
    keywords: ["string", ...]
  },
  {
    id: "toggle",
    title: "Toggle",
    keywords: ["boolean", "switch", "true", "false", "on", "off"]
  },
  {
    id: "geoPoint",
    title: "Geo Point",
    keywords: ["location", "latitude", "longitude", "point"]
  },
  {
    id: "image",
    title: "Image",
    keywords: ["picture", ...]
  },
]

As a result, searching for "picture" will display "image" type, searching for "location" will display "geoPoint" type, for example.

And we can tolerate typos, searching for "strng" will display "shortText" type.

@harinij
Copy link
Member

harinij commented Feb 1, 2024

/bounty $30

Copy link

algora-pbc bot commented Feb 1, 2024

💎 $30 bounty created by rowyio
🙋 If you start working on this, comment /attempt #1529 along with your implementation plan
👉 To claim this bounty, submit a pull request that includes the text /claim #1529 somewhere in its body
📝 Before proceeding, please make sure you can receive payouts in your country
💵 Payment arrives in your account 2-5 days after the bounty is rewarded
💯 You keep 100% of the bounty award
🙏 Thank you for contributing to rowyio/rowy!

👉 Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @mehulmathur16 Feb 1, 2024, 5:43:50 AM #1535
🟢 @janvi01 Feb 1, 2024, 6:02:04 AM WIP

@mehulmathur16
Copy link

mehulmathur16 commented Feb 1, 2024

/attempt #1529 @harinij Can this issue be assigned to me ?
Also, this is my first time contributing to rowy. Can you please tell how much time is given for closing an issue ?

Algora profile Completed bounties Tech Active attempts Options
@mehulmathur16 1 bounty from 1 project
HTML, C++,
Java
Cancel attempt

Copy link

algora-pbc bot commented Feb 1, 2024

💡 @mehulmathur16 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

@mehulmathur16
Copy link

@harinij @bofeiw the PR got merged, could you please close this issue?

@harinij harinij closed this as completed Feb 5, 2024
Copy link

algora-pbc bot commented Feb 5, 2024

🎉🎈 @mehulmathur16 has been awarded $30! 🎈🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants