Improvements for v1.9.9: Class Sync between 2 environments

Hello,

I really appreciate the v1.9.9 update; it’s excellent for enhancing the user experience. However, there remains a significant issue for web agencies working with Bricks.

Let’s consider you have a class, .myclass1, on the staging or live website with the following properties:

.myclass1 {
  color: red;
  background-color: black;
}

If a team member adds or modifies this class locally, it might look like this:

.myclass1 {
  color: red;
  background-color: white;
  border: 1px solid yellow;
}

When a team member then deletes all Bricks data from the template and copies all Bricks data from the local template to the staging or live website, .myclass1 will not include the latest updates from the local environment.

As highlighted in the screenshot from Thomas himself: “Bricks won’t import this class definition (as a global class with this identifier already exists) ”. This is the crux of our issue.

Hopefully, this is on your to-do list. It would be beneficial to have a feature that displays the differences between classes when copying from one website to another, allowing us to choose whether to overwrite them or not.

Thanks!

5 Likes

same here, really needed. what you can do instead of recreating the class is make use of the copy/paste styles. this works, but still manual work.

Whether you are importing a template, copy and pasting classes, templates, ETC or multiple people are working and saving changes to classes. If the class is detected already in the database and a change is detected in one or more classes it should ask which one you want to keep…

or if Bricks wants some extra point have a merge option. :wink:

3 Likes