Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Collonval committed Mar 3, 2021
1 parent 221b716 commit a5cfa74
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 231 deletions.
10 changes: 6 additions & 4 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@
- Not all discussion are set in the UI
- [x] Fix using ref from commit sha rather than branch to ensure consistency when requesting file content and discussion
- [x] Use Widget panel and handle life cycle for discussion
- [ ] Fix styling
- [x] Fix styling
- [ ] Fix use effect on panel
- [ ] Fix notebooks
- [ ] Hide unchanged cells (and the comments structure)
- [x] Support added and removed notebooks (currently JSON error as content on one side is "")
- [x] Use codemirror as new comment editor
- [ ] Take advantage of builtin feature of MainAreaWidget (spinner)
- [ ] Add label - base / head in diff widgets
- [x] Simplify number of div to include add button on notebook (and to fix hiding it when unchanged cells are collapsed)
- [ ] Take into account review from Nick
- [ ] Use model to support diff view - this will allow refresh
- [ ] Switch to virtual tree
- [ ] Organize PR by project
- [ ] Add support for comment at PR level for GitHub
- [ ] Document the code
- [ ] Tests
- [ ] Update README
- [ ] Publish beta
- [ ] Use model to support diff view - this will allow refresh
- [ ] Switch to virtual tree
- [ ] Organize PR by project
- [ ] TBC Switch to current folder remote
1 change: 1 addition & 0 deletions src/components/diff/NotebookCommentDiffWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class NotebookCommentDiffWidget extends NotebookDiffWidget {
cellDiff.addWidget(new Widget({ node: commentButton }));

const chunkWidget = new Panel();
chunkWidget.addClass('jp-PullRequestCellDiff');
chunkWidget.addWidget(cellDiff);

this._threads[currentPosition].threads.forEach((thread, _, array) => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/diff/plaintext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export class PlainTextDiff extends Widget {
connect: 'align',
collapseIdentical: true,
readOnly: true,
revertButtons: false
revertButtons: false,
lineWrapping: true
}
) as MergeView.MergeViewEditor;

Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function activate(
restorer.add(prPanel, NAMESPACE);

// Add the panel to the sidebar
shell.add(prPanel, 'right', { rank: 200 });
shell.add(prPanel, 'right', { rank: 1000 });
}

export default pullRequestPlugin;
Loading

0 comments on commit a5cfa74

Please sign in to comment.