Bring in a pricing engine configuration file prototype
Table of Contents
| Item | Where |
|---|---|
| Prototype | the prototype |
| Gemini review | none |
| Group | Reporting prototypes |
1. Summary
This prototype draws the import of an ORE pricingengine.xml as a workflow of five steps on the standard steps UI. The difference is the screen's reason to exist: a file is a replacement for a document the party may already hold, and a person who brings one in must read what it adds, what it changes and, above all, what it leaves out. A file never becomes official directly. A new file is saved as a draft. A file put into an approved configuration is a proposal for a new version, and waits for sign-off. A file put into a draft changes the draft in place.
The page answers to the journey Bring in a pricing engine configuration file. It is throwaway: it reads no service, writes nothing to one, and states which parts of the interaction no operation supports. It follows the Record screen standard and the rules in Prototypes: plain HTML, CSS and JavaScript, no framework, no build and no backend, with the design tokens of projects/ores.web/packages/web/src/styles.css.
2. Detail
2.1. The question the screen answers
"I have the ORE file my quants use. I want it in ORE Studio, and I want to know what it changes before it does." A file that omits a product usually leaves it out by accident, so a removed product is listed first and its default is Keep it.
2.2. States and switches
?file=clean|unknown|omits.cleanreads without a finding.unknownholds a product type with no code, an element with no column and a type that appears twice.omitsholds two products, so the target loses seven.?target=new|c2|c3: save as a new draft, put the file into the approved EOD pricing, which four reports bind, or put it into the draft US swaptions SABR trial. Each target has its own button: Save as draft, Submit for sign-off or Save.?step=1..5.
2.3. Rules the page follows
- A product type with no code is skipped by default, with the choice to add the type first. Adding a code writes the vocabulary, which is a separate write and is stated.
- An element with no column is dropped, and the page says so. It is listed in the review, so it is not lost silently.
- A duplicate is resolved by the person. The page does not pick.
- A new version asks for a change reason and a commentary and claims the version read, as the standard says.
- The reach is stated before the target is chosen, for a target that reports bind. For an approved target it says that nothing changes until the sign-off completes.
- A proposal does not change the configuration. The review says that the version in force stays in force and that the person who submits cannot sign off.
2.4. What is fake
Every value, and the parse. The three files are fixtures standing in for a file the person chooses. No operation turns a person's file into a pricing engine configuration document, and no operation returns a diff, so the screen computes the difference over two documents. The data quality publisher saves what it reads, so a parse that writes nothing is a new operation. The XML document codec prototype shows the shape it would take.
2.5. Where the code lives
doc/prototypes/reporting/bring-in-a-pricing-engines-file/index.html. One file, plain HTML, CSS and JavaScript, with the style and the script inline, no modules, no fetch and no build step.
2.6. What it argues
- The difference is drawn with the removed products first, and their default is Keep it.
- What the system cannot read is listed and dropped on the page, never silently.
- The parse belongs on the server. The prototype marks it as a mock.
2.7. The verdict
None yet. This page is on the branch that proposes it and waits for review.
2.8. What it does not settle
- Whether a file that replaces a document should be refused when it removes more than it keeps.
- Whether the elements the tables cannot hold should be kept in a model of their own.
3. See also
- Reporting prototypes — the group, and what each prototype argues.
- Bring in a pricing engine configuration file — the journey this prototype answers.
- Record screen standard — the shape of the list, the page and the dialogs.
- First run — the prototype the standard steps UI is copied from.