Skip to content

[WEB-4829] refactor: remove start us CTA from header#7695

Closed
prateekshourya29 wants to merge 1 commit intopreviewfrom
refactor-header-cta
Closed

[WEB-4829] refactor: remove start us CTA from header#7695
prateekshourya29 wants to merge 1 commit intopreviewfrom
refactor-header-cta

Conversation

@prateekshourya29
Copy link
Member

@prateekshourya29 prateekshourya29 commented Sep 1, 2025

Description

This PR removes Star us on GitHub CTA from header.

Type of Change

  • Code refactoring

Summary by CodeRabbit

  • Refactor
    • Simplified the workspace header by removing the GitHub link and icon; the right side now only shows “Manage Widgets.” Breadcrumbs are unchanged. Removed theme-based icon swapping to improve consistency and reduce visual clutter.
  • Chores
    • Removed unused analytics events tied to the GitHub header link.
    • Cleaned up translations by deleting the “Star us on GitHub” string across all supported languages.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 1, 2025

Walkthrough

Removed GitHub link/analytics from the workspace header, deleted related event constants, and removed the star_us_on_github translation key across all locales. No public API signatures changed.

Changes

Cohort / File(s) Summary
Workspace header UI
apps/web/app/(all)/[workspaceSlug]/(projects)/header.tsx
Removed GitHub anchor, theme-based image, related imports, and tracking call; retained breadcrumbs and Manage Widgets button; no export signature changes.
Event tracker constants
packages/constants/src/event-tracker/core.ts
Deleted exported constants GITHUB_REDIRECTED_TRACKER_EVENT and HEADER_GITHUB_ICON; other exports unchanged.
i18n key removal
packages/i18n/src/locales/*/translations.json
Removed home.star_us_on_github key from locales: cs, de, en, es, fr, id, it, ja, ko, pl, pt-BR, ro, ru, sk, tr-TR, ua, vi-VN, zh-CN, zh-TW; no other keys modified.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant Header as Workspace Header (Before)
  participant Tracker as Event Tracker
  participant GitHub as GitHub

  User->>Header: Click GitHub icon
  Header->>Tracker: capture(HEADER_GITHUB_ICON, GITHUB_REDIRECTED_TRACKER_EVENT)
  Header->>GitHub: Redirect
Loading
sequenceDiagram
  autonumber
  actor User
  participant Header as Workspace Header (After)

  User->>Header: Interact with header
  Note over Header: GitHub icon and tracking removed
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

🌐frontend, 🛠️refactor

Suggested reviewers

  • sriramveeraghanta
  • anmolsinghbhatia

Poem

I nibbled the stars from the header bar bright,
Hopped past the trackers, out of sight.
Widgets remain where crumbs align,
Translations tidied, neat and fine.
Thump-thump! goes QA’s cheerful drum—
Cleaner paths for buns to run. 🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor-header-cta

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@makeplane
Copy link

makeplane bot commented Sep 1, 2025

Pull Request Linked with Plane Work Items

Comment Automatically Generated by Plane

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

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

⚠️ Outside diff range comments (2)
packages/i18n/src/locales/ua/translations.json (1)

606-611: Remove or reference orphaned translation keys
No code references were found for reordered_successfully and reordering_failed; either implement their usage in the codebase or remove these entries from packages/i18n/src/locales/ua/translations.json.

apps/web/app/(all)/[workspaceSlug]/(projects)/header.tsx (1)

33-41: Add an accessible name to the icon-only button on small screens

On small viewports the text is hidden, leaving an icon-only button with no accessible name. Add aria-label (and optional title).

Apply:

-          <Button
+          <Button
             variant="neutral-primary"
             size="sm"
             onClick={() => toggleWidgetSettings(true)}
-            className="my-auto mb-0"
+            className="my-auto mb-0"
+            aria-label={t("home.manage_widgets")}
+            title={t("home.manage_widgets")}
           >
             <Shapes size={16} />
-            <div className="hidden text-xs font-medium sm:hidden md:block">{t("home.manage_widgets")}</div>
+            <div className="hidden md:block text-xs font-medium">{t("home.manage_widgets")}</div>
           </Button>
🧹 Nitpick comments (1)
apps/web/app/(all)/[workspaceSlug]/(projects)/header.tsx (1)

40-40: Tailwind nit: remove redundant breakpoint utility

"hidden sm:hidden md:block" redundantly hides twice; "hidden md:block" suffices.

Apply (already included above):

-            <div className="hidden text-xs font-medium sm:hidden md:block">{t("home.manage_widgets")}</div>
+            <div className="hidden md:block text-xs font-medium">{t("home.manage_widgets")}</div>
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between fd5ba6c and b49faa6.

📒 Files selected for processing (21)
  • apps/web/app/(all)/[workspaceSlug]/(projects)/header.tsx (1 hunks)
  • packages/constants/src/event-tracker/core.ts (0 hunks)
  • packages/i18n/src/locales/cs/translations.json (1 hunks)
  • packages/i18n/src/locales/de/translations.json (1 hunks)
  • packages/i18n/src/locales/en/translations.json (1 hunks)
  • packages/i18n/src/locales/es/translations.json (1 hunks)
  • packages/i18n/src/locales/fr/translations.json (1 hunks)
  • packages/i18n/src/locales/id/translations.json (1 hunks)
  • packages/i18n/src/locales/it/translations.json (1 hunks)
  • packages/i18n/src/locales/ja/translations.json (1 hunks)
  • packages/i18n/src/locales/ko/translations.json (1 hunks)
  • packages/i18n/src/locales/pl/translations.json (1 hunks)
  • packages/i18n/src/locales/pt-BR/translations.json (1 hunks)
  • packages/i18n/src/locales/ro/translations.json (1 hunks)
  • packages/i18n/src/locales/ru/translations.json (1 hunks)
  • packages/i18n/src/locales/sk/translations.json (1 hunks)
  • packages/i18n/src/locales/tr-TR/translations.json (1 hunks)
  • packages/i18n/src/locales/ua/translations.json (1 hunks)
  • packages/i18n/src/locales/vi-VN/translations.json (1 hunks)
  • packages/i18n/src/locales/zh-CN/translations.json (1 hunks)
  • packages/i18n/src/locales/zh-TW/translations.json (1 hunks)
💤 Files with no reviewable changes (1)
  • packages/constants/src/event-tracker/core.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Build and lint web apps
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (19)
packages/i18n/src/locales/ro/translations.json (1)

608-608: LGTM; no references to removed CTA keys (star_us_on_github, HEADER_GITHUB_ICON, GITHUB_REDIRECTED_TRACKER_EVENT) and all locale JSON files are valid.

packages/i18n/src/locales/pt-BR/translations.json (1)

611-611: No stale references found and all translation JSON files are valid; approving changes.

packages/i18n/src/locales/zh-CN/translations.json (1)

611-611: Cleanup complete and verified; LGTM.

packages/i18n/src/locales/pl/translations.json (1)

610-611: Approve removal of home.star_us_on_github Verified no lingering references and all locale JSON files remain valid.

packages/i18n/src/locales/it/translations.json (1)

610-611: LGTM: Italian locale consistent with CTA removal

No functional impact; translation structure intact after removing home.star_us_on_github.

packages/i18n/src/locales/ko/translations.json (1)

610-611: LGTM: Korean locale consistent with CTA removal

Matches the header refactor; no additional action needed.

packages/i18n/src/locales/ja/translations.json (1)

610-610: LGTM — removal reflected; title OK.

“home.title” stays “ホーム”; consistent with the CTA deletion.

packages/i18n/src/locales/es/translations.json (1)

612-612: LGTM — Spanish title unchanged post-removal.

“home.title” remains “Inicio”; aligns with dropping the CTA key.

packages/i18n/src/locales/de/translations.json (1)

608-609: Verify removal of star_us_on_github usage

  • Locale JSON valid and key absent in packages/i18n/src/locales/*/translations.json.
  • Rerun search across code to rule out any remaining references:
    rg -nP '\bhome\.star_us_on_github\b' -g '*.ts' -g '*.tsx' -g '*.js' -g '*.jsx'
    
packages/i18n/src/locales/cs/translations.json (1)

608-609: Czech locale cleanup — LGTM

Key removal is consistent; no structural issues observed.

packages/i18n/src/locales/id/translations.json (1)

608-609: Indonesian locale cleanup — LGTM

Consistent with the PR objective; JSON remains well-formed.

packages/i18n/src/locales/ru/translations.json (1)

606-611: LGTM — no remaining references to star_us_on_github and JSON is valid.

packages/i18n/src/locales/sk/translations.json (1)

606-611: Approve changes — no stale references; SK JSON valid.

packages/i18n/src/locales/en/translations.json (1)

449-449: Approve: no stale references remain
Verified removal of star_us_on_github, HEADER_GITHUB_ICON, GITHUB_REDIRECTED_TRACKER_EVENT, and any header GitHub anchors; no occurrences found.

packages/i18n/src/locales/vi-VN/translations.json (1)

610-610: LGTM: VI locale aligned with CTA removal

Home title intact; no regressions noted.

packages/i18n/src/locales/fr/translations.json (1)

610-610: LGTM: FR locale aligned with CTA removal

Consistent with the EN change; nothing else to fix.

packages/i18n/src/locales/tr-TR/translations.json (2)

611-611: LGTM: home.title present after CTA removal

"home.title" is intact and aligns with its usage in header.tsx. No issues spotted in this locale file.


547-612: star_us_on_github removal verified Verified no references to star_us_on_github remain and all translations.json files include both home.title and home.manage_widgets.

apps/web/app/(all)/[workspaceSlug]/(projects)/header.tsx (1)

3-12: Imports cleanup matches PR objective

GitHub CTA-related imports are gone; header relies only on plane modules and existing components. Good.

@prateekshourya29 prateekshourya29 deleted the refactor-header-cta branch October 14, 2025 11:47
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