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

Improve /companies page #3552

Merged
merged 1 commit into from Feb 12, 2023
Merged

Improve /companies page #3552

merged 1 commit into from Feb 12, 2023

Conversation

ivarnakken
Copy link
Member

@ivarnakken ivarnakken commented Feb 11, 2023

Description

The cards now employ the <Card /> component, making them resemble the rest of the webapp more. Also some other minimal styling changes. Finally, the whole card is a link, and not just the image, which has been an annoying bug for a really long time.

CompaniesPage is rewritten to a functional component.

isHoverable prop is added for cards that work as links.

Result

Before

Screen.Recording.2023-02-11.at.14.59.52.mov

After

Screen.Recording.2023-02-11.at.14.58.50.mov

Testing

  • I have thoroughly tested my changes.

Tested on light and dark mode, and on mobile (some minimal changes here to the expanded text functionality).


Resolves ABA-270

The cards now employ the `<Card />` component, making them resemble the
rest of the webapp more. Also some other minimal styling changes.
Finally, the whole card is a link, and not just the image, which has been
an annoying bug for a really long time.

`CompaniesPage` is rewritten to a functional component.

`isHoverable` prop is added for cards that work as links.
@linear
Copy link

linear bot commented Feb 11, 2023

@ivarnakken ivarnakken requested a review from a team February 11, 2023 14:02
@ivarnakken ivarnakken self-assigned this Feb 11, 2023
@github-actions github-actions bot added the review-needed Pull requests that need review label Feb 11, 2023
@ivarnakken ivarnakken added enhancement Pull requests that make enhancements, instead of just purely new features small-fix Pull requests that fix something small labels Feb 11, 2023
Comment on lines -7 to -15

/** Small */
tight?: boolean;

/** Shadow */
shadow?: boolean;

/** Hidden overflow */
overflow?: boolean;
Copy link
Member Author

Choose a reason for hiding this comment

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

If you need to comment on the prop name, you've chosen a bad name.

@ivarnakken
Copy link
Member Author

I still think we need the option to filter and sort on these companies, but that requires more work and I have an event to attend.

Copy link
Member

@ingraso ingraso left a comment

Choose a reason for hiding this comment

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

Great changes! Much more readable code and will be a lot easier to make further changes 🚀 Also, using the Card component makes it look a lot better already.

@ivarnakken ivarnakken added bug-fix Pull requests that fix a bug approved Pull requests that have been approved ready-to-merge Pull requests that have been approved and are ready to be merged and removed review-needed Pull requests that need review labels Feb 11, 2023
@ivarnakken ivarnakken merged commit e22457f into master Feb 12, 2023
@ivarnakken ivarnakken deleted the companies-page branch February 12, 2023 16:51
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 ready-to-merge Pull requests that have been approved and are ready to be merged small-fix Pull requests that fix something small
Projects
None yet
2 participants