-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalize schemas #547
Generalize schemas #547
Commits on Jul 21, 2023
-
Eliminate the usage of the XOR type
It is not necessary to use XOR as AnyAtom and AnyMolecule are already discriminated unions.
Configuration menu - View commit details
-
Copy full SHA for 31f8b56 - Browse repository at this point
Copy the full SHA 31f8b56View commit details -
Apply
@internal
to internal typesThis results cleaner generated schemas, as `@internal` types are not explicitly included in the schema `definitions`, but are instead evaluated inline (which is beneficial as their generated names are often nondescript and verbose).
Configuration menu - View commit details
-
Copy full SHA for 5a32063 - Browse repository at this point
Copy the full SHA 5a32063View commit details -
Annotate species union types with
@discriminator type
The `@discriminator` annotation will generate more performant `if-then-else` schemas for discriminated union types, instead of the default `anyOf` schemas.
Configuration menu - View commit details
-
Copy full SHA for 44c3909 - Browse repository at this point
Copy the full SHA 44c3909View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c811d5 - Browse repository at this point
Copy the full SHA 1c811d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e47c15 - Browse repository at this point
Copy the full SHA 7e47c15View commit details -
Split the set header into a separate type
Annotate `InputDocument` with `@internal`.
Configuration menu - View commit details
-
Copy full SHA for 134285c - Browse repository at this point
Copy the full SHA 134285cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a46728 - Browse repository at this point
Copy the full SHA 4a46728View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e8d93c - Browse repository at this point
Copy the full SHA 6e8d93cView commit details -
Switch to more simple generators for species types
Partially implements #58
Configuration menu - View commit details
-
Copy full SHA for 8b1d931 - Browse repository at this point
Copy the full SHA 8b1d931View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7d15e1 - Browse repository at this point
Copy the full SHA e7d15e1View commit details -
Add
stateIsAtom
type guard functionAdd `AnyParticle` to `AnySpecies`.
Configuration menu - View commit details
-
Copy full SHA for c4c59b0 - Browse repository at this point
Copy the full SHA c4c59b0View commit details -
Reimplement
insert_state_tree
to support the new schema changesThis function adds a state with all of its required parent states, and the corresponding relations to the database.
Configuration menu - View commit details
-
Copy full SHA for 4ca1932 - Browse repository at this point
Copy the full SHA 4ca1932View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9244ef2 - Browse repository at this point
Copy the full SHA 9244ef2View commit details -
As the database type. Move AnySpecies to its own module.
Configuration menu - View commit details
-
Copy full SHA for 92ac370 - Browse repository at this point
Copy the full SHA 92ac370View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a73df8 - Browse repository at this point
Copy the full SHA 2a73df8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b24869 - Browse repository at this point
Copy the full SHA 9b24869View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb23f1a - Browse repository at this point
Copy the full SHA eb23f1aView commit details -
Allow unspecified state descriptors as part of compound state
This is already required to support one of the state descriptions in the test set, e.g. CO2{X, {0,n,0|n,0,0}}.
Configuration menu - View commit details
-
Copy full SHA for db1ef4f - Browse repository at this point
Copy the full SHA db1ef4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 93a9be2 - Browse repository at this point
Copy the full SHA 93a9be2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebe4fb0 - Browse repository at this point
Copy the full SHA ebe4fb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdfb7fc - Browse repository at this point
Copy the full SHA cdfb7fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 178ae3c - Browse repository at this point
Copy the full SHA 178ae3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1476e08 - Browse repository at this point
Copy the full SHA 1476e08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 180fcb5 - Browse repository at this point
Copy the full SHA 180fcb5View commit details -
Add restriction on
State
generic parameterand add @Discriminator tags to `State` types.
Configuration menu - View commit details
-
Copy full SHA for 666b553 - Browse repository at this point
Copy the full SHA 666b553View commit details -
Configuration menu - View commit details
-
Copy full SHA for aff62f7 - Browse repository at this point
Copy the full SHA aff62f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18dfe7c - Browse repository at this point
Copy the full SHA 18dfe7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4c90da - Browse repository at this point
Copy the full SHA d4c90daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43ad835 - Browse repository at this point
Copy the full SHA 43ad835View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62232f5 - Browse repository at this point
Copy the full SHA 62232f5View commit details -
Added
Unspecified
class of statesThis class of states accepts a string identifier as their `electronic` value. This is useful for e.g. `He*` type states.
Configuration menu - View commit details
-
Copy full SHA for 071c264 - Browse repository at this point
Copy the full SHA 071c264View commit details -
Fix build errors in
EditForm
componentFIXME: The edit form is in a broken state and needs to be completely revamped.
Configuration menu - View commit details
-
Copy full SHA for e879e1d - Browse repository at this point
Copy the full SHA e879e1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 352d25e - Browse repository at this point
Copy the full SHA 352d25eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4db6d7 - Browse repository at this point
Copy the full SHA f4db6d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0047613 - Browse repository at this point
Copy the full SHA 0047613View commit details -
Fix query generators for new schema
Remove use of `immer` in insert state procedure.
Configuration menu - View commit details
-
Copy full SHA for 6cb7f6f - Browse repository at this point
Copy the full SHA 6cb7f6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9297cad - Browse repository at this point
Copy the full SHA 9297cadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6996e1f - Browse repository at this point
Copy the full SHA 6996e1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 237a8cd - Browse repository at this point
Copy the full SHA 237a8cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef957a2 - Browse repository at this point
Copy the full SHA ef957a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6588f64 - Browse repository at this point
Copy the full SHA 6588f64View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbbdc2b - Browse repository at this point
Copy the full SHA cbbdc2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4cba23 - Browse repository at this point
Copy the full SHA f4cba23View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9d0172 - Browse repository at this point
Copy the full SHA a9d0172View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41fb021 - Browse repository at this point
Copy the full SHA 41fb021View commit details -
Initial pass at automatic form generation from species schemas
Includes form factory functions that use the schema generated from `AnySpecies` to build an input form for each of the state types. The method is currently working fairly well, apart from one annoying error concerning `Select` component that function as a switch between `Single`, `Compound` and `Unspecified` state descriptors. The error is as follows: *Warning: A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component.* The result is that the selected option is not rendered, but the functionality of the component is fine. Proper handling of arrays should still be implemented.
Configuration menu - View commit details
-
Copy full SHA for f7fff0b - Browse repository at this point
Copy the full SHA f7fff0bView commit details
Commits on Jul 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d09a3ea - Browse repository at this point
Copy the full SHA d09a3eaView commit details
Commits on Aug 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 55d8e26 - Browse repository at this point
Copy the full SHA 55d8e26View commit details -
Configuration menu - View commit details
-
Copy full SHA for edf1353 - Browse repository at this point
Copy the full SHA edf1353View commit details -
Configuration menu - View commit details
-
Copy full SHA for b802b8d - Browse repository at this point
Copy the full SHA b802b8dView commit details -
Use a native `select` component to specify the state component type. Add new query to grab a data set by its id. Add `NotFound` component. Infer `LTPDocument` type. Rename `scat-css-new` to `set`.
Configuration menu - View commit details
-
Copy full SHA for 26015ae - Browse repository at this point
Copy the full SHA 26015aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3007f64 - Browse repository at this point
Copy the full SHA 3007f64View commit details -
Drops all DB tables except for the user table.
Configuration menu - View commit details
-
Copy full SHA for bedab15 - Browse repository at this point
Copy the full SHA bedab15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f4c7a2 - Browse repository at this point
Copy the full SHA 0f4c7a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cb56b5 - Browse repository at this point
Copy the full SHA 3cb56b5View commit details -
Add `parameters` and `threshold` properties for cross sections. Allow unspecified level descriptors in compound layers.
Configuration menu - View commit details
-
Copy full SHA for 3c23778 - Browse repository at this point
Copy the full SHA 3c23778View commit details
Commits on Aug 28, 2023
-
Use method to generate generic typescript types from generic zod schemas. Use output types instead of input types.
Configuration menu - View commit details
-
Copy full SHA for 25d0ab3 - Browse repository at this point
Copy the full SHA 25d0ab3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7428dfa - Browse repository at this point
Copy the full SHA 7428dfaView commit details
Commits on Sep 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e9c649e - Browse repository at this point
Copy the full SHA e9c649eView commit details -
Each zod component is now transformed to supply `summary` and `latex` functions that respectively serialize the object to a summarized short form and a latex form.
Configuration menu - View commit details
-
Copy full SHA for 48b3802 - Browse repository at this point
Copy the full SHA 48b3802View commit details -
Add
serialize
function toState
This function takes a `State` and generates its `StateSummary`.
Configuration menu - View commit details
-
Copy full SHA for 39f41df - Browse repository at this point
Copy the full SHA 39f41dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa1ff27 - Browse repository at this point
Copy the full SHA aa1ff27View commit details
Commits on Sep 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 44eec8e - Browse repository at this point
Copy the full SHA 44eec8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc0d51b - Browse repository at this point
Copy the full SHA dc0d51bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc6af84 - Browse repository at this point
Copy the full SHA fc6af84View commit details
Commits on Sep 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9deb612 - Browse repository at this point
Copy the full SHA 9deb612View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec2f032 - Browse repository at this point
Copy the full SHA ec2f032View commit details
Commits on Sep 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e223f4d - Browse repository at this point
Copy the full SHA e223f4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 687eb44 - Browse repository at this point
Copy the full SHA 687eb44View commit details
Commits on Sep 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 62bfd55 - Browse repository at this point
Copy the full SHA 62bfd55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ebdbc8 - Browse repository at this point
Copy the full SHA 0ebdbc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3397ea - Browse repository at this point
Copy the full SHA a3397eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 862ee4e - Browse repository at this point
Copy the full SHA 862ee4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 879405d - Browse repository at this point
Copy the full SHA 879405dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4730ea - Browse repository at this point
Copy the full SHA a4730eaView commit details
Commits on Sep 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8bef8d2 - Browse repository at this point
Copy the full SHA 8bef8d2View commit details
Commits on Sep 18, 2023
-
Testing external serializer functions
Supplied through `Component` type.
Configuration menu - View commit details
-
Copy full SHA for 0adfdbb - Browse repository at this point
Copy the full SHA 0adfdbbView commit details
Commits on Sep 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9a9bc25 - Browse repository at this point
Copy the full SHA 9a9bc25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c527ee - Browse repository at this point
Copy the full SHA 9c527eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aee66f - Browse repository at this point
Copy the full SHA 0aee66fView commit details
Commits on Sep 20, 2023
-
Push
SimpleParticle
down the treeAdd `makeComponent` function to help in definition of state level components.
Configuration menu - View commit details
-
Copy full SHA for 0e44b95 - Browse repository at this point
Copy the full SHA 0e44b95View commit details
Commits on Sep 21, 2023
-
Add helper types for new serialization strategy
These helper types allow for the simple construction of both `serializable` and `non-serializable` versions of components and atoms. The atomic types have already been reworked to use these helper types.
Configuration menu - View commit details
-
Copy full SHA for b3e163c - Browse repository at this point
Copy the full SHA b3e163cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c36c91 - Browse repository at this point
Copy the full SHA 3c36c91View commit details
Commits on Sep 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 87ed3ca - Browse repository at this point
Copy the full SHA 87ed3caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99b15d5 - Browse repository at this point
Copy the full SHA 99b15d5View commit details -
`AnySpecies` is now used instead. Start preparing `index` files for removal of `dist` in external import statements.
Configuration menu - View commit details
-
Copy full SHA for 96faaaa - Browse repository at this point
Copy the full SHA 96faaaaView commit details -
Use zod refine to check validity of
state
andreference
keysin LTPDocument. Add corresponding tests.
Configuration menu - View commit details
-
Copy full SHA for 96f2ec7 - Browse repository at this point
Copy the full SHA 96f2ec7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62d76de - Browse repository at this point
Copy the full SHA 62d76deView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd3b2ef - Browse repository at this point
Copy the full SHA bd3b2efView commit details -
Encapsulate exports and use
nodenext
module resolutionUse `exports` field in `package.json`.
Configuration menu - View commit details
-
Copy full SHA for 59cc9ee - Browse repository at this point
Copy the full SHA 59cc9eeView commit details -
Use new `@lxcat/schema` imports and types. Fix `tsconfig` to work with new module resolution strategy.
Configuration menu - View commit details
-
Copy full SHA for 985a713 - Browse repository at this point
Copy the full SHA 985a713View commit details
Commits on Sep 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 81d27fe - Browse repository at this point
Copy the full SHA 81d27feView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3ef0bc - Browse repository at this point
Copy the full SHA a3ef0bcView commit details -
Add additional fields to
CSLNameVariable
These are not present in the standard CSL schemas, but may be supplied by `citation-js`.
Configuration menu - View commit details
-
Copy full SHA for 5abe8e1 - Browse repository at this point
Copy the full SHA 5abe8e1View commit details
Commits on Sep 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 97c300c - Browse repository at this point
Copy the full SHA 97c300cView commit details -
Configuration menu - View commit details
-
Copy full SHA for dcdff03 - Browse repository at this point
Copy the full SHA dcdff03View commit details -
Fix data select/inspect/compute routes
These pages now all use the new schema. Database cli scripts have also been fixed.
Configuration menu - View commit details
-
Copy full SHA for 9f8e17b - Browse repository at this point
Copy the full SHA 9f8e17bView commit details
Commits on Sep 29, 2023
-
Update state interface in edit form
Use an accordion with latex state descriptions in the control. Add `+` button that adds an empty species. Add `Add from database` button that should allow the user to pick an already existing species from the database (TODO).
Configuration menu - View commit details
-
Copy full SHA for db27106 - Browse repository at this point
Copy the full SHA db27106View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5343367 - Browse repository at this point
Copy the full SHA 5343367View commit details
Commits on Oct 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0aa12b9 - Browse repository at this point
Copy the full SHA 0aa12b9View commit details
Commits on Oct 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 23e3e4a - Browse repository at this point
Copy the full SHA 23e3e4aView commit details
Commits on Oct 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for daa128d - Browse repository at this point
Copy the full SHA daa128dView commit details
Commits on Oct 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for de8d809 - Browse repository at this point
Copy the full SHA de8d809View commit details
Commits on Nov 3, 2023
-
This class can be used to build routes (as the name suggests). It utilizes the builder pattern to build routes for the Nextjs app router using middlewares and route handlers, while maintaining type safety.
Configuration menu - View commit details
-
Copy full SHA for 09dfb16 - Browse repository at this point
Copy the full SHA 09dfb16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 036c6c4 - Browse repository at this point
Copy the full SHA 036c6c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b35a95e - Browse repository at this point
Copy the full SHA b35a95eView commit details
Commits on Nov 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4df9076 - Browse repository at this point
Copy the full SHA 4df9076View commit details -
Previous version `3.22.4` caused OOM errors on transpilation.
Configuration menu - View commit details
-
Copy full SHA for c8d84b5 - Browse repository at this point
Copy the full SHA c8d84b5View commit details -
Provide generally useful API calls. Will be used for edit form `pick from database` option.
Configuration menu - View commit details
-
Copy full SHA for 18134fd - Browse repository at this point
Copy the full SHA 18134fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for acd05b6 - Browse repository at this point
Copy the full SHA acd05b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f046e3f - Browse repository at this point
Copy the full SHA f046e3fView commit details
Commits on Nov 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b035a45 - Browse repository at this point
Copy the full SHA b035a45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2133764 - Browse repository at this point
Copy the full SHA 2133764View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb90176 - Browse repository at this point
Copy the full SHA bb90176View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b1dcc2 - Browse repository at this point
Copy the full SHA 0b1dcc2View commit details -
Add species picker in set edit form
Allows users to pick existing species from the database. Also adds the corresponding api endpoints: - /api/species - /api/species/children
Configuration menu - View commit details
-
Copy full SHA for 8d6623f - Browse repository at this point
Copy the full SHA 8d6623fView commit details -
Update schema generation command
Command is now: `pnpm json:set`. Add cli module that prints the generated `LTPMixture` schema. Add `dom` lib dependency for printing. Remove `ts-json-schema-generator` dependency. Remove old schema types.
Configuration menu - View commit details
-
Copy full SHA for cc4df7d - Browse repository at this point
Copy the full SHA cc4df7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bd1b0c - Browse repository at this point
Copy the full SHA 6bd1b0cView commit details
Commits on Nov 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d869f45 - Browse repository at this point
Copy the full SHA d869f45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c870f0 - Browse repository at this point
Copy the full SHA 8c870f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f661739 - Browse repository at this point
Copy the full SHA f661739View commit details -
Fix and restrict atom and molecule schemas
Compound species should have at least two entries. Fix wrong label for unspecified entries in compound species.
Configuration menu - View commit details
-
Copy full SHA for 01a453f - Browse repository at this point
Copy the full SHA 01a453fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3188d95 - Browse repository at this point
Copy the full SHA 3188d95View commit details -
Configuration menu - View commit details
-
Copy full SHA for ded7009 - Browse repository at this point
Copy the full SHA ded7009View commit details
Commits on Nov 9, 2023
-
The process `info` property is now always an array.
Configuration menu - View commit details
-
Copy full SHA for d107714 - Browse repository at this point
Copy the full SHA d107714View commit details
Commits on Nov 12, 2023
-
Made code a lot more testable. Fix broken database tests. Tests now run in ~3s instead of ~120.
Configuration menu - View commit details
-
Copy full SHA for 64d2f61 - Browse repository at this point
Copy the full SHA 64d2f61View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd55010 - Browse repository at this point
Copy the full SHA fd55010View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d03127 - Browse repository at this point
Copy the full SHA 7d03127View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ca9813 - Browse repository at this point
Copy the full SHA 7ca9813View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ba59d7 - Browse repository at this point
Copy the full SHA 2ba59d7View commit details
Commits on Nov 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4ea4b00 - Browse repository at this point
Copy the full SHA 4ea4b00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7434ae1 - Browse repository at this point
Copy the full SHA 7434ae1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bed694f - Browse repository at this point
Copy the full SHA bed694fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 54899fc - Browse repository at this point
Copy the full SHA 54899fcView commit details