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

feat: polish to replacement_service form #1106

Merged
merged 6 commits into from
Feb 4, 2025

Conversation

meagharty
Copy link
Contributor

@meagharty meagharty commented Jan 29, 2025

Summary of changes

Asana Ticket: Follow on to 🏹 Implement "Create Replacement Service Component" - Shuttle Activation Upload/Parsing + Save Component Button

  • This updates the styling of the form itself (not the list view)

Reviewer Checklist

  • Meets ticket's acceptance criteria
  • Any new or changed functions have typespecs
  • Tests were added for any new functionality (don't just rely on Codecov)
  • This branch was deployed to the staging environment and is currently running with no unexpected increase in warnings, and no errors or crashes.

Sorry, something went wrong.

@meagharty meagharty force-pushed the meag/add-replacement-service-with-form-save branch from 85e093a to 9d334fb Compare February 3, 2025 15:37
@meagharty meagharty marked this pull request as ready for review February 3, 2025 15:43
@@ -3441,7 +3441,6 @@ fieldset:disabled a.btn {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
line-height: 1.5;
border-radius: 0.2rem;
Copy link
Contributor Author

@meagharty meagharty Feb 3, 2025

Choose a reason for hiding this comment

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

A quick stab at making these buttons distinct from the disruptions save/cancel.

image
Left is with border-radius (before this line removal, it was pretty square-looking), which is coming from this btn-sm class. On the right is the existing button, btn-primary without btn-sm.

We're aren't using this class btn-sm elsewhere that I can see.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For clarity, changes in the PR:
image

@@ -175,15 +175,15 @@ defmodule ArrowWeb.LimitSection do
</div>
<div class="row">
<div class="col-lg-3">
<.button type="submit" class="btn btn-primary w-100" phx-target={@myself}>
<.button type="submit" class="btn-primary btn-sm w-100" phx-target={@myself}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed btn from class= because the .button already had this class applied.

@meagharty meagharty requested review from a team and jzimbel-mbta and removed request for a team February 3, 2025 15:49
@meagharty meagharty force-pushed the meag/polish-replacement-service-form branch from d6fb476 to a72156b Compare February 3, 2025 15:54
Base automatically changed from meag/add-replacement-service-with-form-save to master February 4, 2025 16:42
An error occurred while trying to automatically change base from meag/add-replacement-service-with-form-save to master February 4, 2025 16:42

Unverified

This user has not yet uploaded their public signing key.

Unverified

This user has not yet uploaded their public signing key.

Unverified

This user has not yet uploaded their public signing key.

Unverified

This user has not yet uploaded their public signing key.

Unverified

This user has not yet uploaded their public signing key.

Unverified

This user has not yet uploaded their public signing key.
@meagharty meagharty force-pushed the meag/polish-replacement-service-form branch from a72156b to 2cc7ebe Compare February 4, 2025 16:46
Copy link
Member

@jzimbel-mbta jzimbel-mbta left a comment

Choose a reason for hiding this comment

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

Good to go 👍

@meagharty meagharty merged commit af91cc1 into master Feb 4, 2025
16 checks passed
@meagharty meagharty deleted the meag/polish-replacement-service-form branch February 4, 2025 17:19
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.

None yet

2 participants