alchemist icon indicating copy to clipboard operation
alchemist copied to clipboard

fix: added configurable padding

Open vanlooverenkoen opened this issue 1 year ago โ€ข 12 comments

Description

Add the option to use padding around a GoldenTestScenario

Type of Change

  • [X] โœจ New feature (non-breaking change which adds functionality)
  • [ ] ๐Ÿ› ๏ธ Bug fix (non-breaking change which fixes an issue)
  • [ ] โŒ Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] ๐Ÿงน Code refactor
  • [ ] โœ… Build configuration change
  • [ ] ๐Ÿ“ Documentation
  • [ ] ๐Ÿ—‘๏ธ Chore

vanlooverenkoen avatar Oct 03 '24 11:10 vanlooverenkoen

Because we have a lot of GoldenTestScenarios with the removal of the padding widget it is a lot harder to do visual pr review. The cognitive load is much higher when there is no padding. (I get that this is not required for everyone, that is why I made it optionally configurable)

vanlooverenkoen avatar Oct 03 '24 13:10 vanlooverenkoen

Because we have a lot of GoldenTestScenarios with the removal of the padding widget it is a lot harder to do visual pr review. The cognitive load is much higher when there is no padding. (I get that this is not required for everyone, that is why I made it optionally configurable)

Understood. Yeah I think GoldenTestTheme created a nice place to put these optional parameters. I'm cool with this ๐Ÿ‘

btrautmann avatar Oct 03 '24 14:10 btrautmann

Test added โœ…

vanlooverenkoen avatar Oct 03 '24 14:10 vanlooverenkoen

Is this purely used for aesthetics?

it seems in 0.10.0, a breaking change was introduced that removed the padding ( 5139917e4064811c2dadc153ffcf40f07f102459 ). But since it is not documented, maybe it was an accidental change? If so, it might be better to introduce a default padding of 8dp as it used to be before.

mx1up avatar Oct 07 '24 13:10 mx1up

Is this purely used for aesthetics?

it seems in 0.10.0, a breaking change was introduced that removed the padding ( 5139917 ). But since it is not documented, maybe it was an accidental change? If so, it might be better to introduce a default padding of 8dp as it used to be before.

The change was intentional, I'd rather that padding be configurable than to add it back.

btrautmann avatar Oct 07 '24 17:10 btrautmann

it seems in 0.10.0, a breaking change was introduced that removed the padding ( 5139917 ). But since it is not documented, maybe it was an accidental change? If so, it might be better to introduce a default padding of 8dp as it used to be before.

The change was intentional, I'd rather that padding be configurable than to add it back.

ok, fine. just a suggestion: it might be helpful to document this change somewhere for users migrating to 0.10+

mx1up avatar Oct 07 '24 18:10 mx1up

ok, fine. just a suggestion: it might be helpful to document this change somewhere for users migrating to 0.10+

Yeah, apologies for not being more transparent in the changelog about the change. Once this lands (CC @vanlooverenkoen) I'll make sure to make note of it in the changelog indicating the correct path for migrating.

btrautmann avatar Oct 07 '24 18:10 btrautmann

@btrautmann fixed all comments

vanlooverenkoen avatar Oct 09 '24 11:10 vanlooverenkoen

@btrautmann fixed all comments

thanks @vanlooverenkoen , i can confirm, using this branch, all our golden tests are green again ๐Ÿฅณ

mx1up avatar Oct 09 '24 11:10 mx1up

Nice!! Do you like the documentation I added?

vanlooverenkoen avatar Oct 09 '24 12:10 vanlooverenkoen

Nice!! Do you like the documentation I added?

yes, clear to me ๐Ÿ‘Œ

I don't know if this project follows Effective dart doc recommendations though, specifically:

DO start doc comments with a single-sentence summary

mx1up avatar Oct 09 '24 12:10 mx1up

@vanlooverenkoen thanks for updates; unfortunately it looks like we have a couple failing tests.

btrautmann avatar Oct 09 '24 13:10 btrautmann

@vanlooverenkoen any progress on this? ๐Ÿ™

mx1up avatar Nov 12 '24 14:11 mx1up

Trying to fix these broken tests right now

Sorry @mx1up and @btrautmann this got out of sight for a moment

vanlooverenkoen avatar Nov 14 '24 15:11 vanlooverenkoen

@mx1up & @btrautmann should be fixed (at least locally)

vanlooverenkoen avatar Nov 14 '24 15:11 vanlooverenkoen