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

[other] [1/2] ENGMT-1983: improvements to the example page #1103

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

bredmond5
Copy link
Contributor

@bredmond5 bredmond5 commented Dec 14, 2024

Pull Request Template

Description

Updates a lot of the styling / look of the page to make it nicer to use. I also added a convenience method enableTracking to the websdk. Finally cleaned up a lot of stuff in the example.template.html

Screenshot 2024-12-13 at 5 01 42 PM Screenshot 2024-12-13 at 5 01 33 PM

Next, i am thinking about what to do for the request and response stuff at the top. I would love it if we could print out exactly what api request happened but i need to think more about that

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Unit test
  • Integration test

JS Budget Check

Please mention the size in kb before abd after this PR

Files Before After
dist/build.js.
dist/build.min.js

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Mentions:

List the person or team responsible for reviewing proposed changes.

cc @BranchMetrics/saas-sdk-devs for visibility.

Copy link
Contributor

github-actions bot commented Dec 14, 2024

Test Results

  1 files  ±0    1 suites  ±0   53s ⏱️ ±0s
159 tests ±0  152 ✅ ±0  7 💤 ±0  0 ❌ ±0 
162 runs  ±0  155 ✅ ±0  7 💤 ±0  0 ❌ ±0 

Results for commit 59e5202. ± Comparison against base commit 299f29d.

♻️ This comment has been updated with latest results.

@bredmond5 bredmond5 changed the title [other] ENGMT-1983: improvements to the example page [other] [1/2] ENGMT-1983: improvements to the example page Dec 14, 2024
src/6_branch.js Outdated
@@ -1936,6 +1926,17 @@ Branch.prototype['disableTracking'] = wrap(callback_params.CALLBACK_ERR, functio
done();
}, /* allowed before init */ true);

Branch.prototype['enableTracking'] = function() {
Copy link
Contributor Author

@bredmond5 bredmond5 Dec 16, 2024

Choose a reason for hiding this comment

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

let me know if you want me to remove this. I just find branch.disableTracking(false) to be annoying. Additionally, with this i didnt add the wrap or callback because nothing actually async happens

Choose a reason for hiding this comment

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

I think the addition is okay. On other SDKs we are deprecating disableTracking for another set of APIs, not sure if it applies to this sdk but just fyi cc @nsingh-branch

Copy link
Contributor

Choose a reason for hiding this comment

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

The new CPP level methods will deprecate disableTracking, so it may not worth it add it if we plan on deprecating it soon anyways. However, i'm not sure when CPP for Web is planned

@bredmond5 bredmond5 merged commit f72a214 into main Dec 17, 2024
4 checks passed
@bredmond5 bredmond5 deleted the ENGMT-1983 branch December 17, 2024 01:10
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