c2f-preview-modals-system
Skill4 starsChanged 33 days agoMITView on GitHub
LEIA ANTES de implementar ou editar modais de pré-visualização ao vivo no editor. Se não ler: estilos do painel vazam para dentro do preview, o iframe falha em renderizar ou trava por Content Security Policy.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- otavioserra/conn2flowword for word, first seen Nov 5, 2026
Other versions1 project uses a version of this.
Word for word · 1
- otavioserra/conn2flow★ 5100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository96 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cli/CLAUDE.mdCLAUDE.md
- resources/CLAUDE.mdCLAUDE.md
- c2f-agent-visual-inspectionSkill
- c2f-ai-featuresSkill
- c2f-architect-masterSkill
- c2f-database-operationsSkill
- c2f-database-testingSkill
- c2f-dev-scriptsSkill
- c2f-docker-environmentSkill
- c2f-documentation-governanceSkill
- c2f-documentationSkill
- c2f-environment-configurationSkill
- c2f-executor-agentSkill
- c2f-gd-image-safetySkill
- c2f-gestor-functionsSkill
- c2f-global-variablesSkill
- c2f-hooks-systemSkill
- c2f-html-css-pages-and-componentsSkill
- c2f-interface-v2-architectureSkill
- c2f-javascript-ajaxSkill
- c2f-json-resources-syncSkill
- c2f-mdd-indexing-and-handoffsSkill
- c2f-modelo-templatesSkill
- c2f-module-crud-scaffoldingSkill
- c2f-module-visual-assetsSkill
- c2f-multilingual-skills-governanceSkill
- c2f-multilingual-systemSkill
- c2f-mysql-utf8-emoji-encodingSkill
- c2f-payment-gatewaysSkill
- c2f-plugin-architectureSkill
- c2f-project-pipeline-and-tasksSkill
- c2f-projects-systemSkill
- c2f-resources-systemSkill
- c2f-reviewer-agentSkill
- c2f-shell-and-windows-trapsSkill
- c2f-system-tasksSkill
- c2f-tailwind-css-architectureSkill
- c2f-tailwind-module-migrationSkill
- c2f-variables-systemSkill
- c2f-widget-developmentSkill
- continue-mdd-batchSkill
- mdd-memory-gardeningSkill
- mdd-workflowSkill
- project-validationSkill
- raise-spec-changeSkill
- review-current-batchSkill
- start-mdd-sliceSkill
- c2f-mdd-indexing-and-handoffsSkill
- c2f-agent-visual-inspectionSkill
- c2f-ai-featuresSkill
- c2f-architect-masterSkill
- c2f-database-operationsSkill
- c2f-database-testingSkill
- c2f-dev-scriptsSkill
- c2f-docker-environmentSkill
- c2f-documentation-governanceSkill
- c2f-documentationSkill
- c2f-environment-configurationSkill
- The first 60 shown.
The file
Files
Sistema de Modais de Preview e Conhecimento (CONN2FLOW-PREVIEW-MODALS-SYSTEM.md)
Inspeção de preview com Chrome DevTools MCP
No sandbox local de c2f-agent-visual-inspection, obtenha take_snapshot, abra o preview pela interface e aguarde o iframe carregar. Capture take_screenshot em desktop/mobile; meça modal, overlay e iframe com getBoundingClientRect() por evaluate_script somente de leitura. Confira clipping, scroll, foco, Escape/fechar e reabertura sem overlays ou iframes duplicados.
Compare a aparência do conteúdo isolado com a página original para detectar vazamento de CSS do painel. Inspecione o documento interno apenas quando same-origin permitir; para cross-origin, avalie dimensões externas, screenshot e mensagens do console. Use list_console_messages/get_console_message e list_network_requests/get_network_request para identificar CSP, recursos bloqueados e falhas HTTP. Registre limitações de acesso sem desativar CSP ou isolamento do iframe.
⚡ Gatilho Obrigatório
- TRIGGER: Implementar ou modificar modais que renderizam componentes, templates ou páginas em modo preview dentro do Gestor.
- SKIP APENAS SE: Modais simples de diálogo (alertas, confirmações simples) que não renderizam conteúdo HTML de terceiros.
- CONSEQUÊNCIA DE IGNORAR: Poluição de CSS do painel administrativo sobre o componente pré-visualizado, falha no cálculo de altura do iframe ou bloqueios de CORS.
Consulte e aplique as seguintes convenções para criação e exibição de modais dinâmicos no Conn2Flow:
1. Modais de Pré-Visualização no Gestor
- Propósito: Exibir prévia em tempo real de páginas, layouts, componentes ou conteúdos gerados por IA antes da publicação final.
- Injeção de Modal Semantic UI:
<div class="ui modal" id="modal-preview-recurso"> <i class="close icon"></i> <div class="header">Pré-visualização do Recurso</div> <div class="scrolling content"> <iframe id="iframe-preview" src="about:blank"></iframe> </div> </div>
2. Invocação via JavaScript
function abrirPreviewRecurso(urlPreview) {
$('#iframe-preview').attr('src', urlPreview);
$('#modal-preview-recurso').modal('show');
}Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

