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

WIP: Excel viewer #87

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

WIP: Excel viewer #87

wants to merge 8 commits into from

Conversation

ramses1998
Copy link
Collaborator

No description provided.

@ramses1998 ramses1998 requested a review from SYoy March 10, 2025 16:32
@ramses1998 ramses1998 self-assigned this Mar 10, 2025
@@ -165,6 +166,12 @@ export interface Source {
* These highlights will be visually displayed in the PDF viewer.
*/
highlights?: PDFHighlight[];
Copy link
Collaborator

Choose a reason for hiding this comment

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

only use one highlights prop, make it a union of PDF and SpreedsheetHighlight

};
export interface PDFHighlight {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this here?

/**
* The name of the sheet where the highlight appears.
*/
sheetName: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you make it work wqith sheetName optional? what is the default case in the viewer?

@@ -69,44 +72,82 @@ const ContentDisplay: React.FC<ContentDisplayProps> = ({
...removeUndefined(styleOverrides),
};

const source = selectedSourceId ? (sources.find((s) => s.id === selectedSourceId) ?? undefined) : undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

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

use the selectedSource directly? no need to look it up in sources

@@ -0,0 +1,5 @@
import { clsx, type ClassValue } from "clsx"
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this still in use?

type Props = {
fileName?: string | undefined;
fileBufferArray: ArrayBuffer;
defaultSelectedSheet?: string | undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you use our current schema for component props definition with extensive jsdocs. see ChatWindow component https://github.com/Renumics/lexio/blob/main/lexio/lib/components/ChatWindow/ChatWindow.tsx

@SYoy
Copy link
Collaborator

SYoy commented Mar 11, 2025

I tested out the viewer with another excel file than the on provided by you and got some issues. lets discuss it in person later today :)

@SYoy SYoy changed the title Excel viewer WIP: Excel viewer Mar 12, 2025
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