building on #118 it was identified that the colour contrast for the provider link was too dark and difficult to read on dark terminals.
Messaging - User facing
Most times, your user may know what they need to do next, after interacting with the Pact Broker Client and a Pact Broker, however this is not always the case.
Authors should note that we use a mixture of text and colour, to convey
actionable items
informational items
somethings gone awry items
We have tried to stick to these guidelines for user facing messages.
green for success
white for ancillary information
yellow for next steps
red for errors
magenta for urls
So take for example publishing a pact.
green successful publish
white go and view your contract here
yellow next steps
Previous
New
Points of notice
Utilises the colorized_message functionality and uses the style of messaging sent from the pact broker, so this change also refactors the coloured messaging for the provider next steps, to make it a little bit more maintainable for the next developer.
Tested manually, should require a unit test
Condition will accept where there are more than one uri, but will only colour the first, I tried it in a loop, with an indexed array but no bueno
Automagically colour urls in log output
building on #118 it was identified that the colour contrast for the provider link was too dark and difficult to read on dark terminals.
Messaging - User facing
Most times, your user may know what they need to do next, after interacting with the Pact Broker Client and a Pact Broker, however this is not always the case.
Authors should note that we use a mixture of text and colour, to convey
We have tried to stick to these guidelines for user facing messages.
green
for successwhite
for ancillary informationyellow
for next stepsred
for errorsmagenta
for urlsSo take for example publishing a pact.
green
successful publishwhite
go and view your contract hereyellow
next stepsPrevious
New
Points of notice
Utilises the
colorized_message
functionality and uses the style of messaging sent from the pact broker, so this change also refactors the coloured messaging for the provider next steps, to make it a little bit more maintainable for the next developer.Tested manually, should require a unit test
Condition will accept where there are more than one uri, but will only colour the first, I tried it in a loop, with an indexed array but no bueno