-
Notifications
You must be signed in to change notification settings - Fork 0
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
New repo code review #11
Merged
Merged
Changes from 5 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ab71e39
fix: links
iowillhoit 8c39232
chore: width and wrap notes
iowillhoit 3578e3f
chore: wrapped alignment
iowillhoit 4ec1bfa
chore: another example, value tweaks to test correct ordering
iowillhoit 77f9c1a
chore: paddingBefore paddingAfter question
iowillhoit 7a4ee69
chore: new skeleton
iowillhoit 0b0069d
chore: test fix
iowillhoit a2b816c
fix: account for columnGap when sizing multiple tables
mdonnalley 36415d9
fix: remove orientation prop
mdonnalley bbe9e90
fix: wrapping and alignment
mdonnalley f5f1512
refactor: better alignment
mdonnalley 9397e8e
chore: remove console.log
mdonnalley 8637b07
chore: showcase verticalAlignment
iowillhoit ab3f94b
fix: right alignment
mdonnalley 1332fe3
chore: remove console.log
mdonnalley eae8041
chore: clean up
mdonnalley 94d1418
Merge pull request #12 from oclif/mdonnalley/code-review
mdonnalley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,20 @@ | |
|
||
## Reporting Bugs | ||
|
||
When submitting a new bug report, please first [search](https://github.com/oclif/multi-stage-output/issues) for an existing or similar report & then use one of our existing [issue templates](https://github.com/oclif/multi-stage-output/issues/new/choose) if you believe you've come across a unique problem. Duplicate issues, or issues that don't use one of our templates may get closed without a response. | ||
When submitting a new bug report, please first [search](https://github.com/oclif/table/issues) for an existing or similar report & then use one of our existing [issue templates](https://github.com/oclif/table/issues/new/choose) if you believe you've come across a unique problem. Duplicate issues, or issues that don't use one of our templates may get closed without a response. | ||
|
||
## Development | ||
|
||
**1. Clone this repository...** | ||
|
||
```bash | ||
$ git clone [email protected]:oclif/multi-stage-output.git | ||
$ git clone [email protected]:oclif/table.git | ||
``` | ||
|
||
**2. Navigate into project & install development-specific dependencies...** | ||
|
||
```bash | ||
$ cd ./multi-stage-output && yarn | ||
$ cd ./table && yarn | ||
``` | ||
|
||
**3. Write some code &/or add some tests...** | ||
|
@@ -30,7 +30,7 @@ $ cd ./multi-stage-output && yarn | |
$ yarn test | ||
``` | ||
|
||
**5. Open a [Pull Request](https://github.com/oclif/multi-stage-output/pulls) for your work & become the newest contributor to `@oclif/multi-stage-output`! 🎉** | ||
**5. Open a [Pull Request](https://github.com/oclif/table/pulls) for your work & become the newest contributor to `@oclif/table`! 🎉** | ||
|
||
## Pull Request Conventions | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -407,6 +407,7 @@ export function Skeleton(props: React.PropsWithChildren & {readonly height?: num | |
export function printTable<T extends Record<string, unknown>>(options: TableOptions<T>): void { | ||
const instance = render(<Table {...options} />) | ||
instance.unmount() | ||
// It might be nice to have a "paddingBefore" and "paddingAfter" option for the number of newlines to enter. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is necessary. People can print as many newlines as they want before or after the table. This new line only exists because, otherwise, the next output will appear on the same line as the last line of the table. For example
|
||
process.stdout.write('\n') | ||
} | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.