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

Implements subscribe button and dialogue #211

Merged
merged 5 commits into from
Oct 26, 2023

Conversation

jongomez
Copy link
Contributor

@jongomez jongomez commented Oct 26, 2023

Description:

Implements subscribe button and dialogue.

Related Issue(s):

(none)

Changes Included:

  • Bugfix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Refactoring (a change that improves code quality and/or architecture)
  • Other (explain below)

Implementation Details:

A subscribe button was added to the navbar. When the button is clicked, it opens up a modal / dialogue with a form. It then makes an API call to an endpoint created by @jeangovil - this endpoint sends the subscription info to odoo.

Testing:

We can easily interact with this UI by clicking on the "Subscribe" button at the top. There is a mockOnSubmit function that can be used to test the submition states (submitting, success, fail)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@vercel
Copy link

vercel bot commented Oct 26, 2023

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

Name Status Preview Comments Updated (UTC)
lpe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 26, 2023 2:02pm

Comment on lines +124 to +127

${(props) => lsdUtils.breakpoint(props.theme, 'xs', 'down')} {
display: none;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Decided to hide the "Network State Press" text on the header for small screens. This has not yet been confirmed by Eddy, so it may change.

@jongomez jongomez marked this pull request as ready for review October 26, 2023 14:03
@jongomez jongomez changed the title WIP - Implements subscribe button and dialogue Implements subscribe button and dialogue Oct 26, 2023
@jongomez jongomez merged commit bb0ddbc into develop Oct 26, 2023
4 checks passed
@jongomez jongomez deleted the implement-subscribe-button-and-dialogue branch October 26, 2023 14:20
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.

2 participants