Skip to content

feat: Make styling consistent#47

Merged
dbolson merged 3 commits intomainfrom
sc-237425/consistent-styles
Mar 21, 2024
Merged

feat: Make styling consistent#47
dbolson merged 3 commits intomainfrom
sc-237425/consistent-styles

Conversation

@dbolson
Copy link
Copy Markdown
Contributor

@dbolson dbolson commented Mar 21, 2024

Makes the styling consistent across each setup step. Specifically, the title spacing and removing its bg color.
Screenshot 2024-03-21 at 9 42 51 AM
Screenshot 2024-03-21 at 9 42 58 AM
Screenshot 2024-03-21 at 9 44 20 AM
Screenshot 2024-03-21 at 9 43 24 AM

@shortcut-integration
Copy link
Copy Markdown

This pull request has been linked to Shortcut Story #237425: Make styling consistent across setup steps.

@dbolson dbolson force-pushed the sc-237425/consistent-styles branch from cf719ce to 9848397 Compare March 21, 2024 16:44
Comment thread internal/setup/flags.go

type flagModel struct {
input string
err error
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unused.

return wordwrap.String(
fmt.Sprintf(
"Set up your application. Here are the steps to incorporate the LaunchDarkly %s SDK into your code. \n\n%s",
"Set up your application. Here are the steps to incorporate the LaunchDarkly %s SDK into your code.\n%s",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed an extra newline.

Comment thread internal/setup/sdks.go

type sdkModel struct {
choice sdk
instructions string
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unused.

Comment thread internal/setup/sdks.go
l.Title = "Select your SDK."
l.Title = "Select your SDK\n"
// reset title styles
l.Styles.Title = lipgloss.NewStyle()
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These get default styles set on then from list.New, so we need to remove them.

@dbolson dbolson changed the title Make styling consistent feat: Make styling consistent Mar 21, 2024
if m.enabled {
bgColor = "#3d9c51"
furtherInstructions = "\n\nCheck your [browser|application logs] to see the change!"
furtherInstructions = "\n\nCheck your [browser|application logs] to see the change."
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Lowered the volume on this because there's an exclamation above.

}

func (m sdkInstructionModel) View() string {
style := lipgloss.NewStyle().Border(lipgloss.NormalBorder())
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added a border around the instructions like in the screenshots.

Comment thread internal/setup/wizard.go
}

return fmt.Sprintf("\nstep %d of %d\n"+m.steps[m.currStep].View(), m.currStep+1, len(m.steps))
return fmt.Sprintf("\nStep %d of %d\n"+m.steps[m.currStep].View(), m.currStep+1, len(m.steps))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Capitalized.

@dbolson dbolson merged commit c46c510 into main Mar 21, 2024
@dbolson dbolson deleted the sc-237425/consistent-styles branch March 21, 2024 17:08
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