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

feature: mercury rising rebranding #1988

Merged
merged 3 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/labeler.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
# - develop - Uncomment this line to enable publishing from the develop branch. On hold until Mercury-Rising is complete.
- develop

jobs:
lint-test-build:
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/rebrand-mercury-rising.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/release-please.yml

This file was deleted.

Binary file modified docs/app/assets/images/card-placeholder-lg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/app/assets/images/card-placeholder-sm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 24 additions & 24 deletions docs/app/helpers/type_specs_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,51 +126,51 @@ def sage_type_specs_color_classes
)),
},
{
color: %(<span class="t-sage-body-semi t-sage--color-charcoal-100">Grey</span>),
type_class: md("`t-sage--color-charcoal-100`"),
color: %(<span class="t-sage-body-semi t-sage--color-grey-600">Grey</span>),
type_class: md("`t-sage--color-grey-600`"),
constants: md(%(
Rails: `SageClassnames::TYPE_COLORS::CHARCOAL_100`<br/>
React: `SageClassnames.TYPE_COLORS.CHARCOAL_100`
Rails: `SageClassnames::TYPE_COLORS::GREY_600`<br/>
React: `SageClassnames.TYPE_COLORS.GREY_600`
)),
},
{
color: %(<span class="t-sage-body-semi t-sage--color-red-300">Red</span>),
type_class: md("`t-sage--color-red-300`"),
color: %(<span class="t-sage-body-semi t-sage--color-red-600">Red</span>),
type_class: md("`t-sage--color-red-600`"),
constants: md(%(
Rails: `SageClassnames::TYPE_COLORS::RED_300`<br/>
React: `SageClassnames.TYPE_COLORS.RED_300`
Rails: `SageClassnames::TYPE_COLORS::RED_600`<br/>
React: `SageClassnames.TYPE_COLORS.RED_600`
)),
},
{
color: %(<span class="t-sage-body-semi t-sage--color-orange-300">Orange</span>),
type_class: md("`t-sage--color-orange-300`"),
color: %(<span class="t-sage-body-semi t-sage--color-mercury-500">Orange</span>),
type_class: md("`t-sage--color-mercury-500`"),
constants: md(%(
Rails: `SageClassnames::TYPE_COLORS::ORANGE_300`<br/>
React: `SageClassnames.TYPE_COLORS.ORANGE_300`
Rails: `SageClassnames::TYPE_COLORS::MERCURY_500`<br/>
React: `SageClassnames.TYPE_COLORS.MERCURY_500`
)),
},
{
color: %(<span class="t-sage-body-semi t-sage--color-yellow-300">Yellow</span>),
type_class: md("`t-sage--color-yellow-300`"),
color: %(<span class="t-sage-body-semi t-sage--color-yellow-400">Yellow</span>),
type_class: md("`t-sage--color-yellow-400`"),
constants: md(%(
Rails: `SageClassnames::TYPE_COLORS::YELLOW_300`<br/>
React: `SageClassnames.TYPE_COLORS.YELLOW_300`
Rails: `SageClassnames::TYPE_COLORS::YELLOW_400`<br/>
React: `SageClassnames.TYPE_COLORS.YELLOW_400`
)),
},
{
color: %(<span class="t-sage-body-semi t-sage--color-sage-300">Sage</span>),
type_class: md("`t-sage--color-sage-300`"),
color: %(<span class="t-sage-body-semi t-sage--color-green-600">Sage</span>),
type_class: md("`t-sage--color-green-600`"),
constants: md(%(
Rails: `SageClassnames::TYPE_COLORS::SAGE_300`<br/>
React: `SageClassnames.TYPE_COLORS.SAGE_300`
Rails: `SageClassnames::TYPE_COLORS::GREEN_600`<br/>
React: `SageClassnames.TYPE_COLORS.GREEN_600`
)),
},
{
color: %(<span class="t-sage-body-semi t-sage--color-purple-300">Purple</span>),
type_class: md("`t-sage--color-purple-300`"),
color: %(<span class="t-sage-body-semi t-sage--color-purple-600">Purple</span>),
type_class: md("`t-sage--color-purple-600`"),
constants: md(%(
Rails: `SageClassnames::TYPE_COLORS::PURPLE_300`<br/>
React: `SageClassnames.TYPE_COLORS.PURPLE_300`
Rails: `SageClassnames::TYPE_COLORS::PURPLE_600`<br/>
React: `SageClassnames.TYPE_COLORS.PURPLE_600`
)),
}
]
Expand Down
9 changes: 9 additions & 0 deletions docs/app/views/examples/components/choice/_preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ long_description = "Description with longer text to cause wrapping and make the

<h3 class="t-sage-heading-6">Icon Variation</h3>
<p>Select any icon to appear to the left of the text.</p>
<%= sage_component SageChoice, {
target: "example",
text: "Option 1",
type: "icon",
icon: "video-on",
}
%>

<p>With additional subtext.</p>
<%= sage_component SageChoice, {
target: "example",
text: "Option 1",
Expand Down
1 change: 0 additions & 1 deletion docs/app/views/examples/components/dot/_preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<%= sage_component SageDot, { color: "red" } %>
<%= sage_component SageDot, { color: "yellow" } %>
<%= sage_component SageDot, { color: "purple" } %>
<%= sage_component SageDot, { color: "charcoal" } %>
<%= sage_component SageDot, { color: "grey" } %>

<h3>Custom color</h3>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%
heading_specs = "#{SageClassnames::TYPE::HEADING_4} #{SageClassnames::TYPE_COLORS::CHARCOAL_500}"
heading_specs = "#{SageClassnames::TYPE::HEADING_4} #{SageClassnames::TYPE_COLORS::GREY_950}"
modal_primary_content = %(
<h3 class="#{heading_specs}">
Drawer
Expand Down
64 changes: 3 additions & 61 deletions docs/app/views/examples/components/empty_state/_preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,79 +8,21 @@
<% end %>

<h3>With Icon and Compact</h3>
<p> Compact variants, with less top and bottom padding, are useful for smaller contexts.</p>
<p> Compact variants, with a smaller icon, are useful for smaller contexts.</p>
<%= sage_component SageEmptyState, {
icon: "bold",
title: "Title for state, compact variety",
text: "Text to appear below. Lorem ipsum dolor sit amet consectituor.",
scope: "compact",
size: "compact",
} do %>
<p>Other stuff such as buttons...</p>
<% end %>

<h3>With Graphic</h3>
<%= sage_component SageEmptyState, {
graphic: image_tag("empty-state-sm.svg", alt: ""),
graphic: image_tag("card-placeholder-lg.png", alt: ""),
title: "Title for state, with graphic instead of icon",
text: "Text to appear below. Lorem ipsum dolor sit amet consectituor.",
} do %>
<p>Other stuff such as buttons...</p>
<% end %>

<h3>Page Scope and Graphic</h3>
<%= sage_component SageEmptyState, {
title: "Create your first Email Campaign",
graphic: image_tag("empty-state-lg.svg", alt: ""),
scope: "page",
} do %>
<% content_for :sage_empty_state_text do %>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Elit arcu volutpat cursus ultricies ac, ultricies.
Platea sed nibh molestie ut.
</p>
<% end %>
<% content_for :sage_empty_state_actions do %>
<%= sage_component SageButtonGroup, { gap: :sm } do %>
<%= sage_component SageButton, {
attributes: { href: "#" },
style: "primary",
value: "Create Email Campaigns",
} %>
<%= sage_component SageButton, {
attributes: { href: "#" },
style: "secondary",
subtle: true,
value: "Learn More",
} %>
<% end %>
<% end %>
<% end %>

<h3>Page Scope and Graphic with Video</h3>
<%= sage_component SageEmptyState, {
title: "Create your first Email Campaign",
graphic: image_tag("empty-state-lg.svg", alt: ""),
scope: "page",
} do %>
<% content_for :sage_empty_state_text do %>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Elit arcu volutpat cursus ultricies ac, ultricies.
Platea sed nibh molestie ut.
</p>
<% end %>
<% content_for :sage_empty_state_actions do %>
<%= sage_component SageButton, {
attributes: { href: "#" },
style: "primary",
value: "Create Email Campaigns",
} %>
<%= sage_component SageButton, {
attributes: { href: "#" },
style: "secondary",
subtle: true,
value: "Learn More",
} %>
<% end %>
<% end %>
32 changes: 24 additions & 8 deletions docs/app/views/examples/components/empty_state/_props.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<tr>
<td><%= md('`center_vertical`') %></td>
<td><%= md('If true, the empty state will be adjust to be visually centered inside the entire page context. Meant to be used in pairing with `scope: "page"`.') %></td>
<td><%= md('If true, the empty state will be visually centered inside the entire page context.') %></td>
<td><%= md('Boolean') %></td>
<td><%= md('`false`') %></td>
</tr>
Expand All @@ -17,14 +17,13 @@
<td><%= md('`nil`') %></td>
</tr>
<tr>
<td><%= md('`scope`') %></td>
<td><%= md('The layout of the component adjusts depending on this context setting:
- `nil` (default) sets up a "feature"-level layout for use within panels or cards for showing empty state for particular features.
<td><%= md('`size`') %></td>
<td><%= md('The size of the icon adjusts depending on this context setting:

- `nil` (default) sets up a "feature"-level layout for use on whole page empty states and is intended to fill the stage.
- `"compact"` similar to the default above, this compacts the spacing a little more for smaller contexts.
- `"page"` is for use on whole page empty states and is intended to fill the stage.
') %></td>
<td><%= md('`nil` | `"compact"` | `"page"`') %></td>
<td><%= md('`nil` | `"compact"`') %></td>
<td><%= md('`nil`') %></td>
</tr>
<tr>
Expand All @@ -48,11 +47,28 @@
<tr>
<td colspan="4"><strong>Content Slots</strong></td>
</tr>
<tr>
<td><%= md('`:sage_empty_state_actions`') %></td>
<td><%= md('
Slot into which buttons or other actions can be placed.
') %></td>
<td></td>
<td></td>
</tr>
<tr>
<td><%= md('`:sage_empty_state_text`') %></td>
<td><%= md('
Slot into which text can be placed.
') %></td>
<td></td>
<td></td>
</tr>
<tr>
<td><%= md('`:sage_empty_state_video`') %></td>
<td><%= md('
Slot into which video cards or other media can be placed.
Slot into which video cards or other media can be placed.
') %></td>
<td></td>
<td></td>
</tr>

Loading
Loading