Skip to content
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

Manage strands #28

Merged
merged 8 commits into from
Dec 1, 2023
Merged

Manage strands #28

merged 8 commits into from
Dec 1, 2023

Conversation

endoooo
Copy link
Contributor

@endoooo endoooo commented Dec 1, 2023

No description provided.

- adjusted `<.input>` component to not render the label at all (instead of rendering it empty) when n
o label attr is present

- added support to label in `CurriculumItemSearchComponent`

- created `LantternWeb.SharedLive.MultiSelectComponent` as an alternative to multi select fields, but with different UX using badges

- replaced `LantternWeb.Admin.StrandLive.FormComponent` with `LantternWeb.StrandLive.StrandFormComponent`
- adjusted `activities_strand_id_fkey` constraint to prevent delete cascade activities when deleting strands
…ponent

- added `:size` and `:rounded` attrs to `<.button>`
- created `LantternWeb.LiveComponentHelpers` module with 3 initial utilities: `notify_parent/3`, `notify_component/3`, and `handle_navigation/2`

- redesigned `LantternWeb.Admin.ActivityLive.FormComponent` into `LantternWeb.StrandLive.ActivityFormComponent`

- removed `LantternWeb.NotifyHelpers` imports (notify helpers are loaded in all live components through `LiveComponentHelpers`)
- adjusted `activities_assessment_points_activity_id_fkey` constraint to prevent delete cascade assessment points when deleting activities
- adjusted position definition in `Assessments.create_activity_assessment_point/2`

- removed notification calls from `ActivityAssessmentPointFormComponent` in favor of `handle_navigation/2`

- added `handle_navigation/2` to `ClassFilterFormComponent` save, passing classes ids as arg

- removed all `handle_info` from `StrandLive.Activity` (at least the ones related to patch and navigation, in favor of `handle_navigation` in forms)

- added empty state to `StrandLive.List`

- added debounce and `handle_navigation/2` on save to `StrandFormComponent`

- removed notification calls from `ActivityTabs.AssessmentComponent` in favor of local patch/navigate

- adjusted broken seeds.exs
@endoooo endoooo merged commit d8f777b into main Dec 1, 2023
2 checks passed
@endoooo endoooo deleted the manage_strands branch December 1, 2023 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant