Repository navigation
Conversation
The templates table holds the name, title and description of a template. The template_modules table holds its modules in presentation order, each with a module type, an optional slide title and its options as JSON. Deleting a template deletes its modules, and each position is used once per template. The seeder adds two example templates for the tests and for development.
GET /api/templates lists the templates sorted by title, without their modules. GET /api/templates/:templateId returns one template with its modules in presentation order, or a 404 naming the id. The endpoints follow the layers of the run types endpoints.
openapi.yaml is written by hand, and API.md and index.html are generated from it with npm run docs:api.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## alice-insights/dev #2322 +/- ##
======================================================
+ Coverage 46.00% 46.21% +0.20%
======================================================
Files 1070 1091 +21
Lines 17610 17922 +312
Branches 3261 3307 +46
======================================================
+ Hits 8102 8283 +181
- Misses 9508 9639 +131 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…zone and keep the period when the week is emptied
…selection changes
…entation was made
kaymeer
force-pushed
the
alice-insights/connect-presentations
branch
from
November 25, 2026 23:09
8fecbec to
3e9b487
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I DON'T have JIRA ticket
What this PR does
These changes come from running the three parts as one path: the presentation templates (#2308), the Presentations page (#2316) and the generation service. Both pull requests follow the agreements of their own task, so nothing here is a mistake in them.
presentation_templatesandpresentation_template_modules, and the endpoints areGET /api/presentationTemplatesandGET /api/presentationTemplates/{presentationTemplateId}. Template on its own is a general word in Bookkeeping. The code, the tests and the API documentation follow the same name, and the page reads the new endpoint.optionscolumn. A module of a template has a position, a type and a title. No module of the generation service has a setting.getStartOfWeekreads the weekday of its UTC date in UTC. Read on the local clock, a browser west of UTC gets a week that starts a day late. An emptied week field leaves the period as it is. Both hold for every page with the period picker.Where to look
lib/database/models/presentationTemplate.jsandlib/server/routers/presentationTemplates.router.js.lib/public/views/Presentations/genevaTime.jsandPresentationsPageModel.js.lib/public/utilities/dateUtils.mjsandlib/public/components/Filters/common/filters/timeRangeFilter.js.lib/server/services/presentation/generatePresentation.js.lib/public/views/Presentations/PresentationsPage.js.test/api/presentationTemplates.test.js,test/api/presentations.test.js,test/lib/public/utilities/dateUtils.test.jsandtest/public/presentations/overview.test.js, which runs with a browser in New York and, for the day the clocks go forward, in Auckland.The commits
Each commit passes the linter and the test suites it touches.
Rename templates to presentation templates and drop the unused module options: points 1 and 2.Start the week of the period picker on the same Monday in every time zone and keep the period when the week is emptied: point 4.Read the period as Geneva time and drop a finished download when the selection changes: points 3 and 5.Show the error sentence of the generation service and log why no presentation was made: points 6 and 7.Explain on the Presentations page which fills and runs a presentation covers: point 8.How to try it
npm run sequelize -- db:seed:all), and start the generation service.Notable changes for users:
Notable changes for developers:
TemplateisPresentationTemplatein models, adapters, repository, service, DTOs and endpoints. The fieldtemplateIdofPOST /api/presentationskeeps its name.lib/public/views/Presentations/genevaTime.js.getStartOfWeekgives the same Monday in every time zone, and the week field of the period picker ignores an empty value.Changes made to the database:
presentation_templatesandpresentation_template_modules, without theoptionscolumn. A local database that ran the migration of Add storage and read endpoints for presentation templates #2308 needs a fresh start.