FreeVelox/Documentation
ProductChangelog

The site admin console

The official site carries an admin console at /admin. It is where the catalogue is changed and where the purchase records are read: what you sell, what it costs, and who bought what.

Who can enter

The site has no user table of its own. A person is an operator because the official service says so β€” the operator roster is a list of email addresses, each carrying the scopes it holds. The site asks the official service who the signed-in person is, and the console opens for that answer.

ScopeWhat it opens
catalogue:writeThe catalogue: products, prices, and the overview figures behind them.
purchases:readThe purchase records of every customer, and the revenue figures behind them.

The two scopes are independent. Holding one does not imply the other, and each page asks the official service for its own scope β€” a console that holds neither opens the access request page instead of the console itself.

Sign in on the site the way you sign in anywhere else; Admin appears in the account menu when the person behind the session is an operator.

Asking for access

There is no self-service grant and there is no mailer. The console shows a request page with the two scopes on it; the request lands in the official service's queue, where another operator answers it. An approval grants exactly the scopes that were asked for β€” no more.

The overview

The landing page of the console is a set of figures, each behind the scope that produces it:

FigureBehind
Products on salecatalogue:write
Prices on salecatalogue:write
Customerspurchases:read
Subscriptionspurchases:read
Revenue, one figure per currencypurchases:read

Changing the catalogue

Each product opens into its own form: name, delivery, edition, seats, benches, labs, sort order, the feature checkboxes, and whether it is on sale. Each price opens into its own: name, billing scheme, term, amount, currency, and whether it is on sale.

Two more forms sit at the bottom: one adds a product, the other adds a price to an existing product. A new product needs a code β€” lowercase letters, digits and underscores β€” and that code is its identity from then on.

Turning a product or a price off sale takes it out of the checkout while keeping it in the record. The feature checkboxes are drawn from the catalogue's own vocabulary, so the console never offers a capability name the platform does not know.

The change is the row

A save writes the row in the official service's database, and the site reads those same rows β€” so pricing and checkout follow the change straight away, without a deployment. Each change is recorded against the operator who made it.

Reading the purchase records

One row is one subscription: the customer that bought, the buyer, the product, the price that was bought, the quantity, the amount and the status of the subscription.

ColumnWhat it holds
DateWhen the subscription was created.
CustomerThe organisation that bought.
BuyerThe person the entitlement was granted to, by name and email.
ProductThe product, with its code.
PriceThe price that was bought, with its term.
QuantityHow many seats, benches or copies were bought.
AmountWhat was paid, in the price's currency.
StatusWhere the subscription stands.

The totals under the table add up the records per currency β€” the revenue figure is the sum of the rows, not a separately kept number.

Entitlements are snapshots

Changing a product changes what the next purchase grants. It does not reach back into the entitlements already handed out: those keep the specification they were granted with.