n8n/packages/design-system
Elias Meire 071e6d6b6e
feat(editor): Add fullscreen view to code editor (#8084)
## Summary

<img width="1240" alt="image"
src="https://github.com/n8n-io/n8n/assets/8850410/2819f4ce-c343-431a-8a88-a1bc9c4b572a">
<img width="2649" alt="image"
src="https://github.com/n8n-io/n8n/assets/8850410/36862aaf-cc4c-4668-bdc8-cf5a6f00babe">

1. Add code node and open it
3. Click the fullscreen button in the bottom right
4. A fullscreen dialog should appear and allow editing the code
5. Changes made in the fullscreen dialog should be applied to the
original code editor when closed

It should work the same way for HTML/SQL/JSON editors

⚠️ Modal layout was updated so that modals/dialogs are centered, try to
test some modals

## Related tickets and issues
https://linear.app/n8n/issue/NODE-1009/add-fullscreen-view-to-code-node



## Review / Merge checklist
- [ ] PR title and summary are descriptive. **Remember, the title
automatically goes into the changelog. Use `(no-changelog)` otherwise.**
([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md))
- [ ] [Docs updated](https://github.com/n8n-io/n8n-docs) or follow-up
ticket created.
- [ ] Tests included.
> A bug is not considered fixed, unless a test is added to prevent it
from happening again.
   > A feature is not complete without tests.

---------

Co-authored-by: Giulio Andreini <andreini@netseven.it>
2024-01-04 17:23:24 +01:00
..
.storybook feat(editor): Update storybook to 7.5.2 (no-changelog) (#7601) 2023-11-03 14:14:51 +02:00
public feat(editor): Update storybook to 7.5.2 (no-changelog) (#7601) 2023-11-03 14:14:51 +02:00
src feat(editor): Add fullscreen view to code editor (#8084) 2024-01-04 17:23:24 +01:00
theme/preview refactor: Upgrade to Prettier 3 (no-changelog) (#6947) 2023-08-16 17:13:57 +02:00
.browserslistrc Implement design system (#2050) 2021-08-29 13:36:17 +02:00
.eslintrc.js ci: Fix linting issues (no-changelog) (#6788) 2023-07-28 18:28:17 +02:00
.gitignore ci: Setup code-coverage reporting (no-changelog) (#5669) 2023-03-10 16:53:05 +01:00
.npmignore fix: delete unused dependencies (#4231) 2022-09-29 17:31:33 +02:00
LICENSE.md docs: scope Sustainable Use License to contents of the main branch (#4450) 2022-10-26 16:50:33 +02:00
LICENSE_EE.md docs(license): Introduce n8n Enterprise License (#3945) 2022-08-29 22:08:42 +02:00
package.json 🚀 Release 1.23.0 (#8205) 2024-01-03 13:41:28 +01:00
postcss.config.js feat(design-system,editor-ui): upgrade some of the frontend dev dependencies (#3978) 2022-08-31 15:47:33 +02:00
README.md docs: Replace http://faircode.io to https://faircode.io in .md files (#7908) 2023-12-12 15:23:22 +00:00
tsconfig.json refactor: Consolidate tsconfig and eslintrc files (no-changelog) (#6816) 2023-08-01 17:32:43 +02:00
vite.config.mts ci: Fix editor tests when coverage is enabled (no-changelog) (#7827) 2023-11-28 18:04:30 +01:00

n8n.io - Workflow Automation

n8n-design-system

A component system for n8n using Storybook to preview.

Project setup

pnpm install

Compiles and hot-reloads for development

pnpm storybook

Build static pages

pnpm build:storybook

Run your unit tests

pnpm test:unit

Lints and fixes files

pnpm lint

Build css files

pnpm build:theme

Monitor theme files and build any changes

pnpm watch:theme

License

n8n is fair-code distributed under the Sustainable Use License.

Proprietary licenses are available for enterprise customers. Get in touch

Additional information about the license can be found in the docs.