Skip to content

implement user experience dialog and privacy policy#10

Merged
Carifio24 merged 7 commits into
cosmicds:mainfrom
johnarban:add-user-experience-and-privacy-policy
Mar 3, 2026
Merged

implement user experience dialog and privacy policy#10
Carifio24 merged 7 commits into
cosmicds:mainfrom
johnarban:add-user-experience-and-privacy-policy

Conversation

@johnarban

@johnarban johnarban commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

This PR implements the User Experience and privacy policy dialogs

@johnarban johnarban requested a review from Carifio24 March 2, 2026 21:58

@Carifio24 Carifio24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good but there are a couple of issues that I noticed (and one thing that I wasn't sure about).

Comment thread src/SolarEclipse2026.vue
"Does this spark your curiosity?" :
"Are you learning something new?",
questionTimeout: null as ReturnType<typeof setTimeout> | null,
canTrackStory: false,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what the purpose of this value is - I'm not seeing what it adds in addition to responseOptOut. But LMK if I'm missing something!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

canTrackStory just makes sure sendUpdateData doesn't run particularly in the case where a user failed to be created. i figured this was better than using responseOptOut to track this, since that is a user setting.

Comment thread src/SolarEclipse2026.vue Outdated
Comment thread src/SolarEclipse2026.vue
Comment thread src/SolarEclipse2026.vue
const exists = response.status === 200 && content.response?.user_uuid != undefined;
if (exists) {
let userExists = false;
try {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we throw here? Not questioning it, it's just not obvious to me what the exception would be.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using a try/catch makes sure we can proceed to the ratings response block even if the user is not created, otherwise the whole chain stops

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I guess this should only happen if the server or internet is down (or if we get something like a CORS error), but can't hurt to have it in there.

@Carifio24 Carifio24 merged commit d7d59e5 into cosmicds:main Mar 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants