Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bookmark CSVs #608

Merged
merged 8 commits into from
Jul 10, 2024
Merged

feat: bookmark CSVs #608

merged 8 commits into from
Jul 10, 2024

Conversation

schmanu
Copy link
Collaborator

@schmanu schmanu commented Jul 7, 2024

What this feature is about

Adds the option to bookmark the current CSV content and to load previously bookmarked files.

Bookmarks are stored by chainId and the user can give a name to each of the transfers.

Bookmarks also get persisted into local storage such that they are persisted between page loads.

Screenshots

Screenshot 2024-07-07 at 15 43 19 Screenshot 2024-07-07 at 14 59 33 Screenshot 2024-07-07 at 15 00 12 Screenshot 2024-07-07 at 15 00 22

Add the option to bookmark the current CSV content and to load previously bookmarked files.

Bookmarks are stored by chainId and the user can give a name to each of the transfers.

Bookmarks also get persisted into local storage such that they are persisted between page loads.
@schmanu schmanu requested a review from bh2smith July 7, 2024 13:39
Copy link
Owner

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

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

All is good here except that I can not run it locally. The "waiting for safe app" appears when not inside safe.

Tried on Firefox [it recognizes it as an app but nothing is ever displayed]
On Brave it says its not an app:

Screenshot 2024-07-08 at 08 38 23

There are a bunch of warnings: Failed to parse source map from which are all rooted in safe-global/safe-apps-sdk/node_modules/@safe-global/safe-gateway-typescript-sdk.

import { useAppSelector } from "src/stores/store";

const HIDE_TIME = 7_000;

const higherSeverity = (a: Message["severity"], b: Message["severity"]) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Cute!

src/components/bookmarks/AddBookmark.tsx Show resolved Hide resolved
src/components/bookmarks/BookmarkLibrary.tsx Show resolved Hide resolved
src/stores/middleware/persistState.ts Show resolved Hide resolved
src/stores/slices/messageSlice.ts Show resolved Hide resolved
src/stores/middleware/persistState.ts Show resolved Hide resolved
src/stores/slices/bookmarkSlice.ts Show resolved Hide resolved
src/stores/slices/bookmarkSlice.ts Show resolved Hide resolved
@bh2smith
Copy link
Owner

bh2smith commented Jul 8, 2024

Tried it! Working well! Merge it baby!

@schmanu schmanu merged commit fad91e9 into main Jul 10, 2024
2 checks passed
@schmanu schmanu deleted the feat/bookmarks branch July 10, 2024 16:22
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