Skip to content

Revert "Add view component previews using Lookbook"#6004

Merged
aduth merged 2 commits intomainfrom
revert-5982-aduth-lookbook
Feb 25, 2022
Merged

Revert "Add view component previews using Lookbook"#6004
aduth merged 2 commits intomainfrom
revert-5982-aduth-lookbook

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Feb 25, 2022

Reverts #5982

In testing in sandbox environments, there are errors when server starts up.

Revert while we investigate further.

@aduth aduth requested a review from zachmargolis February 25, 2022 19:25
@aduth aduth merged commit e7ff579 into main Feb 25, 2022
@aduth aduth deleted the revert-5982-aduth-lookbook branch February 25, 2022 19:54
aduth added a commit that referenced this pull request Feb 25, 2022
@aduth
Copy link
Contributor Author

aduth commented Apr 1, 2022

aduth added a commit that referenced this pull request Oct 20, 2022
aduth added a commit that referenced this pull request Oct 21, 2022
* Revert "Revert "Add view component previews using Lookbook" (#6004)"

This reverts commit e7ff579.

* Add changelog

changelog: Internal, Component Preview, Add development preview environment for UI components

* Move Lookbook/ViewComponent preview config to application.rb

For future support in deployed environments

* Add additional button variations

* Fix border-box bug

* Render default and component JavaScripts

* Add Accordion component preview

* Add Barcode component preview

* Add Block Link component preview

* Use custom preview controller for synchronous script enqueues

* Add Clipboard Button component preview

* Try handling CSP overrides in preview controller

* Revert to referencing CSP from request

Because current_content_security_policy will not be nil, even if empty

* Add countdown component preview

* Add icon component preview

* Add basic theming configuration for Lookbook

* Update Lookbook and remove workaround for now-fixed bug

* Revert (back) to current_content_security_policy

Address previous issues by checking env in the same way that Lookbook does

https://github.com/allmarkedup/lookbook/blob/b40f6ea42296be4d5eec9c5d858c4b11f878451c/app/controllers/lookbook/application_controller.rb#L3-L5

* Set X-Frame-Options based on component preview config

* Manage component CSP with Rack middleware

* Fix download button space encoding

* Add preview for DownloadButton component

* Temporary: Remove mounting

Theory is something in the engine init is messing with the tests? Shouldn't be mounted tho, based on feature flag

* Revert "Temporary: Remove mounting"

This reverts commit cf2fff9.

* Upgrade Lookbook to latest

* Try loading on demand

* Require at config

* Fix standalone MemorableDateComponent missing dependencies

* Add MemorableDateComponent component preview

* Add PasswordToggleComponent component preview

* Add PhoneInputComponent component preview

* Add SpinnerButtonComponent component preview

* Add StatusPageComponent component preview

* Add StepIndicatorComponent component preview

* Add TimeComponent component preview

* Add TroubleshootingOptionsComponent component preview

* Add ValidatedFieldComponent component preview

* Swap "Kitchen Sink" and "Playground" with "Preview" and "Workbench"

* Move Lookbook gem back into alphabetized list

See: #7115 (comment)
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.

2 participants