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

Pulling feat/upload-filename into develop #997

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 7, 2025

No description provided.

Copy link

coderabbitai bot commented Mar 7, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@pull-request-size pull-request-size bot added size/L and removed size/M labels Mar 7, 2025
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.16%. Comparing base (bd3e6c0) to head (835abee).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #997   +/-   ##
========================================
  Coverage    90.16%   90.16%           
========================================
  Files          316      316           
  Lines        18893    18893           
  Branches       800      801    +1     
========================================
  Hits         17035    17035           
  Misses        1855     1855           
  Partials         3        3           
🚀 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.

ktun95 added 10 commits March 7, 2025 15:14
This commit upgrades the dicty-graphql-schema dependency to version v1.29.0 in multiple packages. This ensures that all packages are using the latest version of the schema.
…into Upload component

The SelectedFile component is created to display the name of the selected file in the Upload component.
The Upload component is updated to use the SelectedFile component to display the name of the selected file.
This improves the user interface by providing a dedicated component for displaying the selected file name.
The code is refactored to use `Omatch` instead of `isSome` and
`Bmatch` from the `fp-ts/boolean` module. This simplifies the code
and makes it more readable. `Omatch` directly handles both the
`Some` and `None` cases of an `Option`, which eliminates the need
for a separate `isSome` check and `Bmatch` call.
This commit introduces a new `UploadButton` component and refactors the
`Upload` component to use it. This improves code organization and
reusability. The `UploadButton` component encapsulates the button
rendering logic, making the `Upload` component more focused on its
primary responsibility of managing the upload process.
Adds a new plop generator to create React component scaffolds.
This includes:
- A new `create:component` script in `package.json` to run the generator.
- A `plop-templates/reactComponent.hbs` template file for the component.
- New prompts and actions in `plopfile.js` to handle component generation.

This change allows developers to quickly create new React components
with a basic structure, improving development speed and consistency.
This change introduces the `uploadName` variable to the
`uploadMutation` function. This allows specifying the name under
which the file is uploaded, providing more control over the upload
process.
Added jsdoc comments to describe the parameters of the
`createFileUploadFunction` function. This improves the
readability and maintainability of the code.
Adds a new feature to the FileUploadDialog component that allows
users to specify a custom filename for the uploaded file. This
filename is stored in the `uploadAsFileName` state variable and
passed to the `createFileUploadFunction` function. The
`Upload` component is also updated to include a new prop for
setting the `uploadAsFileName`.

This change allows users to have more control over the naming of
their uploaded files.
Adds a new text field to the upload dialog that allows the user to
specify the name of the file that will be downloaded. The file name
input is only visible when a file has been selected.

The file name is stored in the `uploadAsName` state variable, which is
updated when the user types in the text field.

This change allows the user to control the name of the file that is
downloaded, which can be useful for providing a more descriptive or
user-friendly file name.
The ChangeEventHandler import from react was not being used in the
component, so it was removed to clean up the code.
@ktun95 ktun95 force-pushed the feat/upload-filename branch from 29fb85e to 7d11cef Compare March 7, 2025 21:15
…UploadForm

The initialFileName prop was removed from the FileUploadForm component. The value was piped from the fileName state using an Option getter, but this logic is not needed anymore. The component now handles the file name internally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant