Comments (7)
Hi @Clebal!
I like the idea of a /data/sources. Just to have a clear idea of the other folder what contents do you propose for /data/models? can you put also an example?
Regarding to source file contents:
- 👍🏻 like having the ID, the SOURCE_COLUMNS and the SOURCE itself
- ❓ I have doubts about including the WIDGETS inside: if the idea is to split backend from front, shouldn't those widget properties be outside, as they are more related to the visual/frontend part? what do you think?
from carto-react-template.
I'm following this same structure in the site planning product project and in there, data/sources
contains functions that return strings (sql strings for sources) while data/models
contains functions that call the SQL API directly with executeQuery
and return or process those results
from carto-react-template.
@VictorVelarde , KPI_SOURCE_WIDGETS is the interface for the frontend, we don't want to know the column name and the operation about that column. We prefer a key and backend includes the operation and name column like they want
from carto-react-template.
Ok, if it works for you and it fits the workflow, I'm ok with the SOURCE_WIDGETS side.
@albertoarana do you aggree on keeping the division between data/sources (declarative, for layers & widgets), from data/models (for custom queries against any api?)
from carto-react-template.
I agree, maybe that X_WIDGETS won't be the best suffix. I would try with other name.
Any suggestion?
from carto-react-template.
We will go to remove _WIDGETS from source finally
from carto-react-template.
Already done
from carto-react-template.
Related Issues (19)
- Custom formatter for widgets not working on Safari HOT 2
- Missing dependencies break npx cra common use HOT 3
- Basic tab layout id broken on first load HOT 3
- Vercel seems to be broken HOT 1
- Error on console related to browser compat in stores detail HOT 1
- Performance issues for SQL-based source, following tutorial HOT 4
- Error when installing Carto skeleton app HOT 2
- Unnessary files included in the npm package HOT 1
- How I could draw shapes. HOT 1
- How to Style layers without CartoCss HOT 3
- Carto for React + deck.gl/react (react-map-gl) component, are they compatible? HOT 4
- highlightColor defined as a function on CartoLayer doesnt seem to work HOT 1
- Chrome iPad simulator === not supported screen HOT 1
- How I could add layer to map dynamically HOT 4
- Compilation error: Can't resolve 'gl-matrix/mat3' HOT 4
- Viewstate sync in app template is broken when using Google Maps HOT 1
- Template is failing due to a bug in the latest version in loaders.gl HOT 1
- Library compatibility with React 18 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carto-react-template.