Skip to content

Remove FormVersionStandardButtons #1260

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthew-white
Copy link
Member

At getodk/central#896 (comment), I suggested using FormVersionStandardButtons in FormVersionRow. However, I realized that that component actually isn't used anywhere else anymore. In other words, FormVersionStandardButtons is not so "standard" anymore. Given that it's not used elsewhere, and given that the component does so little, I think it makes sense to go ahead and remove it. I think it makes the logic in FormVersionRow clearer that way.

What has been done to verify that this works as intended?

I updated a test. I also checked out the Versions page locally to make sure that it still looked right.

Before submitting this PR, please make sure you have:

  • run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

@@ -66,6 +65,8 @@ defineEmits(['view-xml']);

> :last-child { flex-shrink: 0; }
}

* + .form-version-def-dropdown { margin-left: 5px; }
Copy link
Member Author

Choose a reason for hiding this comment

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

I also could have done:

.form-version-def-dropdown:not(:first-child) { margin-left: 5px; }

I have a slight preference for my version because it avoids a nested selector.

@matthew-white matthew-white requested a review from ktuite May 16, 2025 14:37
@matthew-white
Copy link
Member Author

@ktuite, I think this PR can be reviewed async.

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