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

Dataset Creation UI fixes & Improvements #5670

Merged
merged 22 commits into from
Nov 8, 2024

Conversation

leiyre
Copy link
Member

@leiyre leiyre commented Nov 5, 2024

  • Rating values validate min / max
  • Question name format and renaming
  • Minor style adjustments
  • Show required / not required in the form preview
  • Redirect from /new/repoId to /repoId
  • Redirect to error page when repoId is invalid

Copy link

github-actions bot commented Nov 5, 2024

The URL of the deployed environment for this PR is https://argilla-quickstart-pr-5670-ki24f765kq-no.a.run.app

@leiyre leiyre requested a review from frascuchon November 6, 2024 09:57
@frascuchon frascuchon added this to the v2.4.1 milestone Nov 6, 2024
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.21%. Comparing base (940bd40) to head (cacdb2e).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5670      +/-   ##
===========================================
+ Coverage    91.08%   91.21%   +0.12%     
===========================================
  Files          150      150              
  Lines         6250     6250              
===========================================
+ Hits          5693     5701       +8     
+ Misses         557      549       -8     
Flag Coverage Δ
argilla-server 91.21% <ø> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

frascuchon and others added 2 commits November 6, 2024 16:49
# Description
<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that are required for this change. -->

Closes #5633

**Type of change**
<!-- Please delete options that are not relevant. Remember to title the
PR according to the type of change -->

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

**How Has This Been Tested**
<!-- Please add some reference about how your feature has been tested.
-->

**Checklist**
<!-- Please go over the list and make sure you've taken everything into
account -->

- I added relevant documentation
- I followed the style guidelines of this project
- I did a self-review of my code
- I made corresponding changes to the documentation
- I confirm My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature
works
- I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)

---------

Co-authored-by: José Francisco Calvo <[email protected]>
Co-authored-by: José Francisco Calvo <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@@ -144,7 +145,7 @@ export default {
return Math.max(
...this.dataset.selectedSubset.questions.map((question) => {
const numberInName = question.name.split("_").pop();
return parseInt(numberInName);
return parseInt(numberInName) || 0;
Copy link
Member

Choose a reason for hiding this comment

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

How can a mapped column named "column_10" influence this?

Copy link
Member Author

Choose a reason for hiding this comment

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

In that case the next created question name will be "questionType_11"

@frascuchon frascuchon changed the title Dataset Creation UI Improvements Dataset Creation UI fixes & Improvements Nov 8, 2024
@frascuchon frascuchon merged commit 783c7c0 into develop Nov 8, 2024
4 checks passed
@frascuchon frascuchon deleted the fix/dataset-creation-ui-improvements branch November 8, 2024 11:12
frascuchon added a commit that referenced this pull request Nov 8, 2024
- [x] Rating values validate min / max
- [x] Question name format and renaming
- [x] Minor style adjustments 
- [x] Show required / not required in the form preview
- [x] Redirect from /new/repoId to /repoId
- [x] Redirect to error page when repoId is invalid

---------

Co-authored-by: Francisco Aranda <[email protected]>
Co-authored-by: Paco Aranda <[email protected]>
Co-authored-by: José Francisco Calvo <[email protected]>
Co-authored-by: José Francisco Calvo <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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