|
| 1 | +--- |
| 2 | +name: Documentation Issue |
| 3 | +about: Report problems with the FastPix Node SDK documentation |
| 4 | +title: '[DOCS] ' |
| 5 | +labels: ['documentation', 'needs-triage'] |
| 6 | +assignees: '' |
| 7 | +--- |
| 8 | + |
| 9 | +# Documentation Issue |
| 10 | + |
| 11 | +Thank you for helping improve the FastPix Node SDK documentation! Please provide the following information: |
| 12 | + |
| 13 | +## Issue Type |
| 14 | +- [ ] Missing documentation |
| 15 | +- [ ] Incorrect information |
| 16 | +- [ ] Unclear explanation |
| 17 | +- [ ] Broken links |
| 18 | +- [ ] Outdated content |
| 19 | +- [ ] Other: _______________ |
| 20 | + |
| 21 | +## Description |
| 22 | +**Clear description of the documentation issue:** |
| 23 | + |
| 24 | +<!-- What's wrong with the documentation? --> |
| 25 | + |
| 26 | +## Current Documentation |
| 27 | +**What does the current documentation say?** |
| 28 | + |
| 29 | +<!-- Paste the current documentation content --> |
| 30 | + |
| 31 | +## Expected Documentation |
| 32 | +**What should the documentation say instead?** |
| 33 | + |
| 34 | +<!-- Describe what the correct documentation should be --> |
| 35 | + |
| 36 | +## Location |
| 37 | +**Where is this documentation issue located?** |
| 38 | + |
| 39 | +- [ ] README.md |
| 40 | +- [ ] docs/ directory |
| 41 | +- [ ] USAGE.md |
| 42 | +- [ ] CONTRIBUTING.md |
| 43 | +- [ ] API documentation |
| 44 | +- [ ] Code examples |
| 45 | +- [ ] Other: _______________ |
| 46 | + |
| 47 | +**Specific file and section:** |
| 48 | +<!-- e.g., README.md line 45, or docs/api-reference.md section "Authentication" --> |
| 49 | + |
| 50 | +## Impact |
| 51 | +**How does this documentation issue affect users?** |
| 52 | + |
| 53 | +- [ ] Blocks new users from getting started |
| 54 | +- [ ] Causes confusion for existing users |
| 55 | +- [ ] Leads to incorrect implementation |
| 56 | +- [ ] Creates support requests |
| 57 | +- [ ] Other: _______________ |
| 58 | + |
| 59 | +## Proposed Fix |
| 60 | +**How would you like this documentation issue to be resolved?** |
| 61 | + |
| 62 | +<!-- Example of how the documentation should be written --> |
| 63 | +# Correct Documentation |
| 64 | + |
| 65 | +Here's how the documentation should be written: |
| 66 | + |
| 67 | +```kotlin |
| 68 | + val sdk = FastPixUploadSdk.Builder(this) |
| 69 | + .setFile(file) |
| 70 | + .setSignedUrl(_signedUrl.orEmpty()) |
| 71 | + .setChunkSize(16 * 1024 * 1024) // Chunk Size in Byte |
| 72 | + .setMaxRetries(3) |
| 73 | + .callback(new object : FastPixUploadCallbacks { |
| 74 | + override fun onProgressUpdate(progress: Double) { |
| 75 | + /* ... */ |
| 76 | + } |
| 77 | + override fun onPauseUploading() { |
| 78 | + // Handle Pause State |
| 79 | + } |
| 80 | + override fun onResumeUploading() { |
| 81 | + // Handle Resume State |
| 82 | + } |
| 83 | + override fun onAbort() { |
| 84 | + // Handle Abort State |
| 85 | + } |
| 86 | + override fun onUploadInit() { |
| 87 | + // Handle Abort State |
| 88 | + } |
| 89 | + override fun onChunkHanlded( |
| 90 | + totalChunks: Int, |
| 91 | + fileSizeInBytes: Long, |
| 92 | + currentChunk: Int, |
| 93 | + currentChunkSizeInBytes: Long |
| 94 | + ) { |
| 95 | + // Update the UI according chunk data |
| 96 | + } |
| 97 | + override fun onSuccess(timiMillis: Long) { |
| 98 | + // Time to complete the Upload Process |
| 99 | + } |
| 100 | + override fun onChunkUploadingFailed( |
| 101 | + failedChunkRetries: Int, |
| 102 | + chunkCount: Int, |
| 103 | + chunkSize: Int |
| 104 | + ) { |
| 105 | + // Handle Chunk Upload Failure |
| 106 | + } |
| 107 | + override fun onError(error: String, timeMillis: Long) { |
| 108 | + // Handle error message |
| 109 | + } |
| 110 | + override fun onNetworkStateChanged(isOnline: Boolean) { |
| 111 | + // Handle Network Changes |
| 112 | + } |
| 113 | + |
| 114 | + }) |
| 115 | + .setRetryDelay(2000) // Retry Delay |
| 116 | + .build() |
| 117 | +// Starts the Uploading Process |
| 118 | +sdk.startUpload() |
| 119 | +``` |
| 120 | + |
| 121 | +## Additional Context |
| 122 | + |
| 123 | +## Screenshots |
| 124 | +<!-- If applicable, include screenshots of the documentation issue --> |
| 125 | + |
| 126 | +### Related Issues |
| 127 | +- **GitHub Issues:** [Link to any related issues] |
| 128 | +- **User Feedback:** [Link to user complaints or confusion] |
| 129 | + |
| 130 | +### Testing |
| 131 | +**How did you discover this issue?** |
| 132 | + |
| 133 | +- [ ] While following the documentation |
| 134 | +- [ ] User reported confusion |
| 135 | +- [ ] Code didn't work as documented |
| 136 | +- [ ] Other: _______________ |
| 137 | + |
| 138 | +## Priority |
| 139 | +Please indicate the priority of this documentation issue: |
| 140 | + |
| 141 | +- [ ] Critical (Blocks users from using the SDK) |
| 142 | +- [ ] High (Causes significant confusion) |
| 143 | +- [ ] Medium (Minor clarity issue) |
| 144 | +- [ ] Low (Cosmetic improvement) |
| 145 | + |
| 146 | +## Checklist |
| 147 | +Before submitting, please ensure: |
| 148 | + |
| 149 | +- [ ] I have identified the specific documentation issue |
| 150 | +- [ ] I have provided the current and expected content |
| 151 | +- [ ] I have explained the impact on users |
| 152 | +- [ ] I have proposed a clear fix |
| 153 | +- [ ] I have checked if this is already reported |
| 154 | +- [ ] I have provided sufficient context |
| 155 | + |
| 156 | +--- |
| 157 | + |
| 158 | +**Thank you for helping improve the FastPix Node SDK documentation! 📚** |
0 commit comments