-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # lexio/lib/components/ContentDisplay/ContentDisplay.tsx # lexio/lib/types.ts # lexio/package-lock.json # lexio/package.json
@@ -165,6 +166,12 @@ export interface Source { | |||
* These highlights will be visually displayed in the PDF viewer. | |||
*/ | |||
highlights?: PDFHighlight[]; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
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 :) |
No description provided.