Skip to content

Fix the display of the filter in the campaign page form#365

Merged
paramsiddharth merged 6 commits intomainfrom
ahn-nath/fix-filter-display
Oct 19, 2022
Merged

Fix the display of the filter in the campaign page form#365
paramsiddharth merged 6 commits intomainfrom
ahn-nath/fix-filter-display

Conversation

@ahn-nath
Copy link
Contributor

Issue: #332

Solution:
The button element is not the child of any wrapper component with proper margin and padding. The same is true for the buttons over it. The behavior, therefore, was hard to predict, and it was on top of items with similar characteristics. I was going to add a default margin to the button, however, after checking the code, I realized wrappers would be enough and proportionate more control over the element.

I have also added columns to the elements wrapped by a row without them. The logic for it was based on the grid system of Vuetify: (Grid system — Vuetify), where is stated that v-row is a wrapper component for v-col that utilizes flex properties to control the layout and flow of its inner columns. It is more consistent and logical to use the row with a column, as the class contains several properties that are specific to columns.

A demo that shows how the change looks in different window resolutions/sizes: https://www.loom.com/share/b90eb61e1df84ba8849347093a72fd57

Looking forward to your suggestions and comments.

References:
Vuetify | A Material Design Framework for Vue.js. (n.d.). Retrieved October 17, 2022, from https://vuetifyjs.com/en/components/grids/

Copy link
Member

@paramsiddharth paramsiddharth left a comment

Choose a reason for hiding this comment

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

@ahn-nath Excellent work, Nath! For someone just a few weeks into the fellowship and one who's new to Vue.js, you're performing great. I really appreciate the efforts and quality of description on the PRs. It makes reviewing them a tonne easier for the reviewers. Absolutely loved it!

I've requested one change. Please look at it and go ahead with it. Once that's done I think the PR will be ready for approval and merge. :)

Copy link
Contributor Author

@ahn-nath ahn-nath left a comment

Choose a reason for hiding this comment

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

I agree with the changes and understand the point of using one column for all buttons.

Copy link
Contributor Author

@ahn-nath ahn-nath left a comment

Choose a reason for hiding this comment

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

Good @paramsiddharth. I think we can merge the changes now.

Copy link
Contributor Author

@ahn-nath ahn-nath left a comment

Choose a reason for hiding this comment

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

Made changes to the file. Some characters of commit title/message were somehow changed. I apologize if it is hard to understand.

Copy link
Contributor Author

@ahn-nath ahn-nath left a comment

Choose a reason for hiding this comment

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

I have also addressed the PascalCase issue.

@ahn-nath
Copy link
Contributor Author

Some screenshots
image
image
image

library.add(faUserSecret, faInstagram, faFacebookF, faTwitter, faYoutube)

/* add font awesome icon component */
Vue.component('font-awesome-icon', FontAwesomeIcon)
Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't recommend making this change, because then it will break this. To remain consistent, we should make the component PascalCase in both places. You shared the screenshot after updating the PascalCase issue. Are the social icons still rendering correctly? Because that will be surprising.

Copy link
Member

@paramsiddharth paramsiddharth left a comment

Choose a reason for hiding this comment

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

Hi, Nath. I would suggest you revert the PascalCase update because it's just a warning and we can ignore it for now. I want us to continue using the current convention for the Font Awesome icon component while still being able to ignore the error somehow. There are some known ways to ignore lint errors in certain instances. I'll try to find what we can do to avoid it here.

The rest seems good to me. The screenshots look amazing. Good job!

Signed-off-by: Param Siddharth <contact@paramsid.com>
library.add(faUserSecret, faInstagram, faFacebookF, faTwitter, faYoutube)

/* add font awesome icon component */
// eslint-disable-next-line vue/component-definition-name-casing
Copy link
Member

@paramsiddharth paramsiddharth Oct 19, 2022

Choose a reason for hiding this comment

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

@ahn-nath I made some changes and I'd like you to look at this. This allows us to ignore the lint errors for the next line. For exceptional cases, this is what we use.

Pro tip: If you're not able to commit/push your changes due to link errors failing in the push/commit hook, you can always use git commit --no-verify or git push -n to temporarily skip the hooks.

Copy link
Member

@paramsiddharth paramsiddharth left a comment

Choose a reason for hiding this comment

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

The PR looks good to me now. Feel free to merge it once the tests pass. Good work, Nath!

@ahn-nath
Copy link
Contributor Author

@paramsiddharth
Could you please merge?

I am not authorized to do so. Thanks.

@paramsiddharth paramsiddharth merged commit dc27874 into main Oct 19, 2022
@paramsiddharth paramsiddharth deleted the ahn-nath/fix-filter-display branch October 19, 2022 10:03
@joeyouss joeyouss added the week 5 label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants