-
Notifications
You must be signed in to change notification settings - Fork 114
test(controllers): Add missing methods for controllers #2093
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
Open
karangattu
wants to merge
18
commits into
main
Choose a base branch
from
add-missing-methods-for-controllers
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b6a3b11
Refactor download controls with shared mixin
karangattu 80018f2
Add download button and link kitchen sink tests
karangattu c5dd290
Enhance set_filter to support multi-column filtering
karangattu 4e8e4dc
Add type annotation for filter_items in OutputDataFrame
karangattu 7f37c0c
Update changelog with multi-column filter support
karangattu 797e5c9
Remove outdated TODO comment in set_filter method
karangattu 438fedc
Refactor navset_bar panels into reusable function
karangattu 21c9631
Update type hints for filter_items in OutputDataFrame
karangattu 1d4534d
Add output_code UI component and tests
karangattu c106374
Remove unused import from app-express.py
karangattu 2a84b36
Add Playwright test for OutputTextVerbatim component
karangattu 32e8256
Name changes
schloerke 1e598f6
Be sure to use `""` when the value is undefined, otherwise the field …
schloerke 1579f11
Set it out of order to prove the filter order is consistent
schloerke bf8aea8
Update .gitignore
schloerke cecf011
Use consistent column filter shape
schloerke 47b3ff2
Update changelog and tests for OutputDataFrame filter changes
karangattu ba89870
Fix import path for ListOrTuple in _output.py
karangattu 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from shiny import App, Inputs, Outputs, Session, render, ui | ||
|
||
app_ui = ui.page_fluid( | ||
ui.input_text_area( | ||
"source", | ||
"Enter code to display below:", | ||
"print('Hello, Shiny!')\nfor i in range(3):\n print(i)", | ||
rows=8, | ||
), | ||
ui.card( | ||
ui.output_code("code_default"), | ||
), | ||
ui.card( | ||
ui.output_code("code_no_placeholder", placeholder=False), | ||
), | ||
) | ||
|
||
|
||
def server(input: Inputs, output: Outputs, session: Session): | ||
@render.code | ||
def code_default(): | ||
return input.source() | ||
|
||
@render.code | ||
def code_no_placeholder(): | ||
return input.source() | ||
|
||
|
||
app = App(app_ui, server) |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from shiny.express import input, render, ui | ||
|
||
ui.input_text_area( | ||
"source", | ||
"Enter code to display below:", | ||
"print('Hello, Shiny!')\nfor i in range(3):\n print(i)", | ||
rows=8, | ||
) | ||
|
||
with ui.card(): | ||
|
||
@render.code | ||
def code_default(): | ||
return input.source() | ||
|
||
|
||
with ui.card(): | ||
|
||
@render.code(placeholder=False) | ||
def code_no_placeholder(): | ||
return input.source() |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.