From f72a214fa8a32d8f6ff3e0733b0251587ee80ec7 Mon Sep 17 00:00:00 2001 From: Brice Redmond Date: Mon, 16 Dec 2024 17:10:38 -0800 Subject: [PATCH] [other] [1/2] ENGMT-1983: improvements to the example page (#1103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 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. --- examples/example.template.html | 319 +++++++++++++++++---------------- 1 file changed, 160 insertions(+), 159 deletions(-) diff --git a/examples/example.template.html b/examples/example.template.html index 1cf93985..12bc1d5e 100644 --- a/examples/example.template.html +++ b/examples/example.template.html @@ -11,16 +11,11 @@ .btn { margin-top: 5px; } + body { font-family: Arial, sans-serif; background-color: #f4f4f9; color: #333; - margin: 0; - padding: 0; - display: flex; - justify-content: center; - align-items: center; - height: 100vh; } label { @@ -191,36 +186,39 @@

Response

Methods

+ https://help.branch.io/developers-hub/docs/web-full-reference
-

Session and Identity

+

Session

- - - + + +
+

Identity

- +
-
-
-

Sharing and Tracking

+

Events

- - - - - + +
-
-
-

QR Code

+

Sharing

+
+ + + +
+

Tracking

- + +
-

Api Settings

+

Api Settings

+
@@ -265,9 +263,22 @@

Api Settings

});