vivid-planet / comet Goto Github PK
View Code? Open in Web Editor NEWComet DXP
Home Page: https://comet-dxp.com
License: BSD 2-Clause "Simplified" License
Comet DXP
Home Page: https://comet-dxp.com
License: BSD 2-Clause "Simplified" License
For some cases (e.g. an "Add" page), it might be helpful to make the payload (which is basically the entity's ID) optional instead of creating Routes like /pages/add/new
. What do you think?
Sorry, but I have to bring this on the table again; now we have:
import { FinalFormInput, FinalFormCheckbox } from "@vivid-planet/react-admin";
I'm not very happy with it. Another (not yet discussed) alternative could be:
import { Input, Checkbox } from "@vivid-planet/react-admin-final-form-fields";
(create an own package just for the sake of shorter exports)
This would have to stay:
import { FinalFormDatePicker } from "@vivid-planet/react-admin-date-picker";
Quick Intro: I created a Filterbar Component for our Admin Tables. It takes Final Form Filter Fields as a prop and creates the forms to be able to apply filterValues to the TableQuery.
I already published my PR with the Variant A.
Variant A : A quick Look at my Filterbar Component and how it works.
https://user-images.githubusercontent.com/12484761/112325852-526fe980-8cb4-11eb-9d58-d384d0ccac9d.mov
(sry for the bad quality but only 10Mb allowed)
Variant B: This Variant would work like the Filtersection from Zalando. Its also not a bad idea in my opinion. There is no Sidebar and no labelValuesFunctions for the FilterFields. And their filterFields also work like my popoverFormField in Variant A so it only would take a small restyling of it.
Zalando.at
So i had a Question if my Variant makes sense or maybe its an overkill how i built it. Thats why i wanted to ask which variant is better for our Comet Admin
My main problem with Variant A is the dependency in my sidebar between my filters without immediately trigger the result of the table behind. So right now its implemented in the sidebar that you can fill your form fields in the sidebar and then submit all fields in the sidebar to the Tablequery to get new TableResults. Because there are not dependencies between my fields, it can happen that you don't get any results in your table anymore, which can be a problem for the user. And the Second problem is the performance issue you can see in the video during resizing the screen.
Variant B would still need to be implemented depending on what Result I get out of this Discussion.
Maybe even a Variant C gets revealed during the discussion i don't know but all i know its a question i cant answer alone so thats why i started this issue :)
Thank you for your attention, your time and your answers on my Topic :)
With the consolidation the importing of the former subpackages has changed. Du to naming collisions it is not possible to export everthing at root level. How should it work from now on?
Before:
import { FinalForm } from "@vivid-planet/react-admin-core";
import { Field, FormPaper, Input } from "@vivid-planet/react-admin-form";
1. Current Solution:
import { FinalForm, form } from "@vivid-planet/react-admin";
const { Field, FormPaper, Input } = form;
2. Export everything at root level.
Therefore we have to solve the naming collisions, e.g.:
import { FinalForm, FormField, FormPaper, FormInput } from "@vivid-planet/react-admin";
3. We use subdirectory-imports
import { FinalForm } from "@vivid-planet/react-admin";
import { Field, FormPaper, Input } from "@vivid-planet/react-admin/form";
This is currently not possible out of the box. If we import from "@vivid-planet/react-admin/form" the subdirectory "./form" in the "node_modules/@vivid-planet/react-admin" directory is used - which does not exist as we build into the "lib"-directory.
There are three solutions I can think of:
a. We build into the root directory. Then there is the danger of file collisions and the ./src exists in the lib. However, currently it should work and is an easy solution.
b. We write index files for every subdirectory. E.g. react-admin/form.js (and form.d.ts) which exports everything from the subdirectory. Hacky and manual solution.
c. We try to find a solution during the build process. However, I don't think that is too easy especially
when we want to keep the simple tsc compilation. Besides that there is already a standard to achieve this (https://nodejs.org/api/packages.html#packages_exports), but typescript doesn't recognize it yet (microsoft/TypeScript#33079).
Please answer with your favoured solution (1, 2, 3a, 3b, 3c).
Is it possible to remove it? Who would do it?
somehow data is an empty object ({}) and does not get catched by if (!ret.data) https://github.com/vivid-planet/react-admin/blob/master/packages/react-admin-core/src/table/useTableQuery.ts#L122, resolveTableData is called with an empty object.
is this intended?
Currently the dialog will be closed after (unsuccessful submit) which shows the save-question. Instead it should just stay open.
like started for EditDialog in #224
Possible solutions:
Categorization does not reflect anymore package structure. So we could organize them as we find it logical, but maybe it stays quite the same.
I would also consider renaming just to stories so that it is immediately visible that the package does not belong to react-admin itself.
https://material-ui.com/components/autocomplete/
It's meant to be an improved version of the "react-select" and "downshift" packages.
Only a suggestion, I didn't yet really go into the details...
Didn't check out the cause yet, but already fails in current next
when a rte-field is in a final-form, the promptmessage "Nicht gespeicherte Änderungen verwerfen?" always shows when pressing cancel even if there are no changes.
If an EditDialog is in a stack and contains a form, submitting with an Enter-Click triggers the Stack to go back one step too far.
This does not happen if the "Save" Button is used for submitting.
Original URL: /folder-1/folder/folder-2/folder/add
/folder-1/folder/folder-2/folder
/folder-1/folder
/folder-1/folder/folder-2/folder
/folder-1/folder/folder-2/folder
e.g.
<PrettyBytes value={x} />
Returns value in fitting unit
probably kilobyte, megabyte and gigabyte is enough
See #243 (comment)
PR should be based on #243
Remove usages in following files:
If something is missing, quote changes here, I will formulate them into CHANGELOG.md
Breaking:
Highlights:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.