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

Dev #8

Merged
merged 34 commits into from
Nov 29, 2023
Merged

Dev #8

merged 34 commits into from
Nov 29, 2023

Conversation

shashinma
Copy link
Collaborator

No description provided.

shashinma and others added 4 commits November 28, 2023 11:54
* Update PhoneBookContext.db

* Update Create.cshtml

* Update Delete.cshtml

* Update Details.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Edit.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Index.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update _Layout.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update site.css

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

---------

Co-authored-by: akinin <3820354+akinin@users.noreply.github.com>
* Update PhoneBookContext.db

* Update Create.cshtml

* Update Delete.cshtml

* Update Details.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Edit.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Index.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update _Layout.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update site.css

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhoneBookController.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhonebookContext.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update IdentityContext.db

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhoneEdit.csproj

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Program.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Edit.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Index action

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhonebookContext.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Create BookEntriesViewModel.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhoneEdit.csproj

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Program.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Create PhoneBookService.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Create.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Edit.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Index.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update _Layout.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Scaffold Identity pages

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

---------

Co-authored-by: akinin <3820354+akinin@users.noreply.github.com>
* Update PhoneBookContext.db

* Update Create.cshtml

* Update Delete.cshtml

* Update Details.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Edit.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Index.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update _Layout.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update site.css

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhoneBookController.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhonebookContext.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update IdentityContext.db

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhoneEdit.csproj

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Program.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Edit.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Index action

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhonebookContext.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Create BookEntriesViewModel.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update PhoneEdit.csproj

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Program.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Create PhoneBookService.cs

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Create.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Edit.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update Index.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Update _Layout.cshtml

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

* Scaffold Identity pages

Co-Authored-By: akinin <3820354+akinin@users.noreply.github.com>

---------

Co-authored-by: akinin <3820354+akinin@users.noreply.github.com>
@shashinma shashinma merged commit bad64ba into master Nov 29, 2023
2 checks passed
@shashinma shashinma deleted the dev branch November 30, 2023 15:40
akinin pushed a commit that referenced this pull request Jan 23, 2024
* Update UI elements styles in Index.cshtml

In the PhoneBook Index view, changes have been made in the style of the badge and buttons to partially fix their appearance. This included modifying the background color for the badge and varying the width and icon dimensions of the Edit, Details, and Delete buttons.

* Simplify layout by removing environment-specific CSS and JS

The commit removes the distinction between development and other environments for CSS and Javascript in the _Layout.cshtml file. It simplifies the page layout by consistently using local versions of Bootstrap and Font-Awesome, and by modifying the placement of certain elements. All environments will now use the same CSS and JS, which streamlines testing and deployment.

* Add check for non-empty model in Index view

This commit includes a check to ensure that the list provided to the Index view of the PhoneBook is not empty. Previously, if the list was empty, the view would attempt to take the first entry and fail. The if statement ensures this error is avoided.

* Refactor search functionality in PhoneBookController

Search string validation was simplified and applied directly to the database query rather than to an in-memory list of entries. Further, the ordering and pagination of entries were also shifted to the query level, improving efficiency and performance.

* Refactor database connection setup and enhance options configuration

Removed excessive use of `MySqlConnector` and refactored the way connection strings are retrieved. Also applied cleaner structuring for adding database context services. Added configuration for `DefaultUserOptions` and conditional addition of `DatabaseDeveloperPageExceptionFilter` based on the environment.
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