Skip to content

Replaced sponsorship package with a smaller one for faster loading time#123

Open
str4wb3rrytea wants to merge 1 commit into
masterfrom
sponsorship-update
Open

Replaced sponsorship package with a smaller one for faster loading time#123
str4wb3rrytea wants to merge 1 commit into
masterfrom
sponsorship-update

Conversation

@str4wb3rrytea

@str4wb3rrytea str4wb3rrytea commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

Description

I replaced the current sponsorship_pacakge2026.pdf file with a smaller one of the same name. This will hopefully reduce the time it takes to load the package. Its url is still the same.

This PR closes Niva's request in Slack.

Developer Testing

Testing done:

  • Ran the application to ensure nothing else was altered and that the package loads successfully with the expected content

Reviewer Testing

Steps to view/test Feature X:

  1. git clone this repo
  2. npm install
  3. npm run start

This change is Reviewable

Summary by CodeRabbit

  • Style
    • Updated code formatting and spacing throughout the application for improved consistency and readability.

Note: This release contains no new features or bug fixes. All functionality remains unchanged.

@str4wb3rrytea str4wb3rrytea requested a review from a team as a code owner February 8, 2026 23:13
@coderabbitai

coderabbitai Bot commented Feb 8, 2026

Copy link
Copy Markdown

Walkthrough

Both files have been reformatted with adjusted spacing and line breaks. No functional or behavioral changes are present; component structure, routing logic, and rendered output remain identical across all modifications.

Changes

Cohort / File(s) Summary
Formatting & Spacing
src/index.jsx, src/routes/Sponsors.jsx
Reformatting with adjusted spacing, line breaks, and import organization. No functional changes to component structure, routing logic, or rendered output.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • Redstone-ray
  • shirleyfyx
  • jennnniferkuang

Poem

🐰 A hop, a skip, some spaces here,
Lines reformatted, crystal clear,
No logic changed, just prettier sight,
Clean indentation feels so right!

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title describes replacing a sponsorship package for faster loading, but the actual changes are only formatting/whitespace in JSX files; the title misrepresents the actual changeset. Update the title to accurately reflect the formatting changes in src/index.jsx and src/routes/Sponsors.jsx, or clarify if the PDF file changes are missing from this diff.
Description check ⚠️ Warning The PR description claims a PDF file replacement but the diff only shows JSX formatting changes; there is a significant mismatch between the stated objective and the actual code changes provided. Clarify whether the PDF file changes are included in this PR or if only the formatting updates to JSX files are being changed; update the description to match the actual changeset.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sponsorship-update

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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In `@src/routes/Sponsors.jsx`:
- Around line 446-448: The inline styles on the Row and Col use invalid values
(display: 'float' and float: 'center'); remove those style entries and rely on
Bootstrap classes or valid CSS instead: delete style={{ display: 'float' }} from
the Row and style={{ float: 'center' }} from the Col in the Sponsors component,
and if you need explicit centering replace them with Bootstrap utilities such as
className="d-flex justify-content-center" or className="mx-auto" (or add a valid
CSS class) while keeping the existing justify-content-center and text-center
classes; apply the same changes to the other occurrence at the similar block
(lines ~464-466).
- Line 1: The import in Sponsors.jsx is wrong: change the invalid named import
"import { React } from 'react'" to either the default import "import React from
'react'" if the component uses the React namespace (e.g., React.useState) or
remove the import entirely if using the modern JSX transform and only using
hooks (instead import specific APIs like useState), so update the top-level
import for the Sponsors component accordingly.

Comment thread src/routes/Sponsors.jsx
};

export default Sponsors;
import { React } from 'react';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

React named export vs default export 'import { React }' vs 'import React'

💡 Result:

What the two syntaxes mean (JS modules)

  • import React from 'react' = default import (imports the module’s default export). Default exports are imported without braces. [1][2]
  • import { React } from 'react' = named import (imports an export literally named React). Named exports are imported with braces and must match the exported name. [2]

So import { React } from 'react' typically fails because React’s public API isn’t exposed as a named export called React in normal usage—React APIs are exposed as named exports like useState, useEffect, createElement, etc. (and historically also a default export for React). [3]

What you should do in React apps today

  • With the modern JSX transform, you usually do not need React in scope just to write JSX anymore (it’s handled by the compiler). React 19 even says the new JSX transform is required. [4]
    So you can often write:
    import { useState } from 'react';
  • Import React APIs as named imports when you use them:
    import { useState, useEffect, createElement } from 'react';
    (createElement is shown in the React docs as a named import.) [5]

If you want the “React.*” style

Use a namespace import (different from { React }):

import * as React from 'react';

React.useState(...);

This is the “import everything under one name” form. [2]


Sources: MDN on import/export syntax [2][1], React docs on default vs named exports [3], React 19 upgrade guide (new JSX transform required / no React import needed for JSX) [4], React createElement docs (named import example) [5].

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
[3] https://react.dev/learn/importing-and-exporting-components
[4] https://react.dev/blog/2024/04/25/react-19-upgrade-guide
[5] https://react.dev/reference/react/createElement


Fix invalid React import.

react doesn't provide a named React export, so import { React } from 'react' will be undefined and break JSX usage. Use the default import instead:

-import { React } from 'react';
+import React from 'react';

(Alternatively, with the modern JSX transform in React 17+, you may not need a React import at all for JSX—only import specific APIs like useState as needed.)

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import { React } from 'react';
import React from 'react';
🤖 Prompt for AI Agents
In `@src/routes/Sponsors.jsx` at line 1, The import in Sponsors.jsx is wrong:
change the invalid named import "import { React } from 'react'" to either the
default import "import React from 'react'" if the component uses the React
namespace (e.g., React.useState) or remove the import entirely if using the
modern JSX transform and only using hooks (instead import specific APIs like
useState), so update the top-level import for the Sponsors component
accordingly.

Comment thread src/routes/Sponsors.jsx
Comment on lines +446 to +448
<Row className="my-2 mx-2 gx-4 justify-content-center text-center" style={{ display: 'float' }}>
<Col md="auto" style={{ float: 'center' }}>
<SponsorLinkWithDesc logoTier="silver" image={mef} link="https://uwaterloo.ca/math-endowment-fund/" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove invalid inline CSS (display: 'float', float: 'center').

Those values are invalid and are ignored by the browser, which can lead to layout inconsistencies.

🧹 Suggested fix
-<Row className="my-2 mx-2 gx-4 justify-content-center text-center" style={{ display: 'float' }}>
-  <Col md="auto" style={{ float: 'center' }}>
+<Row className="my-2 mx-2 gx-4 justify-content-center text-center">
+  <Col md="auto">
     <SponsorLinkWithDesc logoTier="silver" image={mef} link="https://uwaterloo.ca/math-endowment-fund/" />
   </Col>
-  <Col md="auto" style={{ float: 'center' }}>
+  <Col md="auto">
     <SponsorLinkWithDesc logoTier="silver" image={swagelok} link="http://www.swagelok.com/en" />
   </Col>
-<Row className="my-2 mx-2 gx-4 justify-content-center text-center" style={{ display: 'float' }}>
-  <Col md="auto" style={{ float: 'center' }}>
+<Row className="my-2 mx-2 gx-4 justify-content-center text-center">
+  <Col md="auto">
     <SponsorLinkWithDesc logoTier="silver" image={pelican} link="https://www.pelican.com/ca/en/" />
   </Col>

Also applies to: 464-466

🤖 Prompt for AI Agents
In `@src/routes/Sponsors.jsx` around lines 446 - 448, The inline styles on the Row
and Col use invalid values (display: 'float' and float: 'center'); remove those
style entries and rely on Bootstrap classes or valid CSS instead: delete
style={{ display: 'float' }} from the Row and style={{ float: 'center' }} from
the Col in the Sponsors component, and if you need explicit centering replace
them with Bootstrap utilities such as className="d-flex justify-content-center"
or className="mx-auto" (or add a valid CSS class) while keeping the existing
justify-content-center and text-center classes; apply the same changes to the
other occurrence at the similar block (lines ~464-466).

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