Skip to content

Conversation

@thapacodes4u
Copy link
Contributor

@thapacodes4u thapacodes4u commented Jun 19, 2025

#10

image image image

@thapacodes4u
Copy link
Contributor Author

@SlimDeluxe Need to work on few more test cases.

@SlimDeluxe
Copy link
Member

These should be checkboxes and not radio boxes, since they are not exclusive (default can also be a company address at the same time):
image

The firs line is always required and should not be deletable:
image

Please change to "Add address line"
image

Otherwise, good job, looking good :)

@thapacodes4u
Copy link
Contributor Author

@SlimDeluxe got it

@thapacodes4u thapacodes4u requested a review from SlimDeluxe June 20, 2025 11:22
@thapacodes4u
Copy link
Contributor Author

@SlimDeluxe I haven't fixed this one yet The firs line is always required and should not be deletable: other then that other things should be fixed you can try it out

@thapacodes4u
Copy link
Contributor Author

thapacodes4u commented Jun 20, 2025 via email

@SlimDeluxe
Copy link
Member

  1. Only one address can be set as default. Currently, you can create multiple default ones. When a user submits a form with a default checkbox ticked, his current default address should be unset as default. Please also add a feature test for this.
  2. Company name should be shown in the address in the table, between the recipient name and street address.
  3. VAT ID should be available as a separate column in the table.
  4. I don't see this thing from the instructions:

"Address book" feature can be enabled/disabled in the system settings

I want to see if you can manage to add settings.
Please note, the setting should be added in the EclipseSettings. Don't create a new class just for this.

  1. Please add tests for this:
    image

@thapacodes4u
Copy link
Contributor Author

thapacodes4u commented Jun 20, 2025 via email

Copy link
Member

@SlimDeluxe SlimDeluxe left a comment

Choose a reason for hiding this comment

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

Requested changes are in the PR comments.

@thapacodes4u
Copy link
Contributor Author

  1. Only one address can be set as default. Currently, you can create multiple default ones. When a user submits a form with a default checkbox ticked, his current default address should be unset as default. Please also add a feature test for this.
  2. Company name should be shown in the address in the table, between the recipient name and street address.
  3. VAT ID should be available as a separate column in the table.
  4. I don't see this thing from the instructions:

"Address book" feature can be enabled/disabled in the system settings

I want to see if you can manage to add settings. Please note, the setting should be added in the EclipseSettings. Don't create a new class just for this.

  1. Please add tests for this:
    image

@SlimDeluxe I finished 1, 2, 3 and 4. Test part is left to be done. I will continue that on monday.

By the way I wanted to ask 1 was a bit confusing to understand. Here what I implemented so if a user already has a default address and he again tried to created a default address then the type should be unset. Basically only one default address. That is what I implemented.

Don't know if you wanted this or something like if he add new default address then the old default address type should be reset.

@SlimDeluxe
Copy link
Member

Hm unfortunately I can't log in into the app with the latest changes.

image

Running fresh migrations and seeding, clearing cache, does not help.
However, when I switch back to main branch, everything works.
Can you look into it, please?

@thapacodes4u
Copy link
Contributor Author

thapacodes4u commented Jun 21, 2025

@SlimDeluxe Sorry about that its working for me so might be our setup thats creating a issue here. I will work on a fix for this. And maybe I should start using lando

Screen.Recording.2025-06-21.at.2.54.42.PM.mov

@SlimDeluxe
Copy link
Member

Some fixes required:

  1. When a default address exists and you edit/create another address and want to make it the new default, nothing happens. The old one stays the default.
  2. When deleting a default address, if the user has more addresses, the oldest one should be the new default.

@thapacodes4u
Copy link
Contributor Author

thapacodes4u commented Jun 24, 2025 via email

@thapacodes4u
Copy link
Contributor Author

@SlimDeluxe point 1. This already was done. Like when you create a new address with default check nothing will happen if there is already a default address.

And I added a fix for point 2

@SlimDeluxe
Copy link
Member

  1. What you said is not the same. I want the check to mean the new/editing address is the new default. The old one should automatically be unset as default.
  2. Confirmed as working.

ankitcodes4u added 2 commits July 1, 2025 06:16
@thapacodes4u
Copy link
Contributor Author

  1. What you said is not the same. I want the check to mean the new/editing address is the new default. The old one should automatically be unset as default.
  2. Confirmed as working.

@SlimDeluxe Its fixed

Copy link
Member

@SlimDeluxe SlimDeluxe left a comment

Choose a reason for hiding this comment

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

Sorry for the delay.
I've reviewed the code and tested the UI.
Here's what's still missing:

  1. Very important tests I requested earlier:
    image
  2. Additional tests:
  • only one address can be default (a new default address unsets the old one as default)
  • when deleting a default address, the oldest one becomes the default
  1. See inline code comment below

@SlimDeluxe SlimDeluxe merged commit 579a320 into DataLinx:main Jul 18, 2025
1 check failed
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.

3 participants