Skip to content

feat: add back to top button#2

Draft
Rbh2733 wants to merge 2 commits into
mainfrom
codex/fix-chart-rendering-on-sector-deep-dive
Draft

feat: add back to top button#2
Rbh2733 wants to merge 2 commits into
mainfrom
codex/fix-chart-rendering-on-sector-deep-dive

Conversation

@Rbh2733

@Rbh2733 Rbh2733 commented Aug 21, 2025

Copy link
Copy Markdown
Owner

Summary

  • add fixed "Back to Top" button matching site colors
  • show/hide button on scroll and enable smooth scroll to top

Testing

  • npm test (fails: ENOENT package.json)
  • pytest

https://chatgpt.com/codex/tasks/task_e_68a6a0c204e4832cbea5c823fb203027

Summary by Sourcery

Create a new interactive market outlook page featuring multiple themed sections, Chart.js visualizations, smooth scrolling with active navigation state, tabbed content switching, and a fixed Back to Top button.

New Features:

  • Add market-outlook.html as a standalone interactive page with Tailwind CSS styling and Google Fonts
  • Integrate Chart.js to render doughnut, bar, and radar charts for market data visualization
  • Implement smooth scrolling navigation with sticky header and active section highlighting
  • Introduce a tabbed sector deep dive section for dynamic content switching
  • Add a fixed Back to Top button that appears after scrolling and smooth-scrolls to the top

@sourcery-ai

sourcery-ai Bot commented Aug 21, 2025

Copy link
Copy Markdown

Reviewer's Guide

Adds a new interactive Market Outlook HTML page featuring structured sections, Tailwind-based styling, Chart.js visualizations, enhanced navigation behaviors, and a fixed Back to Top button with smooth-scroll functionality.

File-Level Changes

Change Details Files
Add new Market Outlook page layout and styling
  • Create structured header and multiple content sections using Tailwind CSS
  • Define custom font, color, and container styles in a <style> block
  • Enable responsive grids and flex layouts for dashboards and lists
market-outlook.html
Integrate Chart.js for dynamic data visualizations
  • Establish defaultChartOptions and tooltip callbacks for consistency
  • Initialize doughnut, bar, and radar charts with sample data
  • Implement wrapLabel helper to format long labels
market-outlook.html
Implement Back to Top button functionality
  • Add a fixed button element with accessible aria-label and theme colors
  • Use scroll event listeners to toggle the button’s hidden state
  • Invoke window.scrollTo with smooth behavior on click
market-outlook.html
Enhance navigation and tab interactions
  • Apply 'scroll-smooth' class for native in-page smooth scrolling
  • Listen to scroll events to update active-nav classes on links
  • Build tab buttons to switch content in the Sector Deep Dive section
market-outlook.html

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant