Skip to content

DEV: Remove branding and styling steps from wizard #32797

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

Merged
merged 1 commit into from
May 21, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import emoji from "discourse/helpers/emoji";
import { i18n } from "discourse-i18n";
import WizardField from "./wizard-field";

const READY_STEP_INDEX = 5;
const READY_STEP_INDEX = 3;

export default class WizardStepComponent extends Component {
@tracked saving = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class Wizard {
get totalSteps() {
// We used to use this.steps.length() here, but we don't want to
// include optional steps after "Ready" here.
return 4;
return 2;
}

get title() {
Expand Down
134 changes: 0 additions & 134 deletions app/assets/stylesheets/wizard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,6 @@ body.wizard {
margin: 0 0 0.5em;
}
}

&.styling {
max-width: 100%;
width: auto;

@include viewport.until(sm) {
width: 95%;
}
}
}

&__fields {
Expand All @@ -137,32 +128,6 @@ body.wizard {
}
}

&__step.branding .wizard-container__field {
@include viewport.until(sm) {
max-width: 100%;
}
}

&__step.branding .wizard-container__preview {
background-color: var(--primary-very-low);
border-radius: 0.5em;
padding: 1em;
margin-bottom: 1em;
}

&__step.branding .wizard-container__preview canvas {
@include viewport.until(sm) {
max-width: 100%;
height: auto !important;
}
}

&__step.styling .wizard-container__field.styling-preview-field {
label {
display: none;
}
}

&__field {
margin-bottom: 1em;
}
Expand All @@ -185,19 +150,6 @@ body.wizard {
display: block;
}

&__field.text-governing-law,
&__field.text-city-for-disputes {
@media only screen and (width <= 568px) {
display: none;
}
}

&__field.dropdown-field.dropdown-homepage-style {
.wizard-container__dropdown {
height: auto;
}
}

&__step-form {
display: flex;
flex: 1 0 50%;
Expand Down Expand Up @@ -231,58 +183,6 @@ body.wizard {
}
}

.preview-nav {
display: flex;
justify-content: flex-end;
position: relative;
padding-right: 10px;

.preview-nav-button {
text-align: center;
padding: 10px 15px;
cursor: pointer;
margin-left: 10px;
font-size: 14px;
font-weight: bold;
color: var(--primary-high);

&.active {
background: var(--secondary);
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
color: var(--tertiary);
border-top: none;
}
}
}

.previews {
position: relative;
height: 320px;
width: 628px;
overflow: hidden;
background: var(--secondary);
border-radius: 10px;
cursor: grab;
user-select: none;

&.dragging {
cursor: grabbing;
}

.topic-preview {
position: absolute;
left: 0;
top: 0;
}

.homepage-preview {
position: absolute;
left: calc(100% + 25px);
top: 0;
}
}

&__step-header {
text-align: center;
margin-bottom: 3em;
Expand Down Expand Up @@ -321,10 +221,6 @@ body.wizard {
}
}

&__step.branding .wizard-container__description {
font-size: var(--font-0);
}

&__buttons-left {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -526,10 +422,6 @@ body.wizard {
font-size: var(--font-up-1);
}

&__step.styling .wizard-container__label {
font-size: var(--font-0);
}

&__label.required {
display: inline;
color: var(--danger);
Expand Down Expand Up @@ -579,28 +471,6 @@ body.wizard {
border-radius: 4px;
}

&__dropdown.color-palettes .select-kit-row.color-palettes-row .name {
flex: 0 0 30%;
}

&__dropdown.color-palettes .select-kit-row.color-palettes-row .palettes {
flex: 1 1 70%;
overflow: hidden;
}

&__dropdown.homepage-style-selector {
.select-kit-row {
.name {
font-weight: bold;
}

.desc {
display: block;
margin-top: 0.1em;
}
}
}

&__field.checkbox-field .wizard-container__label {
cursor: pointer;
display: inline-block;
Expand Down Expand Up @@ -744,10 +614,6 @@ body.wizard {
top: 2px;
}

.wizard-container__image-upload canvas {
border: 1px solid rgba(0, 0, 0, 0.2);
}

.finish-installation {
.wizard-congratulations-wrap {
display: flex;
Expand Down
Loading
Loading