Skip to content

Commit

Permalink
Merge pull request meshery#8708 from Yana-Gupta/design-ui
Browse files Browse the repository at this point in the history
chore: sort the technology list in alphabetical order
  • Loading branch information
Yashsharma1911 authored Sep 15, 2023
2 parents 3746214 + caaf800 commit 92022f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ui/components/Filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ function MesheryFilters({ updateProgress, user, classes, selectedK8sContexts, ca
async (result) => {
try {
const { models } = await getMeshModels();
const modelNames = _.uniq(models?.map((model) => model.displayName));
const modelNames = _.uniq(models?.map((model) => model.displayName.toUpperCase()));
modelNames.sort()

// Modify the schema using the utility function
const modifiedSchema = modifyRJSFSchema(
Expand Down
3 changes: 2 additions & 1 deletion ui/components/MesheryPatterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ function MesheryPatterns({
async (result) => {
try {
const { models } = await getMeshModels();
const modelNames = _.uniq(models?.map((model) => model.displayName));
const modelNames = _.uniq(models?.map((model) => model.displayName.toUpperCase()));
modelNames.sort();

// Modify the schema using the utility function
const modifiedSchema = modifyRJSFSchema(
Expand Down
3 changes: 2 additions & 1 deletion ui/components/Modals/PublishModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default function PublishModal(props) {
async (result) => {
try {
const { models } = await getMeshModels();
const modelNames = _.uniq(models?.map((model) => model.displayName));
const modelNames = _.uniq(models?.map((model) => model.displayName.toUpperCase()));
modelNames.sort();

// Modify the schema using the utility function
const modifiedSchema = modifyRJSFSchema(result.rjsfSchema, "properties.compatibility.items.enum", modelNames);
Expand Down

0 comments on commit 92022f7

Please sign in to comment.