Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

builder-data-scopes

/builder-data-scopes

Pomaga wybierać, implementować i debugować DATA_SCOPES w Application Builder dla formuł elementów i dostawców danych: widoczność, selektory właściwości kolekcji, pola formularzy i akcje zagnieżdżonych wierszy.

Repozytorium
baserow ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pomaga wybierać, implementować i debugować DATA_SCOPES w Application Builder dla formuł elementów i dostawców danych: widoczność, selektory właściwości kolekcji, pola formularzy i akcje zagnieżdżonych wierszy.

Oryginalny opis (EN)

Choose, implement, or debug Application Builder DATA_SCOPES for element formulas and data providers, including visibility, collection property pickers, form inputs, and nested row actions. Do not use for database view scopes or unrelated formulas.

Jak działa

  1. Choose the scope at the caller
  2. Follow the collection chain
  3. Test the boundary
Sekcje z nagłówków SKILL.md, w oryginale · 32 linii, 424 słów
Podgląd SKILL.md
---
name: builder-data-scopes
description: Choose, implement, or debug Application Builder DATA_SCOPES for element formulas and data providers, including visibility, collection property pickers, form inputs, and nested row actions. Do not use for database view scopes or unrelated formulas.
---

# Builder data scopes

Use this skill when a Builder formula or data provider sees too much data, too little data, or the wrong collection row. Read the current definitions in `web-frontend/modules/builder/constants.js` and the relevant caller before changing a scope.

## Choose the scope at the caller

`applicationContext.dataScope` describes what is available relative to the formula's target element. Choose it for the **formula location**, not just the element type. Keep the named compound scopes in `constants.js`.

- `EXCLUDE_TARGET_SUBTREE`: exclude the target and its descendants. Use for visibility conditions, which must not depend on data inside the element they decide to show. Ancestor data remains available.
- `INCLUDE_TARGET_DATA_SOURCE`: include the target when finding a collection data source, but do not follow the target's `schema_property`. Use while choosing that property in a collection form.
- `INCLUDE_TARGET_ELEMENT`: include the target, its descendants, and its schema property. Use for formulas that need the current row, such as table fields and record-selector option suffixes. Form submission also needs access to inputs inside the form.

These scopes set independent flags: target element, target descendants, and target schema properties. Do not assume one flag implies another. Page-level contexts currently start with `EXCLUDE_TARGET_SUBTREE`; callers that need target data opt in explicitly.

Examples:

- A form's visibility formula uses `EXCLUDE_TARGET_SUBTREE`: it may read data outside the form, but not inputs inside it. Form submission must include those inputs.
- A table field formula uses `INCLUDE_TARGET_ELEMENT` to read its current row; the table's show-more label uses `EXCLUDE_TARGET_SUBTREE` because it has no current row.
- A record selector's option suffix uses `INCLUDE_TARGET_ELEMENT` to read the current option. Its label and visibility formulas must not see that option.
- A collection's property picker uses `INCLUDE_TARGET_DATA_SOURCE` to find its data source without following the property currently being selected.

## Follow the collection chain

A nested collection may have no `data_source_id`: its rows can come from a `schema_property` on an ancestor's row. Find the nearest ancestor with a data source, then follow each nested property and row index. Frontend action dispatch sends the full `index_path`; the backend derives `current_record.__idx__` from its last entry. Do not reduce that path to one index when resolving nested actions.

Relevant code: `web-frontend/modules/builder/dataProviderTypes.js`, `elementTypes.js`, `mixins/collectionElementForm.js`, and `backend/src/baserow/contrib/builder/data_providers/data_provider_types.py`.

## Test the boundary

Assert actual formula values and picker choices, including both allowed and excluded data. Cover a table inside a repeat, a repeat child, record-selector options versus visibility, form submission versus form visibility, and a button action in a property-backed table. Use different parent and child values so the wrong scope cannot pass unnoticed.

Wersje

W bazie nie ma innych skilli o nazwie builder-data-scopes.

Migawka bazy z 13.11.2026 · wersja paczki a2b4cc131fdf (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100test-data-builder
    Prawdopodobnie pomaga budować dane testowe wzorcem Test Data Builder w automatyzacji testów.
  • 100create-update-service
    Tworzy lub aktualizuje typy integracji i usług Baserow, w tym usługi jako źródła danych Application Builder, akcje workflow Buildera, akcje i wyzwalacze węzłów Automation oraz źródła danych dashboardów.
  • 90datasets
    Pomaga wybrać między prostym plikiem iteracji a zbiorem danych w kolekcji testów, na przykład dla wierszy z bazy.
  • 90Add Or Update Builder Element Type
    Dodaje lub zmienia typ elementu w kreatorze aplikacji Baserow, od modeli backendu po komponenty frontendu i testy.
  • 100appbuilder-action-scaffolder
    Tworzy, implementuje, wdraża i debuguje akcje Adobe Runtime ze spójnym układem, walidacją i obsługą błędów w projektach App Builder.
  • 100frappe-web-form-builder
    Generuje Web Forms Frappe dla publicznych formularzy, takich jak portale klienta, rejestracje, ankiety i zbieranie danych.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.