Skip to content

refactor: move web projects to web/ directory and adjust waveform s…#46

Merged
tejpratap46 merged 1 commit into
mainfrom
chore/move-web-projects
May 13, 2026
Merged

refactor: move web projects to web/ directory and adjust waveform s…#46
tejpratap46 merged 1 commit into
mainfrom
chore/move-web-projects

Conversation

@tejpratap46

@tejpratap46 tejpratap46 commented May 13, 2026

Copy link
Copy Markdown
Owner

…caling

  • Relocated web-homepage and web-sdui packages into a new web/ subdirectory.
  • Updated AudioWaveformView to increase the amplitude visualization scale.

Summary by CodeRabbit

  • Style
    • Enhanced audio waveform visualization with taller rendering and improved amplitude scaling for better visual clarity and readability.

Review Change Stack

…caling

* Relocated `web-homepage` and `web-sdui` packages into a new `web/` subdirectory.
* Updated `AudioWaveformView` to increase the amplitude visualization scale.
@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
sdui f63ac2e May 13 2026, 03:22 PM

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
lyrics f63ac2e May 13 2026, 03:22 PM

@coderabbitai

coderabbitai Bot commented May 13, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5bc86f50-c047-4669-aa32-dad632716dd6

📥 Commits

Reviewing files that changed from the base of the PR and between c52f8b4 and f63ac2e.

⛔ Files ignored due to path filters (12)
  • web/web-homepage/package-lock.json is excluded by !**/package-lock.json
  • web/web-homepage/public/favicon.svg is excluded by !**/*.svg
  • web/web-homepage/public/icons.svg is excluded by !**/*.svg
  • web/web-homepage/src/assets/hero.png is excluded by !**/*.png
  • web/web-homepage/src/assets/react.svg is excluded by !**/*.svg
  • web/web-homepage/src/assets/vite.svg is excluded by !**/*.svg
  • web/web-sdui/package-lock.json is excluded by !**/package-lock.json
  • web/web-sdui/public/favicon.svg is excluded by !**/*.svg
  • web/web-sdui/public/icons.svg is excluded by !**/*.svg
  • web/web-sdui/src/assets/hero.png is excluded by !**/*.png
  • web/web-sdui/src/assets/react.svg is excluded by !**/*.svg
  • web/web-sdui/src/assets/vite.svg is excluded by !**/*.svg
📒 Files selected for processing (41)
  • web/web-homepage/.gitignore
  • web/web-homepage/README.md
  • web/web-homepage/eslint.config.js
  • web/web-homepage/index.html
  • web/web-homepage/package.json
  • web/web-homepage/postcss.config.js
  • web/web-homepage/src/App.css
  • web/web-homepage/src/App.tsx
  • web/web-homepage/src/index.css
  • web/web-homepage/src/main.tsx
  • web/web-homepage/tsconfig.app.json
  • web/web-homepage/tsconfig.json
  • web/web-homepage/tsconfig.node.json
  • web/web-homepage/vite.config.ts
  • web/web-homepage/wrangler.jsonc
  • web/web-sdui/.gitignore
  • web/web-sdui/README.md
  • web/web-sdui/eslint.config.js
  • web/web-sdui/index.html
  • web/web-sdui/package.json
  • web/web-sdui/src/App.tsx
  • web/web-sdui/src/components/JsonFinder.tsx
  • web/web-sdui/src/components/MotionCanvas.tsx
  • web/web-sdui/src/effects/useApplyEffects.ts
  • web/web-sdui/src/index.css
  • web/web-sdui/src/infra/interpolation.ts
  • web/web-sdui/src/infra/types.ts
  • web/web-sdui/src/main.tsx
  • web/web-sdui/src/views/AudioWaveformView.tsx
  • web/web-sdui/src/views/GradientView.tsx
  • web/web-sdui/src/views/MultiLyricsContainer.tsx
  • web/web-sdui/src/views/PopUpTextView.tsx
  • web/web-sdui/src/views/TransparentTextView.tsx
  • web/web-sdui/src/views/VideoFrameView.tsx
  • web/web-sdui/src/views/ViewRegistry.tsx
  • web/web-sdui/src/views/WordWriterTextView.tsx
  • web/web-sdui/tsconfig.app.json
  • web/web-sdui/tsconfig.json
  • web/web-sdui/tsconfig.node.json
  • web/web-sdui/vite.config.ts
  • web/web-sdui/wrangler.jsonc

📝 Walkthrough

Walkthrough

AudioWaveformView's waveform rendering height is increased: the container uses full available height (100% instead of 50%), and individual amplitude bars scale vertically at 2× the previous rate (200% instead of 100%). This is a visual-only adjustment with no logic or prop changes.

Changes

Waveform Vertical Scaling

Layer / File(s) Summary
Waveform container and bar height scaling
web/web-sdui/src/views/AudioWaveformView.tsx
Waveform container height is changed from 50% to 100% of available space, and individual amplitude bar heights are doubled in scale from amp * 100% to amp * 200%, increasing the vertical extent of the rendered waveform visualization.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🎵 The waveform stretches tall and grand,
From fifty to a full expanse,
Each amplitude bar takes a stand,
With doubled height—a vibrant dance!
The audio now sings so bright,
In glorious vertical might! 🐰

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/move-web-projects

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tejpratap46 tejpratap46 merged commit 4244d0c into main May 13, 2026
5 of 8 checks passed

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR successfully refactors the project structure by organizing web projects into a dedicated web/ directory and adjusts the audio waveform visualization scaling as intended. The code changes in AudioWaveformView.tsx correctly implement the amplitude scaling improvements mentioned in the PR description. No blocking issues identified.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.


⚠️ This PR contains more than 30 files. Amazon Q is better at reviewing smaller PRs, and may miss issues in larger changesets.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the AudioWaveformView component to increase the container height to 100% and the amplitude multiplier to 200. The reviewer identified a potential issue where this multiplier will cause visual clipping for amplitudes greater than 0.5, suggesting a return to a multiplier of 100 to maintain the full dynamic range of the audio.

style={{
width: '4px',
height: `${amp * 100}%`,
height: `${amp * 200}%`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

With the container's height now at 100%, multiplying the amplitude by 200 will cause any bar with an amplitude greater than 0.5 to be clipped at the top of the view. This means you lose the visual distinction for the entire upper half of the amplitude range (from 0.5 to 1.0).

To utilize the full height of the view while still showing the full dynamic range of the audio, a multiplier of 100 would be more appropriate.

Suggested change
height: `${amp * 200}%`,
height: `${amp * 100}%`,

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.

1 participant