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.
What does this PR do?
🤖 Generated by Copilot at ac792d4
This pull request simplifies the web app components by removing unused code and state, and improves the impressions tracking feature by replacing the WebSocket logic with a service worker. It also adds a new impressions worker package that handles the ingestion of impressions data into the Clickhouse database, and updates the documentation and configuration accordingly.
Related issues
Fixes # (issue)
Type of change
Explanation of the changes
🤖 Generated by Copilot at ac792d4
postsEndpoint
toimpressionsEndpoint
and update its value inimpressions.js
(link)useLeafwatchStore
andsetViewedPublication
from various components and usenavigator.serviceWorker.controller.postMessage
instead to send visible publications to the service worker (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)useLeafwatchStore.ts
as it is no longer used (link)ports.md
(link, link).env.example
to.dev.vars.example
in impressions worker package (link)ignorePatterns
from.eslintrc.js
in impressions worker package (link).gitignore
in impressions worker package as it is redundant (link)README.md
to impressions worker package with introduction and schema (link)package.json
in impressions worker package with name, scripts, dependencies, and devDependencies (link)app.ts
in impressions worker package as it is unnecessary (link)ingest.ts
to impressions worker package with handler function for/ingest
endpoint (link)buildRequest.ts
to impressions worker package with helper function to build custom request object (link)index.ts
to impressions worker package with main entry point and fetch function (link)ingestImpression.ts
in impressions worker package as it is replaced byingest.ts
(link)Emoji
🚀🧹🛠️