rowyio / rowy

Low-code backend platform. Manage database on spreadsheet-like UI and build cloud functions workflows in JS/TS, all in your browser.
http://rowy.io
Other
5.88k stars 479 forks source link

Add fuzzy search to column type select popup #1529

Closed bofeiw closed 6 months ago

bofeiw commented 7 months ago

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 commented 6 months ago

/bounty $30

algora-pbc[bot] commented 6 months ago

💎 $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 commented 6 months ago

/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
rowyio/rowy#1531
Cancel attempt
algora-pbc[bot] commented 6 months ago

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

mehulmathur16 commented 6 months ago

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

algora-pbc[bot] commented 6 months ago

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