Conversation
…in +layout.svelte
…ebar imports Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
…s/utils Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
feat(storage): initial Filebrowser UI implementation
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
…ation S3 File Browser Page Navigation (Pagination)
* #93 add modal preview for file display * #93 fix broken e2e tests * #93 add preview for parquet files, fix scrollbar visibility in preview, allow ms excel csv data for preview * #93 improve parquet row fetch handling * #93 fix lint * #93 move preview endpoint logic into separate files * #93 disable parquet preview
* refactor(ObjectTable): extract File and Folde rows into seperate components * style: format code * style: use camelCase * style: use camelCase
* feat: implement single-file download functionality and error handling for S3 storage * feat: refactor S3 download endpoint to use new API structure and improve error handling * chore: remove obsolete note about static download route segment in tech debt documentation * style: format code * fix: improve type safety in S3 error handling * fix: preview action * feat: add context menu header and improve file selection handling in FileExplorer * fix: reset selection state on context menu close and refine download action logic * style: format files * style: remove pointer events from Actions row on ContextMenu * #91 fix lint --------- Co-authored-by: F3l1x1vo <fli@ordix.de>
| /** | ||
| * Shared helpers for architecture fitness tests. | ||
| * | ||
| * ArchUnitTS only scans TypeScript (.ts) source files. Svelte (.svelte) and |
Bohreromir
left a comment
There was a problem hiding this comment.
please do not mark my comments as resolved, I loose track of them otherwise
|
@Bohreromir I've implemented most of your suggestions in 9e2ec68. I have two points to address:
It's the regular bold disabled font we use everywhere. I don't disagree that it appears slightly blurred if you look closely in darkmode but it's clearly legible. This was accepted from the day we first did a mockup with the Stackable Team of the storage browser. |
|
@F3l1x1vo Whoops my bad. I meant using ctrl+v into the field for the new file name |
There's a conflict there with the regular pasting of text. If the user wants to copy and paste a filename he copied from outside the browser for example, a file in the clipboard of the storage browser would be pasted into that field instead of his text. This pasting of filenames by the clipboard is a very niche and weird interaction that I would suggest to leave out. |
| return { entries, hasMore: false }; | ||
| } catch (err) { | ||
| throw new Error( | ||
| 'RAR support requires the "unrar" command to be installed on the server. ' + |
There was a problem hiding this comment.
Aren't we the ones controlling the server?
Apart from that the unrar license says:
"UnRAR source code may be used in any software to handle
RAR archives without limitations free of charge, but cannot be
used to develop RAR (WinRAR) compatible archiver and to
re-create RAR compression algorithm, which is proprietary.
Distribution of modified UnRAR source code in separate form
or as a part of other software is permitted, provided that
full text of this paragraph, starting from "UnRAR source code"
words, is included in license, or in documentation if license
is not available, and in source code comments of resulting package."
https://github.com/pmachapman/unrar/blob/master/license.txt
I dont speak lawyer, but that might be something @lfrancke wants to check.
Honestly I'd drop the whole archive thing.
There was a problem hiding this comment.
As is the pod sizing limits raw archive size and extracted size together to 120MiB. This doesn't sound a lot to me, especially when shared between users.
Apart from that rar extraction is broken as of now, even with unrar present.
execFileAsync has no encoding option, so stdout is UTF-8-decoded into a string; Buffer.from(stdout, 'binary') (archive.ts:574) then takes the low byte of each char. Any byte ≥ 0x80 becomes U+FFFD and comes back as 0xFD. Works for Text/ASCII, but Parquet inside RARs failes
There was a problem hiding this comment.
Seems like we have to remove 7zip and rar extraction completely.
| maxBytes?: number | ||
| ): Promise<ArchiveListing> { | ||
| const bin = await find7zBinary(); | ||
| if (!bin) throw new Error('7z support requires 7-Zip to be installed on the server.'); |
There was a problem hiding this comment.
where is this installed? including it in the build has the same rar problem described above as it includes the rar archiever
| const raw = env.STORAGE_ENCRYPTION_KEY; | ||
|
|
||
| if (!raw) { | ||
| log.error('STORAGE_ENCRYPTION_KEY environment variable is not set'); |
There was a problem hiding this comment.
this .env is missing in .example.env
| return { entries, hasMore: false }; | ||
| } catch (err) { | ||
| throw new Error( | ||
| 'RAR support requires the "unrar" command to be installed on the server. ' + |
There was a problem hiding this comment.
Seems like we have to remove 7zip and rar extraction completely.
| } | ||
| } | ||
|
|
||
| // ── 7z ─────────────────────────────────────────────────────────────────────── |
There was a problem hiding this comment.
please remove 7zip support as we can not ship the requried binary
| }); | ||
| } | ||
|
|
||
| // ── RAR ────────────────────────────────────────────────────────────────────── |
There was a problem hiding this comment.
please remove rar support as we can not ship the required binary



Closes #129