Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Andarist/webext groundwork refactor #367

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from

Conversation

Andarist
Copy link
Member

Goals of this PR:

  • make the "layout" of the main app more customizable, or rather - achieve bigger control over the pieces that are rendered without a lot of conditional rendering tightly couple to context etc
  • this allows us to render (in the future) <WebExtension/> that eg. doesn't depend on Monocao anyhow or doesn't know anything about embed mode etc
  • remove dependency on SCSS to make it easier to bundle <WebExtension/> and also to migrate closer to a single source of truth for styling (previously we were mixing SCSS with Chakra)

In general, to review this PR it might be the easiest to just follow its commits. Most are self-contained refactoring pieces, with some minor bug fixes at the end.

I'm not super fond of some of those "customizable" points here - perhaps this could be structured in a better way. I feel though that the current shape of the code is manageable and we could always refactor stuff later. If you have any general thoughts on composition patterns for problems like this - I'm happy to discuss different tradeoffs etc.

@changeset-bot
Copy link

changeset-bot bot commented Jun 21, 2022

⚠️ No Changeset found

Latest commit: 5bdf243

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Jun 21, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
xstate-viz ✅ Ready (Inspect) Visit Preview Jun 21, 2022 at 1:48PM (UTC)

);

const dragMachine = dragModel.createMachine(
{

Choose a reason for hiding this comment

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

Copy link
Contributor

@mellson mellson left a comment

Choose a reason for hiding this comment

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

I think this restructuring makes sense. And from what I can test at the preview deploy, it also looks to be working. And the only failing test is fixed upstream. So LGTM 🚢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants