Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Terms and Privacy modals #97

Merged
merged 16 commits into from
Aug 21, 2024
Merged

Conversation

gbarkhatov
Copy link
Contributor

  • changes terms
    • terms can open up privacy
  • adds privacy policy

@vitsalis @jeremy-babylonlabs @jrwbabylonlab please carefully check the text content

@jeremy-babylonlabs please additionally check out any stylings inconsistencies

Copy link
Collaborator

@jrwbabylonlab jrwbabylonlab left a comment

Choose a reason for hiding this comment

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

LGTM in general with some minor comment on the text and recommendation that don't need to be addressed in this PR:

  • The privacy modal is a bit unnecessary as it's the same as the terms modal. We can have a generic modal component that would fit both use-cases. (We need to host the documents in different url anyway in the next cap, so it's ok to leave it as it is)
  • Is this really fits into src/app/providers.tsx as a global context? IMO, the global stats from the useContext is a good place for core things such as the btc height and global params where a lot of components will be using. But we don't need to use the terms and privacy in different components, right? Let's move it out in later dev branch when we do the improvement. The terms and private has big text paragraphs, it may have performance impact on the dApp when loaded at the context. Although i tested it seems to be ok today.

Understand right now is not the best time for doing this. I will track this in our github issues

fyi, i bumped the package json version (Ouch! Didn't see another PR with the version bump 😮‍💨 )

@jrwbabylonlab jrwbabylonlab self-requested a review August 21, 2024 04:15
Copy link
Member

@vitsalis vitsalis left a comment

Choose a reason for hiding this comment

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

terms review

src/app/components/Modals/Terms/data/terms.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Terms/data/terms.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Terms/data/terms.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Terms/data/terms.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Terms/data/terms.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Terms/data/terms.tsx Outdated Show resolved Hide resolved
out.json Outdated Show resolved Hide resolved
Copy link
Member

@vitsalis vitsalis left a comment

Choose a reason for hiding this comment

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

privacy notice review

src/app/components/Modals/Privacy/data/privacy.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Privacy/data/privacy.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Privacy/data/privacy.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Privacy/data/privacy.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Privacy/data/privacy.tsx Outdated Show resolved Hide resolved
src/app/components/Modals/Privacy/data/privacy.tsx Outdated Show resolved Hide resolved
Copy link
Member

@vitsalis vitsalis left a comment

Choose a reason for hiding this comment

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

content lgtm

@gbarkhatov gbarkhatov force-pushed the feature/terms-privacy-container branch from 604746f to 23924dd Compare August 21, 2024 09:42
@gbarkhatov gbarkhatov merged commit abf4b54 into main Aug 21, 2024
1 check passed
@gbarkhatov gbarkhatov deleted the feature/terms-privacy-container branch August 21, 2024 09:44
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.

3 participants