-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Migrate Data Sources and Alert Destinations pages to React #3470
Migrate Data Sources and Alert Destinations pages to React #3470
Conversation
Perhaps right-aligned but not aside to the Name label? (I don't see a simple way to put it aside to it, also it makes some sense for it not to be there 😅)
👍 |
Thanks, @ranbena, my last concern about this is:
If you've already checked this and actually think it's an acceptable behavior, LMK 😅. BTW, I had to revert |
Overflow hidden is good enough cause it prevents breakage and long names are probably an edge case (pun intended). .cards-list .cards-list-item h3 {
...
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
👍 |
Thanks a lot @ranbena! 😁 I actually had to add If there's no further comments, this is ready to go when convenient. 👍 |
Go ahead and merge whenever you're ready. |
Conflicts resolved, gonna merge this big guy tomorrow 🚀 |
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.
When saving a data source it should open the data source page, so the user can do a Test Connection
.
But, if possible, without the autofocusing in that specific scenario, cause it's confusing ("I just created this, why should I need to edit it??"). |
👍
🤔, perhaps disable the autofocus for Edit Pages? It makes a lot of sense when it's a form for a new resource, but when editing I don't think it's that relevant (as edit pages also perform as a view page in this case)... |
I've updated it to redirect to the created resource. (Both Data sources and Alert destinations) As for the autofocus, used to set the first input with it DynamicForm by default, I removed this and turned it into a field property. With this, I also removed autofocus for User Edit. Please check my last commits 🙂 |
I've been thinking about it and I actually don't like that much having an action button in a Notification, but I think an option would be to automatically run the connection test when creating a data source, then lead to 2 scenarios:
This could be in the Creation Dialog as a new step as well. |
YES
YESSSS @gabrieldutra plz open a forum topic and I'll submit a design. |
Good to go. I have to admit that I'm not 100% sold on the new dialog interface: it feels cramped and makes the different types less discoverable/visible. Let's move on, but keep this in mind as something to revisit. |
…#3470) * Migrate TypePicker to React * Migrate DataSources and Destinations List * Fixes to DestinationsList * Add CreateDataSource (testing with Steps) * Render the form after type selection * Add HELP_LINKS to CreateDataSource * Add Done behavior * Add scrollToTop to CreateDataSource * TypePicker styling adjusts * Add CreateDestination * Update resouce gets to componentDidMount * Create EditForm components * Migrate Edit pages * Remove angular logic from DynamicForm * Add actions to EditPages * TypePicker title style adjustments * Add Empty and Loading state * UX improvements * Review changes * Styling updates on TypePicker, forms background fix * Add blank line removed by mistaken * Reorganize TypePicker * Hide Search on List Pages * Fix spacing in Forms * Update Create Data Source and Destination to be a Dialog * Remove max-height from the form * Fix DynamicForm import in CreateUserDialog * Route /new to open CreateSourceDialog * Add HelpTrigger + refine styling and Edit Pages * Remove help links from data source resource * Update Cypress specs * TypePicker -> CardsList * Remove old TypePicker styling and change CardsList styling to less * Test if Percy shows Dialogs * Personal review cleanup * CR * Remove unnecessary query on dialog success * Handle resource errors in Edit Pages * Add CreateDestination policy * Add placeholder and separator to the Name field * Use cy.click instead of cy.wait * Revert "Use cy.click instead of cy.wait" (Didn't work) This reverts commit 77285d9. * Align help trigger on the right and rename Steps * Refine behavior for long names * Update toastr calls to use notification instead * Redirect to target after creation * Remove autoFocus on DynamicForm for Edit Pages * Add eslint-disable for cy.wait
Description
Migrate Data Sources and Alert Destinations pages to React
Changes
General
List Pages
Create Pages
Edit Pages
To Do
/data_sources/new
&/destinations/new
auto-opening the modalHelpTrigger
Possible Extra
Notes
Data Sources and Destinations are very similar pages, however I'm not sure how much logic I should share. They are sharing
TypePicker
(renamed toCardsList
) andDynamicForm
, but to me it doesn't feel that they should share much more. I'll keep the idea of refactoring parts of it to avoid code duplication anyway.Preview
Overview