Skip to content

chore: update copyright year to 2026#174

Merged
s0up4200 merged 1 commit into
developfrom
chore/update-copyright-year-2026
Jan 24, 2026
Merged

chore: update copyright year to 2026#174
s0up4200 merged 1 commit into
developfrom
chore/update-copyright-year-2026

Conversation

@s0up4200

@s0up4200 s0up4200 commented Jan 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Updated all license headers from 2024-2025 to 2024-2026 across 197 source files
  • Updated license.sh to use 2024-2026 in header templates and handle 2024-2025 -> 2024-2026 transitions in the year update function
  • 4 new files received headers for the first time

Test plan

  • Ran ./license.sh false successfully
  • Verify no unintended file changes with git diff

Summary by CodeRabbit

  • Chores
    • Updated copyright year notices across the codebase and added license headers to select files. No functional or behavioral changes.

✏️ Tip: You can customize this high-level summary in your review settings.

Update all license headers from 2024-2025 to 2024-2026 and update
license.sh to handle the new year range.
@coderabbitai

coderabbitai Bot commented Jan 24, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Bulk copyright year update across the entire codebase from 2024-2025 to 2024-2026, with minimal license header additions in a few utility and configuration files. No functional code changes.

Changes

Cohort / File(s) Summary
Command-line interface
cmd/netronome/*
Copyright year bumped 2024-2025 → 2024-2026
Agent internals
internal/agent/*
Copyright year updated; one file (smart_stub.go) adds SPDX header
Authentication & authorization
internal/auth/*
Copyright year modified 2024-2025 → 2024-2026
Broadcasting & configuration
internal/broadcaster/broadcaster.go, internal/config/*
Copyright year bumped to 2026
Database layer
internal/database/*
Copyright year uniformly updated across core, migrations, monitors, notifications, packet loss, scheduling, speedtest, and user modules
API handlers
internal/handlers/*
Copyright year changed 2024-2025 → 2024-2026
Logging, monitoring, notifications
internal/logger/logger.go, internal/monitor/*, internal/notifications/notifications.go
Copyright year updated to 2026
Scheduling & speedtest utilities
internal/scheduler/*, internal/speedtest/*
Copyright year bumped; scheduler_test.go gains license header
Server & auth logic
internal/server/*
Copyright year modified 2024-2025 → 2024-2026 across auth, handlers, middleware, and core server files
Tailscale, types, utilities
internal/tailscale/tailscale.go, internal/types/types.go, internal/utils/*, internal/version/version.go
Copyright year updated; tailscale.go and sheet.tsx add SPDX license headers
Migration tool
pkg/migrator/migrator.go
Copyright year bumped to 2026
Web build & app shell
web/build.go, web/src/App.tsx
Copyright year changed 2024-2025 → 2024-2026
Web API layer
web/src/api/*
Copyright year uniformly updated across auth, monitor, notifications, packetloss, speedtest, and tailscale modules
Web components (core)
web/src/components/DarkModeToggle.tsx, web/src/components/DonateModal.tsx, web/src/components/ErrorBoundary.tsx, web/src/components/Footer.tsx, web/src/components/Main.tsx, web/src/components/PWAUpdatePrompt.tsx, web/src/components/SettingsMenu.tsx
Copyright year bumped to 2026
Web auth components
web/src/components/auth/Login.tsx, web/src/components/auth/Register.tsx
Copyright year updated 2024-2025 → 2024-2026
Web common components
web/src/components/common/*
Copyright year changed to 2026 across dialog, metric card, tab navigation, and toast components
Web UI primitives
web/src/components/ui/*
Copyright year uniformly updated; sheet.tsx adds SPDX header block (+5 lines)
Web icon components
web/src/components/icons/TailscaleLogo.tsx
Copyright year bumped to 2026
Web monitor components
web/src/components/monitor/*
Copyright year updated across featured widget, agent details, form, list, charts, stats, offline banner, and system info tabs
Web speedtest dashboard
web/src/components/speedtest/DashboardTab.tsx, web/src/components/speedtest/IperfServerModal.tsx, web/src/components/speedtest/ScheduleManager.tsx, web/src/components/speedtest/ServerList.tsx, web/src/components/speedtest/ShareModal.tsx, web/src/components/speedtest/SpeedTestTab.tsx, web/src/components/speedtest/TestProgress.tsx, web/src/components/speedtest/TracerouteTab.tsx, web/src/components/speedtest/columns.tsx
Copyright year changed 2024-2025 → 2024-2026
Web packet loss components
web/src/components/speedtest/packetloss/*
Copyright year updated across monitors, details, forms, lists, and utility/constant/type files
Web traceroute components
web/src/components/speedtest/traceroute/*
Copyright year bumped across results, progress, server selection, table, and utility files
Web settings components
web/src/components/settings/*
Copyright year modified in notification and time format settings, plus nested notification form/card/details components
Web styling & utilities
web/src/constants/*, web/src/context/auth.tsx, web/src/hooks/*, web/src/index.css, web/src/lib/utils.ts, web/src/main.tsx, web/src/routes.tsx, web/src/styles/tab-navigation.css, web/src/types/*, web/src/utils/*
Copyright year updated; tab-navigation.css adds 5-line SPDX header block

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Hops through the year with copyright cheer,
From twenty-twenty-five to twenty-twenty-six so near,
A thousand files now wearing new attire,
No logic changed, just headers to require,
The rabbit's work is done without a care—
Just metadata floating through the air! 📅✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: update copyright year to 2026' clearly and accurately describes the main change: a routine update of copyright years across the codebase.
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

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: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
web/src/components/speedtest/traceroute/hooks/useServerData.ts (1)

7-7: Update @tanstack/react-query to the latest version (5.90.20).

The project uses @tanstack/react-query 5.90.16, but version 5.90.20 (released January 23, 2026) is the current stable release. No security vulnerabilities are known for 5.90.16, but updating to the latest patch version is recommended to receive the latest bug fixes and improvements.

🧹 Nitpick comments (2)
web/src/components/speedtest/traceroute/hooks/useServerData.ts (2)

27-36: Consider removing type assertions and handling loading/error states.

The as { data: Server[] } type assertions on lines 30 and 36 suggest a typing workaround. React Query v5 should provide proper typing without manual assertions. Additionally, the code doesn't handle loading or error states from these queries, which could affect UX if server fetching fails or is slow.

♻️ Proposed refactor to leverage React Query's built-in state handling
  // Fetch speedtest servers
- const { data: speedtestServers = [] } = useQuery({
+ const { data: speedtestServers = [], isLoading: isLoadingSpeedtest } = useQuery({
    queryKey: ["servers", "speedtest"],
    queryFn: () => getServers("speedtest"),
- }) as { data: Server[] };
+ });

  // Fetch librespeed servers
- const { data: librespeedServers = [] } = useQuery({
+ const { data: librespeedServers = [], isLoading: isLoadingLibrespeed } = useQuery({
    queryKey: ["servers", "librespeed"],
    queryFn: () => getServers("librespeed"),
- }) as { data: Server[] };
+ });

Then expose loading state in the return object for upstream components to handle.


39-53: Unify data fetching by migrating iperf to React Query.

The iperf server fetching uses useEffect + fetch while speedtest and librespeed use React Query. This inconsistency makes the codebase harder to maintain and prevents iperf from benefiting from React Query's built-in caching, automatic retries, and deduplication.

♻️ Proposed migration to React Query for consistency
- // Fetch iperf servers
- useEffect(() => {
-   const fetchIperfServers = async () => {
-     try {
-       const response = await fetch(getApiUrl("/iperf/servers"));
-       if (!response.ok) {
-         throw new Error(`HTTP error! status: ${response.status}`);
-       }
-       const data = await response.json();
-       setIperfServers(data || []);
-     } catch (error) {
-       console.error("Failed to fetch iperf servers:", error);
-     }
-   };
-   fetchIperfServers();
- }, []);
+ // Fetch iperf servers
+ const { data: iperfServers = [] } = useQuery({
+   queryKey: ["servers", "iperf"],
+   queryFn: async () => {
+     const response = await fetch(getApiUrl("/iperf/servers"));
+     if (!response.ok) {
+       throw new Error(`HTTP error! status: ${response.status}`);
+     }
+     return response.json();
+   },
+ });

Remove the iperfServers state declaration on line 24 since React Query manages this state.

@s0up4200 s0up4200 merged commit 6da8c09 into develop Jan 24, 2026
12 checks passed
@s0up4200 s0up4200 deleted the chore/update-copyright-year-2026 branch January 24, 2026 08:36
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