Multiple instructions show as one comma-joined paragraph ("questions., Conditional")
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Việc nối bằng dấu phẩy diễn ra trong packages/react-core/src/components/InstrumentOverview/InstrumentOverview.tsx ở dòng 51 và trong packages/react-core/src/components/FormContent/FormContent.tsx ở dòng 42. Hãy bắt đầu bằng cách đọc cả hai vị trí để xem instructions được hiển thị như thế nào, sau đó thay đổi từng nơi để hiển thị mỗi mục thành một phần tử riêng, chẳng hạn như một mục danh sách. Hoàn thành khi ví dụ trong hướng dẫn hiển thị hai dòng riêng biệt ở cả phần tổng quan lẫn hộp thoại hướng dẫn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The instructions field is a string[] of "Brief sequential instructions":
https://github.com/DouglasNeuroInformatics/OpenDataCapture/blob/432dec8115722d8316922f0069f0c3b67f09214a/packages/runtime-core/src/types/instrument.base.ts#L49-L50
The instrument guidelines show each entry as one full sentence:
https://github.com/DouglasNeuroInformatics/OpenDataCapture/blob/432dec8115722d8316922f0069f0c3b67f09214a/packages/instrument-guidelines/AGENTS.md#L743-L744
en: ['Please answer all required questions.', 'Conditional questions will appear based on your answers.'],
But both renderers join the entries with ', ' into one paragraph:
- https://github.com/DouglasNeuroInformatics/OpenDataCapture/blob/432dec8115722d8316922f0069f0c3b67f09214a/packages/react-core/src/components/InstrumentOverview/InstrumentOverview.tsx#L51
- https://github.com/DouglasNeuroInformatics/OpenDataCapture/blob/432dec8115722d8316922f0069f0c3b67f09214a/packages/react-core/src/components/FormContent/FormContent.tsx#L42
Steps to reproduce
- Make an instrument with
clientDetails.instructionsset to the guidelines example above. - Open the instrument overview, or open the instructions dialog in the form.
Expected
Each instruction shows as its own line or list item:
Please answer all required questions.
Conditional questions will appear based on your answers.
Actual
Please answer all required questions., Conditional questions will appear based on your answers.
Note
The instruments in instrument-library use only one entry, so they do not show the problem. Instruments that follow the documented example do show it.
Suggested fix
Render each entry as its own element in both components. For example, use an <ol>/<ul> (the entries are "sequential"), or one <p> for each entry. Do not use join(', ').
cc @thomasbeaudry (last change to these files)
- Ngôn ngữ chính
- TypeScript
- Star
- 119
- Fork
- 19
- Merge trung bình
- 4 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 35
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DouglasNeuroInformatics/OpenDataCapture
-
Area: Infrastructure Chore Difficulty: Low Priority: Medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
DouglasNeuroInformatics/OpenDataCapture#1835 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: Playground Bug Difficulty: Low Good First Issue Priority: Medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
DouglasNeuroInformatics/OpenDataCapture#1833 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: Instruments Bug Difficulty: Low Priority: Low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
DouglasNeuroInformatics/OpenDataCapture#1824 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: Shared Bug Difficulty: Low Priority: Low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
DouglasNeuroInformatics/OpenDataCapture#1813 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: Instruments Bug Difficulty: Low Priority: Low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
DouglasNeuroInformatics/OpenDataCapture#1801 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DouglasNeuroInformatics/OpenDataCapture
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Automattic/data-liberation-agent#1115 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Enhance blog readabilityĐang mởCSS enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pychess/pychess-variants#2448 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[architect] Stale planning/scratch files at repo root (COMPONENT_SPLIT_SUMMARY.md etc.) describe already-completed workCó thể đã có người làm @hivecommons-hive đã nhận hôm nay. Đang mởagent/architect architecture help wanted stage/040-covered-by-pr tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
kubestellar/console#24716 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
helm-knative-apply.sh fails with Helm 4Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea: triage theme: undefined
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
jhipster/generator-jhipster#35895 ·
Maintainer thường phản hồi trong vòng 1 ngày