Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mayagbarnes
Copy link
Collaborator

@mayagbarnes mayagbarnes commented Mar 8, 2025

Describe your changes

  • Ensure currentPageScriptHash set in App & populated in LibContext for SPA - currentPageScriptHash blank for SPAs - so st.page_link renders every page as if its the current page:
    Screenshot 2025-03-07 at 5 06 49 p m

  • Fix styling for st.page_link when help & use_container_width = "true" - #10640 addresses part of the issue with width for st.page_link but also need to handle width in StyledNavLinkContainer
    Screenshot 2025-03-07 at 5 03 35 p m

  • Add dedicated e2e/snapshot testing for st.page_link feature (currently only in MPA context) - currently have page link buttons in MPA tests, but to prevent issues in the future, adding SPA tests for st.page_link

  • Add more JS unit tests for st.page_link params like icon, help, use_container_width, etc.

GitHub Issue Link (if applicable)

Closes #10689

Testing Plan

  • JS Unit Tests: ✅ Added
  • E2E Tests: ✅ Added
  • Manual Testing: ✅

@mayagbarnes mayagbarnes added security-assessment-completed Security assessment has been completed for PR change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels Mar 8, 2025
@mayagbarnes mayagbarnes changed the title [WIP] [Fix]: st.page_link - current vs. non-current page visuals & width [Fix]: st.page_link - current vs. non-current page visuals & width Mar 10, 2025
@mayagbarnes mayagbarnes marked this pull request as ready for review March 10, 2025 18:44
@mayagbarnes mayagbarnes merged commit 23a6ed9 into develop Mar 11, 2025
33 checks passed
@mayagbarnes mayagbarnes deleted the page-link-fix branch March 11, 2025 17:24
sfc-gh-mbarnes pushed a commit that referenced this pull request Mar 11, 2025
…10690)

Ensure `currentPageScriptHash` set in `App` & populated in `LibContext` for SPA - `currentPageScriptHash` blank for SPAs - so `st.page_link` renders every page as if its the current page:

Fix styling for `st.page_link` when `help` & `use_container_width = "true"` - [#10640](#10658) addresses part of the issue with width for `st.page_link` but also need to handle width in `StyledNavLinkContainer`

Add dedicated e2e/snapshot testing for `st.page_link` feature (currently only in MPA context) - currently have page link buttons in MPA tests, but to prevent issues in the future, adding SPA tests for `st.page_link`

Add more JS unit tests for `st.page_link` params like `icon`, `help`, `use_container_width`, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

st.page_link: Visual breakage

4 participants