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

Implement filtering on companies and company interests #5237

Merged

Conversation

ivarnakken
Copy link
Member

@ivarnakken ivarnakken commented Dec 15, 2024

Description

Search on names and descriptions, and filter out inactive companies.

Will add company type filtering as well; but this is blocked by webkom/lego#3702

Result

  • Changes look good on both light and dark theme.
  • Changes look good with different viewports (mobile, tablet, etc.).
  • Changes look good with slower Internet connections.
Before After
image image

Search filtering has also been implemented for company interest! Very useful instead of having to go through all semesters manually ..

image

Testing

  • I have thoroughly tested my changes.

Tested that the search filtering works fine. There's some issues with the active / inactive checkbox ... it seems all inactive companies are still not retrieved by the selector?


Resolves ABA-1203
Resolves ABA-1205
Resolves ABA-1209

@ivarnakken ivarnakken added enhancement Pull requests that make enhancements, instead of just purely new features future-was-2-years-ago Pull requests that introduce technologies which should have been "long" ago review-needed Pull requests that need review new-feature Pull requests that introduce a new feature labels Dec 15, 2024
@ivarnakken ivarnakken requested a review from a team December 15, 2024 15:05
@ivarnakken ivarnakken self-assigned this Dec 15, 2024
Copy link

linear bot commented Dec 15, 2024

Copy link

vercel bot commented Dec 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
lego-bricks-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 18, 2024 8:44pm

@ivarnakken ivarnakken changed the title Fix various empty states Implement filtering on /companies Dec 15, 2024
@ivarnakken ivarnakken requested review from a team and removed request for a team December 15, 2024 15:43
@ivarnakken ivarnakken added the bug-fix Pull requests that fix a bug label Dec 15, 2024
Copy link

linear bot commented Dec 15, 2024

@ivarnakken ivarnakken changed the title Implement filtering on /companies Implement filtering on companies and company interests Dec 15, 2024
@ivarnakken ivarnakken requested review from a team and removed request for a team December 15, 2024 16:10
@ivarnakken ivarnakken force-pushed the ivarnakken/aba-1203-implement-filtering-on-companies branch from 65fff33 to 9310dac Compare December 15, 2024 19:41
app/routes/company/components/CompaniesPage.tsx Outdated Show resolved Hide resolved
app/routes/company/components/CompaniesPage.tsx Outdated Show resolved Hide resolved
Copy link

linear bot commented Dec 18, 2024

@ivarnakken ivarnakken force-pushed the ivarnakken/aba-1203-implement-filtering-on-companies branch 2 times, most recently from 108136e to d7e21e8 Compare December 18, 2024 11:39
@ivarnakken ivarnakken added do-not-merge/WIP Pull requests that are "work in progress", and should not be merged changes-requested Pull requests with requested changes labels Dec 18, 2024
@ivarnakken ivarnakken requested review from norbye, Bestem0r, falbru and a team December 18, 2024 12:03
@ivarnakken ivarnakken removed the do-not-merge/WIP Pull requests that are "work in progress", and should not be merged label Dec 18, 2024
@ivarnakken ivarnakken removed the changes-requested Pull requests with requested changes label Dec 18, 2024
@ivarnakken ivarnakken force-pushed the ivarnakken/aba-1203-implement-filtering-on-companies branch from 6ea9656 to 3944494 Compare December 18, 2024 15:17
@ivarnakken ivarnakken requested a review from norbye December 18, 2024 15:30
Copy link
Member

@norbye norbye left a comment

Choose a reason for hiding this comment

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

Nice that you fixed the button, was quiite annoying

app/routes/company/components/CompaniesPage.tsx Outdated Show resolved Hide resolved
@ivarnakken ivarnakken force-pushed the ivarnakken/aba-1203-implement-filtering-on-companies branch from 0ad4474 to 18f0075 Compare December 18, 2024 15:41
Copy link
Member

@norbye norbye left a comment

Choose a reason for hiding this comment

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

veri nice

@ivarnakken ivarnakken added the approved Pull requests that have been approved label Dec 18, 2024
@ivarnakken ivarnakken force-pushed the ivarnakken/aba-1203-implement-filtering-on-companies branch from 18f0075 to cb5aef8 Compare December 18, 2024 15:55
@ivarnakken ivarnakken added the do-not-merge/hold Pull request is on hold (e.g. waiting for something else to be merged), and should not be merged label Dec 18, 2024
@ivarnakken ivarnakken force-pushed the ivarnakken/aba-1203-implement-filtering-on-companies branch 2 times, most recently from 2f3a1e8 to bf571b1 Compare December 18, 2024 20:14
Search on names and descriptions, and filter out inactive companies.
Choosing the "show all semesters" option would just default to the
current semester.
Company interests are now under /bdb/company-interests. This follows the
routing patterns seen on other pages, and should therefore be more
"clear"
Didn't seem to work on mobile, and I think it's clean to use it on all
viewports.
@ivarnakken ivarnakken force-pushed the ivarnakken/aba-1203-implement-filtering-on-companies branch from bf571b1 to 95b16b9 Compare December 18, 2024 20:44
@ivarnakken ivarnakken removed the do-not-merge/hold Pull request is on hold (e.g. waiting for something else to be merged), and should not be merged label Dec 19, 2024
@ivarnakken ivarnakken merged commit 2c2b939 into master Dec 19, 2024
8 checks passed
@ivarnakken ivarnakken deleted the ivarnakken/aba-1203-implement-filtering-on-companies branch December 19, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Pull requests that have been approved bug-fix Pull requests that fix a bug enhancement Pull requests that make enhancements, instead of just purely new features future-was-2-years-ago Pull requests that introduce technologies which should have been "long" ago new-feature Pull requests that introduce a new feature review-needed Pull requests that need review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants