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

[#91] Auction style #107

Merged
merged 16 commits into from
Jan 3, 2024
Merged

[#91] Auction style #107

merged 16 commits into from
Jan 3, 2024

Conversation

nathan-schmidt-viget
Copy link
Contributor

@nathan-schmidt-viget nathan-schmidt-viget commented Dec 20, 2023

Summary

This does the style pass of the Auction page.
Sets up Vite and Tailwind in the plugin (very basic setup). @nick-telsan has the full set up with React, linter, and Prettier in his PR #115.

This is a simple pass on the mobile view, we may need to do more styling later. There are a few other items in the theme that need to be pull into TW, as well as some cleanup in the theme for TW. But that will be in another PR in order to get this PR out for Friday's client work demo.

Issues

Testing Instructions

  • Go to an auction page. You can create a new one or use one that you already have set up.
  • Make sure the reward product that is linked to the auction at a few images.
  • Make sure it looks like the screenshots for desktop and mobile.

Screenshots

Desktop Mobile
Screenshot 2023-12-21 at 2 16 41 PM Screenshot 2023-12-21 at 2 30 16 PM

@nick-telsan
Copy link
Contributor

postcss.config.js

export default {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
};

@clatwell
Copy link
Contributor

cc @bd-viget ☝️

@nathan-schmidt-viget
Copy link
Contributor Author

@nick-telsan nice ya I did not get too far with setting up TW thanks for flagging that!

@nick-telsan
Copy link
Contributor

I think we'll also need to update the .circleci/config.yml, but this might take a little bit of tweaking on my end. I can add it to my PR tomorrow, but this one won't build unless we add this.

    steps:
      - checkout
      - run: echo "Building..."
      - run: echo "${ACF_DEVELOP}" >> ./client-mu-plugins/goodbids/auth.json
      - run: echo "$(< ./client-mu-plugins/goodbids/auth.json)"
      - run: cd client-mu-plugins/goodbids && npm ci
      - run: cd client-mu-plugins/goodbids && npm run build
      - run: cd client-mu-plugins/goodbids && composer install --verbose

.gitignore Outdated Show resolved Hide resolved
Copy link
Contributor

@bd-viget bd-viget left a comment

Choose a reason for hiding this comment

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

Ok, I think I've gone through everything from a code perspective. I'm going to pull down this branch and test everything out next. Nice job getting all this working!! I'm so pumped!

client-mu-plugins/goodbids/src/classes/Frontend/Vite.php Outdated Show resolved Hide resolved
client-mu-plugins/goodbids/src/classes/Frontend/Vite.php Outdated Show resolved Hide resolved
client-mu-plugins/goodbids/src/classes/Frontend/Vite.php Outdated Show resolved Hide resolved
client-mu-plugins/goodbids/tailwind.config.js Outdated Show resolved Hide resolved
client-mu-plugins/goodbids/vite.config.js Show resolved Hide resolved
client-mu-plugins/goodbids/vite.config.js Outdated Show resolved Hide resolved
@nathan-schmidt-viget nathan-schmidt-viget force-pushed the ns/91-auction-style branch 2 times, most recently from 65bae11 to 864a64a Compare December 22, 2023 18:13
Copy link
Contributor

@bd-viget bd-viget left a comment

Choose a reason for hiding this comment

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

Hey @nathan-schmidt-viget, thanks for your patience with me to follow up on this review. Just a few stragglers to address, and I think this'll be good to go!

client-mu-plugins/goodbids/.gitignore Outdated Show resolved Hide resolved
client-mu-plugins/goodbids/.gitignore Outdated Show resolved Hide resolved
client-mu-plugins/goodbids/src/classes/Frontend/Vite.php Outdated Show resolved Hide resolved
@nathan-schmidt-viget
Copy link
Contributor Author

@bd-viget got those small edits in. I have re-requested a review.

Copy link
Contributor

@bd-viget bd-viget left a comment

Choose a reason for hiding this comment

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

Very minor formatting notes, but again, don't want be a blocker, so approved after that!! Thanks again for your patience!

Comment on lines +29 to +31
<div class="flex flex-col text-center">
<p class="m-0 uppercase font-thin has-x-small-font-size"><?php esc_html_e( 'Auction Goal', 'goodbids' ); ?></p>
<?php
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we lost the indention formatting here.

);
?>
</div>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

Comment on lines +44 to +46
<div class="flex flex-col text-center">
<p class="m-0 uppercase font-thin has-x-small-font-size"><?php esc_html_e( 'Auction Goal', 'goodbids' ); ?></p>
<?php
Copy link
Contributor

Choose a reason for hiding this comment

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

Also here.

printf(
'<p class="m-1 font-extrabold">%s</p>',
wp_kses_post( wc_price( $estimated_value ) )
);
?>
</div>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

And here.

<div class="flex flex-col text-center">
<p class="m-0 uppercase font-thin has-x-small-font-size"><?php esc_html_e( 'Auction Goal', 'goodbids' ); ?></p>
<?php
<div class="flex flex-col text-center">
Copy link
Contributor

Choose a reason for hiding this comment

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

Lastly here.

printf(
'<p class="m-1 font-extrabold">%s</p>',
wp_kses_post( wc_price( $expected_high_bid ) )
);
?>
</div>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Lastly here-final-final-v3

@nathan-schmidt-viget
Copy link
Contributor Author

@bd-viget looks like php linter quit working after I updated my computer over the break. I am going to merge this and then fix the spacing in another PR once I fix the linting today.

@nathan-schmidt-viget nathan-schmidt-viget merged commit c4744e5 into main Jan 3, 2024
1 check passed
@nathan-schmidt-viget nathan-schmidt-viget deleted the ns/91-auction-style branch January 3, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants