Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

fix: avoid duplicate repos #1464

Merged
merged 1 commit into from
Sep 27, 2022
Merged

Conversation

mtfoley
Copy link
Contributor

@mtfoley mtfoley commented Sep 13, 2022

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR fixes #1460 and fixes #1462.
This PR disables the repo add button while the goal adding API request is in flight.

The scope moved around a little on this one because I found little things to do as I went.

  • changes the style on InputButton in the disabled state, so the cursor isn't the only visual indication.
  • adjusts the comparison with existing goals to use lowercase since isValidRepoUrl()
  • returns new full name with 301 status code from repoStatusCode() and pre-fills the form input with it
  • fixes tests for new return for for repoStatusCode().

Related Tickets & Documents

#1460, #1462

Mobile & Desktop Screenshots/Recordings

These are screenshots with the button duplicated with disabled state (just to show the difference, the app still only has one button).

image
image

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

rage click

Copy link
Contributor

@0-vortex 0-vortex left a comment

Choose a reason for hiding this comment

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

LGTM! πŸ‘

@bdougie bdougie merged commit cd925d8 into open-sauced:main Sep 27, 2022
github-actions bot pushed a commit that referenced this pull request Sep 27, 2022
github-actions bot pushed a commit that referenced this pull request Sep 27, 2022
### [0.53.2](v0.53.1...v0.53.2) (2022-09-27)

### πŸ› Bug Fixes

* avoid duplicate repos ([#1464](#1464)) ([cd925d8](cd925d8)), closes [#1460](#1460) [#1462](#1462)
@github-actions
Copy link
Contributor

πŸŽ‰ This PR is included in version 0.53.2 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: added the same repo twice to my app.opensauced.pizza dashboard Bug: Tracking the same repository twice
3 participants