Skip to content

refactor: solid header (@miodec)#7564

Open
Miodec wants to merge 83 commits intomasterfrom
solid-nav
Open

refactor: solid header (@miodec)#7564
Miodec wants to merge 83 commits intomasterfrom
solid-nav

Conversation

@Miodec
Copy link
Member

@Miodec Miodec commented Mar 2, 2026

No description provided.

@Miodec Miodec requested a review from Copilot March 2, 2026 22:08
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Mar 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 57 out of 58 changed files in this pull request and generated 4 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment on lines 85 to 105
<a
class={getClasses()}
href={props.href}
target={
props["router-link"] || props.href?.startsWith("#")
? undefined
: "_blank"
}
rel={
props["router-link"] || props.href?.startsWith("#")
? undefined
: "noreferrer noopener"
}
{...ariaLabel()}
{...(props["router-link"] ? { "router-link": "" } : {})}
onClick={() => props.onClick?.()}
onMouseEnter={() => props.onMouseEnter?.()}
onMouseLeave={() => props.onMouseLeave?.()}
{...props.dataset}
>
{content}
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

Button now allows onClick in BaseProps, and callers (e.g. nav start button) pass onClick while also providing href (anchor mode). The anchor branch never binds onClick, so the handler is silently ignored (restart-on-click etc. breaks). Either wire onClick onto the <a> element too, or disallow onClick when href is present (restore the onClick?: never typing + remove from BaseProps).

Copilot uses AI. Check for mistakes.
Comment on lines +4 to +24
@@ -11,17 +11,17 @@ import {
import { getConfig } from "../../signals/config";
import { getActivePage } from "../../signals/core";
import { showModal } from "../../stores/modals";
import { qsr } from "../../utils/dom";
// import { qsr } from "../../utils/dom";
import { getNumberWithMagnitude } from "../../utils/numbers";
import AsyncContent from "../common/AsyncContent";
import { Button } from "../common/Button";
import { ChartJs } from "../common/ChartJs";
import { Fa } from "../common/Fa";
import { H2, H3 } from "../common/Headers";

qsr("nav .view-about").on("mouseenter", () => {
prefetch();
});
// qsr("nav .view-about").on("mouseenter", () => {
// prefetch();
// });
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

This file now contains commented-out imports and a fully commented prefetch handler/function. If prefetch-on-hover is intentionally removed, delete the dead code; if it's still desired, re-enable it in a Solid-friendly way (e.g. attach onMouseEnter in the header/nav component and call queryClient.prefetchQuery(...)).

Copilot uses AI. Check for mistakes.
Comment on lines 171 to 184
it("saves to localstorage if nosave=false", async () => {
//GIVEN
replaceConfig({ numbers: false });

//WHEN
Config.setConfig("numbers", true);

//THEN
//wait for debounce
await vi.advanceTimersByTimeAsync(2500);

//show loading
expect(accountButtonLoadingMock).toHaveBeenNthCalledWith(1, true);

//save
expect(dbSaveConfigMock).toHaveBeenCalledWith({ numbers: true });

//hide loading
expect(accountButtonLoadingMock).toHaveBeenNthCalledWith(2, false);
});
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The config tests previously asserted the account spinner/loading toggling during debounced saves. That coverage was removed when migrating off AccountButton.loading(...). Consider replacing it with an assertion on the new mechanism (e.g. spy on setAccountButtonSpinner from signals/header) so regressions in spinner behavior are still caught.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added waiting for update Pull requests or issues that require changes/comments before continuing and removed waiting for review Pull requests that require a review before continuing labels Mar 3, 2026
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Mar 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Mar 3, 2026
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Mar 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Mar 3, 2026
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Mar 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff packages Changes in local packages waiting for update Pull requests or issues that require changes/comments before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants