Gyroscope is an OWOX Data Marts plugin that answers one question first: are we on track for the goal in the project description? It draws the project's ontology: one model of business classes, the same for every member of the project.
- With no date range, the default, the canvas is the ontology view. The class that owns the goal sits in the center, with 3 to 7 core dictionary classes (Customers, Users, Products) around it. Cards show class names only.
- With a date range, the canvas is the flow view. Each card shows one key metric against plan, with a trend, and with a forecast when the range ends in the future. Classes connected to the core ones appear below them.
The shared ontology spec describes both views.
- A Data Mart field that holds the project goal. An admin picks it in Setup (Business Critical Number). Setup also offers to add a Critical number row linking to it in the project description.
- An AI Credential is optional. When one is mapped at install, Gyroscope uses it to recommend answers in Setup. It never saves one for you.
- Calculated fields in your Data Marts reference other Data Marts. Gyroscope draws a connection for each reference.
- An admin sets the goal in Setup once. Until then, a member sees the "Goal can't be tracked" screen: the Business Critical Number is not set, and they are told to ask a project admin to finish Setup.
Settings has two tabs. General holds your own view settings. Setup replaces Checkup and Metrics: one list of questions in blocks (goal, core classes, contexts, metrics with their plans and formats, ratios, data checks, housekeeping, which holds the On-Track Margin threshold). Each question has a (?) hint and a radio list of answers, with the recommended one first and tagged. An admin picks an option, and Gyroscope stores exactly that. Choices are staged and written together by Save. Discard drops them. Optional notices have a "Not needed" answer. Members see the values read-only. The AI only recommends one of the options the code built.
- Core Classes recommends the Data Marts linked in the project and context descriptions (by Data Mart link, not by title).
- Core Classes offers only Data Marts with a direct or indirect relationship to the critical number's Data Mart.
- Core Classes suggests the Data Marts named in the project and context descriptions and those reachable from the goal through relationships, direct or indirect. You can tick any Data Mart with exactly one primary key (since 0.5.9, only those related to the critical number's Data Mart).
- A wrapped value keeps its Data Mart icon on the first line.
- Back, Cancel and General Save are disabled while a Setup save runs, so a failed save never leaves its picks behind. Host exits (sidebar, browser Back) get the host's own warning.
- The "Leave without saving?" dialog closes by itself, and the exit goes on, if the picks are gone. It says so when saving General settings drops them.
- Focus stays in the dialog and the page behind it is inert.
- Setup notices are grey, not green. Errors stay red and warnings orange.
- Leaving Settings or opening an OWOX link with unsaved Setup changes asks "Leave without saving?". Switching between General and Setup keeps them.
- Context and Data Mart cells are wider (at least 24rem), so long field names fit.
- Every (?) opens a dark tooltip on click and renders its Markdown: headings, tables, lists and links. Long context and Data Mart descriptions are cut at a whole line, and "Show more" opens their page; other long text scrolls.
- The (?) and the OWOX link icons show on hover only, and take no room until shown, so the Recommended tag stays beside its label.
- "Contexts That Move the Needle" and "Core Classes" are checkbox lists. Contexts you leave unchecked no longer count anywhere.
- A context card folds whole, down to its header.
- Metrics cards show a (?) and a link on the class name.
- Options sit under the setting's title instead of in a right column. A saved value starts with its Data Mart icon.
- "Search N more…" opens a list that floats over the rows below it, so the block doesn't grow.
- "Core Business Entities" is merged into the "Goal & Core Classes" block, as "Core Classes". "Teams" are now "Contexts".
- Contexts are a grid of bordered cards of equal height. Each card's label shows the context's description (rendered Markdown) and a link to its OWOX page on hover.
- "Numbers on the Card" uses checkboxes, up to 3.
- Every field with a schema description has a (?) that shows it.
- Options sit under the question's title, each with its Data Mart icon, link and Recommended tag.
- A long option list (12 or more options) gets a search field instead of "Show N more". Type to filter by Data Mart or field, pick with the arrow keys and Enter or a click. The pick shows as a checked radio.
- The progress bar is the bottom edge of the sticky header. The "N recommended · N notices left" line scrolls with the blocks.
- Section titles no longer show a count beside them.
- A new plugin description: it says what Gyroscope shows, in plain terms.
- Save sits in the Settings header, next to the change count and Discard.
- The header, tabs and progress bar stay in view while the blocks scroll. A save error or notice stays in view with them.
- The plan named in the description's Metrics table is offered first, with the date field it names, and the line Setup writes names the plan's date too.
- Data Marts with a plan in their title and no primary key (such as "Plan Data_Revenue") are read as plans: their numbers are offered as plans, and come last as critical numbers. A keyed one ("Subscription Plans") stays an ordinary fact table.
- A set row shows its value, with an edit pencil on hover instead of a Change link.
- A hint is only as wide as its text, and the row separator starts at the title.
- "Not needed" can be changed back, also on a skipped ratio.
- The On-Track Margin keeps its Recommended tag after it is saved.
- Fixes to the Change list of a set row.
- Setup replaces Checkup and Metrics. Settings are stored as chosen, not computed.
- The AI only recommends. Every question has a recommended option with or without an AI credential, and the AI can only pick from the options Gyroscope built.
- Existing projects start from empty settings with recommendations for every question. The 0.4 threshold is kept, and the old core classes come back as recommendations.
- Ratio metrics: divide one metric by another.
- A member who can't access the project goal Data Mart sees the canvas centered on the nearest context critical number they can access, or is told to ask for access.
- Removed: the AI model build, rebuild proposals and the industry setting.
- Setup choices are radio lists with a (?) hint on each question and block. They are staged and written together by Save. Optional notices can be marked "Not needed".
npm install
npm test
npm run typecheck
npm run buildThe plugin platform does not support a local preview. Test Gyroscope as an installed plugin.
- Push to
main. GitHub Pages deploysdist/to the folder of the compatibility line:v5/for 0.5.x. Installs of 0.2 keep loading the root. - A new compatibility line (0.6) needs
plugin.jsondelivery.urlmoved to its folder (/v6/); a test fails until it is. - Check the plugin with
owox-ctl plugins check OWOX/gyroscope --ref main. - Create a release with
gh release create v0.5.10 --target <full commit SHA> --generate-notes. - In OWOX, open Plugins, then Publish Plugin, and choose "Only me" for testing.
The design spec has the details. Each step below maps to a section.
- Derive the ontology model: Gyroscope turns the saved Setup answers, Data Marts, references and contexts into classes, connections and metrics (spec section 5).
- Date ranges: presets, the fact window, the forecast window and the comparison window, all in UTC (section 6).
- Metrics: one query per metric, a forecast, plan values and statuses (section 7).
- Canvas and card: layout by reference distance, context filters, and the metric card (section 8).
- States: blocked, failed and loading screens, each with a fix or a retry (section 9).
- Cache: the canvas reads cached results, and a refresh runs when the data is stale (section 10).
The Setup spec covers the Setup tab. The shared ontology spec covers the shared model, core classes, the two views.