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

Add order details links, reset fields on advanced configs close, balance validation, and add remove draft orders dialog #56

Merged
merged 12 commits into from
Jul 16, 2024

Conversation

ribeirojose
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Jul 15, 2024

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

Name Status Preview Comments Updated (UTC)
composable-cow-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2024 1:42pm
composable-cow-hub-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2024 1:42pm

Copy link

linear bot commented Jul 15, 2024

Comment on lines +47 to +48
selectedIds.length === draftOrders.length &&
!!draftOrders.length
Copy link
Contributor Author

Choose a reason for hiding this comment

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

what happens when the user manually deselects one of the orders?

Copy link
Contributor

Choose a reason for hiding this comment

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

It also deselects the select all checkbox

@@ -78,8 +78,15 @@ export function AdvancedSettingsDialog() {

const receiver = useWatch({ control, name: "receiver" });

const handleOpenChange = (isOpen: boolean) => {
if (!isOpen) {
reset(advancedSettings);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔 why do we need this here?

Copy link
Contributor

Choose a reason for hiding this comment

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

CoW Feedback:

"When I update settings fields, then close the modal without pressing on the Save button, the values I've changes are remain to be displayed in the fields.
However, the changes are not applied when place an order. This moght be confising to a user: settings show different info than order review modal.
So here I can propose 2 options:

  1. Remove 'Save' button and auto-save all changes made on the Settings modal
  2. OR reset changes to defaults when close settings modal without pressing on the Save button"

This is to implement the second solution.

@yvesfracari yvesfracari changed the title add links on order details and create new text for order hash Add order details links, reset fields on advanced configs close, balance validation, and add remove draft orders dialog Jul 16, 2024
* add action menu on tables to invert price

* run formater and linter

* increase test timeout
@yvesfracari yvesfracari merged commit 3591dd5 into main Jul 16, 2024
3 of 5 checks passed
@yvesfracari yvesfracari deleted the pedro/cow-321-minor-feedbacks-pt-2 branch July 16, 2024 13:38
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