Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented May 10, 2025


PR-Codex overview

This PR introduces a new function to delete cookies and integrates it into the LoginPage component to reset specific cookies upon mounting.

Detailed summary

  • Added deleteCookie function in cookie.ts to remove cookies by setting their expiration date to the past.
  • Imported cookie constants (LAST_USED_PROJECT_ID, LAST_USED_TEAM_ID, LAST_VISITED_TEAM_PAGE_PATH) in LoginPage.tsx.
  • Implemented ResetLastUsedCookies component to delete specified cookies on component mount.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented May 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2025 1:28pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) May 10, 2025 1:28pm
login ⬜️ Skipped (Inspect) May 10, 2025 1:28pm
thirdweb_playground ⬜️ Skipped (Inspect) May 10, 2025 1:28pm
wallet-ui ⬜️ Skipped (Inspect) May 10, 2025 1:28pm

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 10, 2025 13:06 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 10, 2025 13:06 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 10, 2025 13:06 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 10, 2025 13:06 Inactive
@changeset-bot
Copy link

changeset-bot bot commented May 10, 2025

⚠️ No Changeset found

Latest commit: 7de273c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label May 10, 2025
@MananTank MananTank marked this pull request as ready for review May 10, 2025 13:07
@MananTank MananTank requested review from a team as code owners May 10, 2025 13:07
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented May 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.60%. Comparing base (95cc441) to head (7de273c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7005   +/-   ##
=======================================
  Coverage   54.60%   54.60%           
=======================================
  Files         903      903           
  Lines       57936    57936           
  Branches     3973     3971    -2     
=======================================
+ Hits        31637    31638    +1     
+ Misses      26198    26197    -1     
  Partials      101      101           
Flag Coverage Δ
packages 54.60% <ø> (+<0.01%) ⬆️

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented May 10, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 54.21 KB (0%) 1.1 s (0%) 165 ms (+128.07% 🔺) 1.3 s
thirdweb (cjs) 193.92 KB (0%) 3.9 s (0%) 333 ms (+21.73% 🔺) 4.3 s
thirdweb (minimal + tree-shaking) 5.68 KB (0%) 114 ms (0%) 75 ms (+1356.09% 🔺) 189 ms
thirdweb/chains (tree-shaking) 524 B (0%) 11 ms (0%) 36 ms (+2584.78% 🔺) 46 ms
thirdweb/react (minimal + tree-shaking) 19.55 KB (0%) 391 ms (0%) 42 ms (+219.84% 🔺) 433 ms

@graphite-app
Copy link
Contributor

graphite-app bot commented May 10, 2025

Merge activity

graphite-app bot pushed a commit that referenced this pull request May 10, 2025
<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new function to delete cookies and integrates it into the `LoginPage` to reset specific cookies upon loading the page.

### Detailed summary
- Added `deleteCookie` function in `lib/cookie.ts` to remove a cookie by setting its expiration date to the past.
- Introduced `ResetLastUsedCookies` component in `LoginPage.tsx` to call `deleteCookie` for `LAST_USED_PROJECT_ID`, `LAST_USED_TEAM_ID`, and `LAST_VISITED_TEAM_PAGE_PATH` on component mount.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the 05-10-dashboard_reset_last-used-_cookies_on_login_page branch from 64b7f4f to 6c41a5a Compare May 10, 2025 13:15
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 10, 2025 13:15 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 10, 2025 13:15 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 10, 2025 13:15 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 10, 2025 13:15 Inactive
<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on adding a `deleteCookie` function to manage cookies and incorporates a new component, `ResetLastUsedCookies`, in the `LoginPage` to clear specific cookies upon rendering.

### Detailed summary
- Added `deleteCookie` function in `cookie.ts` to delete cookies by name.
- Imported constants `LAST_USED_PROJECT_ID`, `LAST_USED_TEAM_ID`, and `LAST_VISITED_TEAM_PAGE_PATH` in `LoginPage.tsx`.
- Implemented `ResetLastUsedCookies` component to delete specific cookies on mount.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the 05-10-dashboard_reset_last-used-_cookies_on_login_page branch from 6c41a5a to 7de273c Compare May 10, 2025 13:18
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 10, 2025 13:18 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 10, 2025 13:18 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 10, 2025 13:18 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 10, 2025 13:18 Inactive
@graphite-app graphite-app bot merged commit 7de273c into main May 10, 2025
23 checks passed
@graphite-app graphite-app bot deleted the 05-10-dashboard_reset_last-used-_cookies_on_login_page branch May 10, 2025 13:29
@vercel vercel bot temporarily deployed to Production – login May 10, 2025 13:29 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground May 10, 2025 13:29 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 May 10, 2025 13:29 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui May 10, 2025 13:29 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants