✨ Add Data safety column #49

Open
devhelper47607 wants to merge 1 commit from devhelper47607/v2-web:feat/41-data-safety-column into master
First-time contributor

Addresses #41, in part.
Companion change: playsearch.kaki87.net/v2-api#16 makes the Data safety information available over the SSE API stream.

Scope note

Issue #41 suggests two things:

  1. a trackers-free checkbox powered by the εxodus trackers count;
  2. a Data safety column summarizing the Google Play Data safety section at the level of "Data collected", "Data shared", "Data is encrypted in transit" and "You can request that data be deleted".

The trackers-free checkbox is intentionally out of scope here: as noted in the issue thread, εxodus URLs use their own numeric IDs rather than Google Play app IDs, so the two data sources do not line up without new scraping work, and the project policy remains to use Google Play as the only data source. This PR delivers the Data safety column the maintainer confirmed ("I will add a column with a summary of that information").

Problem

When comparing applications, the table had no information about data collection or sharing practices. The Data collected / Data shared / Encrypted in transit / Request deletion criteria asked for in #41 were invisible while evaluating apps.

Root cause

  • The API SSE stream never fetched the Data safety section from Google Play.
  • AppMain.vue had no column, no tooltip summary and no per-item helpers for dataSafety.

Solution

  • New "Data safety" column between IAP and Android version, with per-row values: Collected, Shared only, Encrypted or - while information is absent/loading.
  • A per-cell tooltip summarizes the four requested booleans: data collected (number of types), data shared (number of types), encryption in transit and ability to request data deletion.
  • Header tooltip documents the column source.
  • All existing columns, filters, sorting, styles and the permissions view remain unchanged.

Data contract

The companion API change pushes SSE messages { appId, dataSafety } where dataSafety matches the output of googlePlay.datasafety() (collectedData, sharedData, securityPractices). Older API versions simply do not send this field, in which case the UI keeps showing -, so the change degrades safely.

Files changed

  • src/components/AppMain.vue: getDataSafetySummary / getDataSafetyTooltip helpers, header cell and body cell.
  • CHANGELOG.md: Unreleased entry.

Verification

  • yarn install --frozen-lockfile: success; only the pre-existing peer dependency warnings (vue-router / @vitejs/plugin-vue).
  • yarn build: success; Vite production build transforms the updated AppMain.vue.
  • Local end-to-end: ran the companion API server locally on :8799 and this application with Vite dev server on :5173 (config.js and local servers are not committed). After submitting signal, the results table rendered with the new Data safety column; sampled values were Collected rows, Encrypted rows and -, e.g. row tooltip: Data collected: Yes (1 types); Data shared: No; Encrypted in transit: Yes; Request data deletion: Yes; existing sorting and filters still worked; no browser page errors were observed.

Impact

  • Additive UI column; populated values require the companion API change, but the UI degrades safely without it.
  • No dependency changes, no changes to filtering logic, other views or εxodus/trackers support.
Addresses #41, in part. Companion change: https://git.kaki87.net/playsearch.kaki87.net/v2-api/pulls/16 makes the Data safety information available over the SSE API stream. ## Scope note Issue #41 suggests two things: 1. a trackers-free checkbox powered by the εxodus trackers count; 2. a Data safety column summarizing the Google Play Data safety section at the level of "Data collected", "Data shared", "Data is encrypted in transit" and "You can request that data be deleted". The trackers-free checkbox is intentionally out of scope here: as noted in the issue thread, εxodus URLs use their own numeric IDs rather than Google Play app IDs, so the two data sources do not line up without new scraping work, and the project policy remains to use Google Play as the only data source. This PR delivers the Data safety column the maintainer confirmed ("I will add a column with a summary of that information"). ## Problem When comparing applications, the table had no information about data collection or sharing practices. The Data collected / Data shared / Encrypted in transit / Request deletion criteria asked for in #41 were invisible while evaluating apps. ## Root cause - The API SSE stream never fetched the Data safety section from Google Play. - `AppMain.vue` had no column, no tooltip summary and no per-item helpers for `dataSafety`. ## Solution - New "Data safety" column between `IAP` and `Android version`, with per-row values: `Collected`, `Shared only`, `Encrypted` or `-` while information is absent/loading. - A per-cell tooltip summarizes the four requested booleans: data collected (number of types), data shared (number of types), encryption in transit and ability to request data deletion. - Header tooltip documents the column source. - All existing columns, filters, sorting, styles and the permissions view remain unchanged. ## Data contract The companion API change pushes SSE messages `{ appId, dataSafety }` where `dataSafety` matches the output of `googlePlay.datasafety()` (`collectedData`, `sharedData`, `securityPractices`). Older API versions simply do not send this field, in which case the UI keeps showing `-`, so the change degrades safely. ## Files changed - `src/components/AppMain.vue`: `getDataSafetySummary` / `getDataSafetyTooltip` helpers, header cell and body cell. - `CHANGELOG.md`: `Unreleased` entry. ## Verification - `yarn install --frozen-lockfile`: success; only the pre-existing peer dependency warnings (`vue-router` / `@vitejs/plugin-vue`). - `yarn build`: success; Vite production build transforms the updated `AppMain.vue`. - Local end-to-end: ran the companion API server locally on `:8799` and this application with Vite dev server on `:5173` (`config.js` and local servers are not committed). After submitting `signal`, the results table rendered with the new Data safety column; sampled values were `Collected` rows, `Encrypted` rows and `-`, e.g. row tooltip: `Data collected: Yes (1 types); Data shared: No; Encrypted in transit: Yes; Request data deletion: Yes`; existing sorting and filters still worked; no browser page errors were observed. ## Impact - Additive UI column; populated values require the companion API change, but the UI degrades safely without it. - No dependency changes, no changes to filtering logic, other views or εxodus/trackers support.
devhelper47607 added 1 commit 2026-12-01 21:45:53 +01:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'feat/41-data-safety-column:devhelper47607-feat/41-data-safety-column'
git checkout 'devhelper47607-feat/41-data-safety-column'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout 'master'
git merge --no-ff 'devhelper47607-feat/41-data-safety-column'
git checkout 'devhelper47607-feat/41-data-safety-column'
git rebase 'master'
git checkout 'master'
git merge --ff-only 'devhelper47607-feat/41-data-safety-column'
git checkout 'devhelper47607-feat/41-data-safety-column'
git rebase 'master'
git checkout 'master'
git merge --no-ff 'devhelper47607-feat/41-data-safety-column'
git checkout 'master'
git merge --squash 'devhelper47607-feat/41-data-safety-column'
git checkout 'master'
git merge --ff-only 'devhelper47607-feat/41-data-safety-column'
git checkout 'master'
git merge 'devhelper47607-feat/41-data-safety-column'
git push origin 'master'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: playsearch.kaki87.net/v2-web#49
No description provided.