Skip to content

fix: increase sidebar min width#1824

Merged
charlesvien merged 1 commit intomainfrom
04-22-fix_increase_sidebar_min_width
Apr 23, 2026
Merged

fix: increase sidebar min width#1824
charlesvien merged 1 commit intomainfrom
04-22-fix_increase_sidebar_min_width

Conversation

@jonathanlab
Copy link
Copy Markdown
Contributor

@jonathanlab jonathanlab commented Apr 22, 2026

Closes #1822

@jonathanlab jonathanlab marked this pull request as ready for review April 22, 2026 11:48
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 22, 2026

Prompt To Fix All With AI
This is a comment left during a code review.
Path: apps/code/src/renderer/features/sidebar/components/UpdateBanner.tsx
Line: 7-17

Comment:
**Debug/temporary code left in production**

These lines were marked as `// TEMP` but are included in the PR and will ship to users. With `status` hardcoded to `"ready"`, `version` defaulting to `"v0.99.0"`, and `isEnabled` forced to `true`, every user will see the update banner on every app load regardless of actual update state. The `void realIsEnabled` line confirms the real value is never consulted.

This block must be removed before merging.

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: apps/code/src/renderer/features/sidebar/stores/sidebarStore.ts
Line: 1

Comment:
**Store importing from a component**

`sidebarStore` imports `SIDEBAR_MIN_WIDTH` from a React component file. Stores importing from UI components creates an inverted dependency direction — components typically depend on stores, not vice versa. Consider moving the constant to a shared constants file (e.g. `src/renderer/constants/layout.ts`) so both the component and the store can import it without either depending on the other.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "fix: increase sidebar min width" | Re-trigger Greptile

Comment on lines +7 to +17
const realStatus = useUpdateStore((s) => s.status);
const realVersion = useUpdateStore((s) => s.version);
const realIsEnabled = useUpdateStore((s) => s.isEnabled);
const installUpdate = useUpdateStore((s) => s.installUpdate);

// TEMP: force-render "ready" banner for visual review of sidebar min-width
const status = "ready" as typeof realStatus;
const version = realVersion ?? "v0.99.0";
const isEnabled = true;
void realIsEnabled;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P0 Debug/temporary code left in production

These lines were marked as // TEMP but are included in the PR and will ship to users. With status hardcoded to "ready", version defaulting to "v0.99.0", and isEnabled forced to true, every user will see the update banner on every app load regardless of actual update state. The void realIsEnabled line confirms the real value is never consulted.

This block must be removed before merging.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/code/src/renderer/features/sidebar/components/UpdateBanner.tsx
Line: 7-17

Comment:
**Debug/temporary code left in production**

These lines were marked as `// TEMP` but are included in the PR and will ship to users. With `status` hardcoded to `"ready"`, `version` defaulting to `"v0.99.0"`, and `isEnabled` forced to `true`, every user will see the update banner on every app load regardless of actual update state. The `void realIsEnabled` line confirms the real value is never consulted.

This block must be removed before merging.

How can I resolve this? If you propose a fix, please make it concise.

@@ -1,3 +1,4 @@
import { SIDEBAR_MIN_WIDTH } from "@components/ResizableSidebar";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Store importing from a component

sidebarStore imports SIDEBAR_MIN_WIDTH from a React component file. Stores importing from UI components creates an inverted dependency direction — components typically depend on stores, not vice versa. Consider moving the constant to a shared constants file (e.g. src/renderer/constants/layout.ts) so both the component and the store can import it without either depending on the other.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/code/src/renderer/features/sidebar/stores/sidebarStore.ts
Line: 1

Comment:
**Store importing from a component**

`sidebarStore` imports `SIDEBAR_MIN_WIDTH` from a React component file. Stores importing from UI components creates an inverted dependency direction — components typically depend on stores, not vice versa. Consider moving the constant to a shared constants file (e.g. `src/renderer/constants/layout.ts`) so both the component and the store can import it without either depending on the other.

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@charlesvien charlesvien force-pushed the 04-22-fix_git_persist_pr_draft_values branch from 143dec1 to 4fc6c84 Compare April 22, 2026 22:55
@charlesvien charlesvien force-pushed the 04-22-fix_increase_sidebar_min_width branch from 25b215d to 8027df2 Compare April 22, 2026 22:55
@jonathanlab jonathanlab force-pushed the 04-22-fix_git_persist_pr_draft_values branch from 4fc6c84 to 935de6f Compare April 23, 2026 10:17
@jonathanlab jonathanlab force-pushed the 04-22-fix_increase_sidebar_min_width branch from 8027df2 to 6e52943 Compare April 23, 2026 10:19
@jonathanlab jonathanlab force-pushed the 04-22-fix_git_persist_pr_draft_values branch 2 times, most recently from e2f8389 to 574aaf3 Compare April 23, 2026 10:41
@jonathanlab jonathanlab force-pushed the 04-22-fix_increase_sidebar_min_width branch from 6e52943 to 1db72f2 Compare April 23, 2026 10:41
@charlesvien charlesvien changed the base branch from 04-22-fix_git_persist_pr_draft_values to graphite-base/1824 April 23, 2026 10:47
@charlesvien charlesvien force-pushed the 04-22-fix_increase_sidebar_min_width branch from 1db72f2 to 79f4277 Compare April 23, 2026 10:48
@graphite-app graphite-app Bot changed the base branch from graphite-base/1824 to main April 23, 2026 10:48
@charlesvien charlesvien force-pushed the 04-22-fix_increase_sidebar_min_width branch from 79f4277 to b6575d8 Compare April 23, 2026 10:48
@charlesvien charlesvien merged commit f40543e into main Apr 23, 2026
16 checks passed
Copy link
Copy Markdown
Member

Merge activity

@charlesvien charlesvien deleted the 04-22-fix_increase_sidebar_min_width branch April 23, 2026 10:56
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.

Sidebar needs a min width

3 participants