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

Improves #57

Merged
merged 12 commits into from
Sep 24, 2024
Merged

Improves #57

merged 12 commits into from
Sep 24, 2024

Conversation

reisene
Copy link
Owner

@reisene reisene commented Sep 24, 2024

Podsumowanie przez Sourcery

Popraw literówkę w kodzie JavaScript, aby upewnić się, że szerokość logo jest prawidłowo ustawiona, gdy spada poniżej minimalnej skali.

Poprawki błędów:

  • Popraw literówkę w kodzie JavaScript, która powodowała błąd przy ustawianiu szerokości logo.
Original summary in English

Summary by Sourcery

Fix a typo in the JavaScript code to ensure the logo width is correctly set when it falls below the minimum scale.

Bug Fixes:

  • Fix a typo in the JavaScript code that caused an error when setting the logo width.

reisene and others added 9 commits September 24, 2024 21:47
Co-authored-by: komment-ai[bot] <122626893+komment-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Copy link

semanticdiff-com bot commented Sep 24, 2024

Review changes with SemanticDiff.

Analyzed 8 of 9 files.

Overall, the semantic diff is 4% smaller than the GitHub diff.

Filename Status
✔️ src/about.html Analyzed
✔️ src/contact.html Analyzed
✔️ src/index.html 6.25% smaller
✔️ src/services.html Analyzed
✔️ public_html/about.html Analyzed
✔️ public_html/contact.html Analyzed
✔️ public_html/index.html 6.25% smaller
✔️ public_html/services.html Analyzed
public_html/js/script.js Unsupported file format

Copy link

vercel bot commented Sep 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hulaj-dusza-serwis 🛑 Canceled (Inspect) Sep 24, 2024 11:31pm

Copy link
Contributor

sourcery-ai bot commented Sep 24, 2024

Przewodnik Recenzenta od Sourcery

Ten pull request naprawia literówkę w kodzie JavaScript, który obsługuje efekt skalowania logo podczas przewijania. Zmiana jest minimalna, ale ważna dla prawidłowego działania funkcji zmiany rozmiaru logo.

Zmiany na poziomie plików

Zmiana Szczegóły Pliki
Naprawiono literówkę w logice skalowania logo
  • Poprawiono 'logo Width' na 'logoWidth' w warunku, który ustawia minimalny rozmiar logo
public_html/js/script.js

Diagram sekwencji

Nie wygenerowano diagramu sekwencji.


Wskazówki
  • Wywołaj nową recenzję Sourcery, komentując @sourcery-ai review w pull request.
  • Kontynuuj dyskusję z Sourcery, odpowiadając bezpośrednio na komentarze recenzji.
  • Możesz zmienić ustawienia recenzji w dowolnym momencie, uzyskując dostęp do swojego pulpitu:
    • Włącz lub wyłącz podsumowanie pull request generowane przez Sourcery lub przewodnik recenzenta;
    • Zmień język recenzji;
  • Zawsze możesz skontaktować się z nami, jeśli masz jakiekolwiek pytania lub uwagi.
Original review guide in English

Reviewer's Guide by Sourcery

This pull request fixes a typo in the JavaScript code that handles the logo scaling effect during scrolling. The change is minimal but important for the correct functionality of the logo resizing feature.

File-Level Changes

Change Details Files
Fixed a typo in the logo scaling logic
  • Corrected 'logo Width' to 'logoWidth' in the condition that sets the minimum logo size
public_html/js/script.js

Sequence Diagram

No sequence diagram generated.


Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@@ -95,7 +95,7 @@
const maxScroll = 300; // Adjust this value to set when the scaling stops

let logoWidth = maxLogoScale - (scrollTop / maxScroll) * (maxLogoScale - minLogoScale);
if (logoWidth < minLogoScale) {logo Width = minLogoScale};
if (logoWidth < minLogoScale) {logoWidth = minLogoScale};
Copy link
Contributor

Choose a reason for hiding this comment

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

Unnecessary semicolon.

Suggested change
if (logoWidth < minLogoScale) {logoWidth = minLogoScale};
if (logoWidth < minLogoScale) {logoWidth = minLogoScale}

Copy link
Contributor

deepsource-io bot commented Sep 24, 2024

Here's the code health analysis summary for commits c0a7b00..33b9e9a. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 23 occurences introduced
View Check ↗
DeepSource PHP LogoPHP✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link
Contributor

mergify bot commented Sep 24, 2024

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

Do not merge outdated PRs

Make sure PRs are almost up to date before merging

  • #commits-behind <= 10

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hej @reisene - Przejrzałem twoje zmiany - oto kilka uwag:

Ogólne uwagi:

  • Rozważ użycie bardziej opisowego komunikatu zatwierdzenia, który wyjaśnia konkretną zmianę, np. 'Popraw błąd w obliczaniu szerokości logo'.
Oto, co sprawdziłem podczas przeglądu
  • 🟢 Ogólne kwestie: wszystko wygląda dobrze
  • 🟢 Bezpieczeństwo: wszystko wygląda dobrze
  • 🟢 Testowanie: wszystko wygląda dobrze
  • 🟢 Złożoność: wszystko wygląda dobrze
  • 🟢 Dokumentacja: wszystko wygląda dobrze

Sourcery jest darmowe dla open source - jeśli podobają Ci się nasze recenzje, rozważ ich udostępnienie ✨
Pomóż mi być bardziej użytecznym! Proszę kliknij 👍 lub 👎 przy każdym komentarzu, aby powiedzieć mi, czy był pomocny.
Original comment in English

Hey @reisene - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider using a more descriptive commit message that explains the specific change made, e.g., 'Fix typo in logo width calculation'.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

reisene and others added 3 commits September 25, 2024 00:45
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
@reisene reisene merged commit 96c28f7 into main Sep 24, 2024
11 of 19 checks passed
@reisene reisene deleted the improves branch September 24, 2024 22:49
@reisene reisene restored the improves branch September 24, 2024 22:49
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.

2 participants