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

refactor(functions): issue 4134 blocking user with incomplete profile… #4144

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

V24039
Copy link
Contributor

@V24039 V24039 commented Feb 27, 2025

… to add map pin

PR Checklist

PR Type

What kind of change does this PR introduce?

  • Bugfix (fixes an issue)
  • Feature (adds functionality)
  • Code style update
  • Refactoring (no functional changes)
  • Build related changes
  • CI related changes
  • Documentation changes
  • Other... Please describe:

What is the current behavior?

User with empty profile can add map pin

What is the new behavior?

User with empty profile cannot add map pin and message to complete profile and a complete profile button is shown

Does this PR introduce a DB Schema Change or Migration?

  • Yes
  • No

Git Issues

Closes #4134

What happens next?

Thanks for the contribution! We try to make sure all PRs are reviewed ahead of our monthly maintainers call (first Monday of the month)

If the PR is working as intended it'll be merged and included in the next platform release, if not changes will be requested and re-reviewed once updated.

If you need more immediate feedback you can try reaching out on Discord in the Community Platform development channel.

@V24039 V24039 requested a review from a team as a code owner February 27, 2025 18:16
Copy link

cypress bot commented Feb 27, 2025

onearmy-community-platform    Run #6975

Run Properties:  status check passed Passed #6975  •  git commit ea57f57853: Revert "fix for failed test"
Project onearmy-community-platform
Branch Review pull/4144
Run status status check passed Passed #6975
Run duration 05m 16s
Commit git commit ea57f57853: Revert "fix for failed test"
Committer Venu G Soganadgi
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 78
View all changes introduced in this branch ↗︎

@benfurber benfurber added the Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview label Mar 3, 2025
Copy link
Member

@benfurber benfurber left a comment

Choose a reason for hiding this comment

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

Nice one, thanks @V24039 and sorry for the delay getting back to you.

One style comment left. The only other thing is if you could please add this to the cypress tests. The settings tests were temporary commented out but they're back now.

On packages/cypress/src/integration/settings.spec.ts there's settings -> Fixing Fashion -> Can create space. Maybe just after cy.get('[data-cy=incompleteProfileBanner]').click() is called, go to the map tab, expect your new component to be visible. Then in the step 'Can add map pin' you expect your new component not to be visible?

Comment on lines +348 to +357
<Alert
variant="info"
sx={{
marginTop: 2,
display: 'flex',
flexDirection: 'column',
gap: 2,
alignItems: 'flex-start',
}}
>
Copy link
Member

Choose a reason for hiding this comment

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

Rather than an alert, I think it's best to use <Card variant=borderless"> as your starting point and format from there. Should be less rules to set then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview
Projects
Status: 💬 Changes Requested/with author
Development

Successfully merging this pull request may close these issues.

[front end] Block empty profile users from adding a map pin
2 participants